Manager

class sys.db.Manager<T>Available in neko, php, cppSPOD Manager : the persistent object database manager. See the tutorial on Haxe website to learn how to use SPOD. function new( classval : Class<T> ) : Void function all( ?lock : Bool ) : List<T> function count( cond : Dynamic ) : Int function dbClass() : Class<Dynamic> function dbInfos() : RecordInfos function delete( cond : Dynamic, ?options : Dynamic ) : Void function dynamicSearch( x : {}, ?lock : Bool ) : List<T> function forceUpdate( o : T, field : String ) : VoidRemove the cached value for the given Object field : this will ensure that the value is updated when calling .update(). This is necessary if you are modifying binary data in-place since the cache will be modified as well. function get( id : Dynamic, ?lock : Bool ) : Tretrieve the objectified database line given by the id or the id anon object given.
example :
Pnj.manager.get( 163 ) -> Fetches the PNJ with the id 163
Quest.manager.get( {key_pnj:13, {key_lvl:1}} ) -> Fetches the Quest which has two key key_pnj and key_lvl
function search( cond : Dynamic, ?options : Dynamic, ?lock : Bool ) : List<T> function select( cond : Dynamic, ?options : Dynamic, ?lock : Bool ) : T function unsafeCount( sql : String ) : Int function unsafeDelete( sql : String ) : Void function unsafeGet( id : Dynamic, ?lock : Bool ) : T function unsafeGetId( o : T ) : Dynamic function unsafeGetWithKeys( keys : {}, ?lock : Bool ) : T function unsafeObject( sql : String, lock : Bool ) : T function unsafeObjects( sql : String, lock : Bool ) : List<T> static var cnx(default,accessor) : Connection static var lockMode : String static function cleanup() : Void static function initialize() : Void static function nullCompare( a : String, b : String, eq : Bool ) : String static function quoteAny( v : Dynamic ) : String static function quoteList( v : String, it : Iterable<Dynamic> ) : String
version #19301, modified 2013-05-08 11:11:49 by api
0 comment