W3cubDocs

/Haxe Sys

Manager<T>

package sys.db

@:build(sys.db.RecordMacros.addRtti()) Available on cpp, hl, java, lua, macro, neko, php, python

Record Manager : the persistent object database manager. See the tutorial on Haxe website to learn how to use Record.

Constructor

new (classval:Class<T>)

Methods

all (?lock:Bool):List<T>

count (cond:Dynamic):Dynamic

Available on macro

count (cond:Dynamic):Int

Available on cpp, hl, java, lua, neko, php, python

dbClass ():Class<Dynamic>

dbInfos ():RecordInfos

delete (cond:Dynamic, ?options:Dynamic):Dynamic

Available on macro

delete (cond:Dynamic, ?options:Dynamic):Void

Available on cpp, hl, java, lua, neko, php, python

dynamicSearch (x:{}, ?lock:Bool):List<T>

forceUpdate (o:T, field:String):Void

Remove 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.

get (id:Dynamic, ?lock:Bool):Dynamic

Available on macro

get (id:Dynamic, ?lock:Bool):T

Available on cpp, hl, java, lua, neko, php, python

Available on cpp, hl, java, lua, neko, php, python

Available on macro

select (cond:Dynamic, ?options:Dynamic, ?lock:Bool):T

Available on cpp, hl, java, lua, neko, php, python

select (cond:Dynamic, ?options:Dynamic, ?lock:Bool):Dynamic

Available on macro

unsafeCount (sql:String):Int

unsafeDelete (sql:String):Void

unsafeGet (id:Dynamic, ?lock:Bool):T

unsafeGetId (o:T ):Dynamic

unsafeGetWithKeys (keys:{}, ?lock:Bool):T

unsafeObject (sql:String, lock:Bool):T

unsafeObjects (sql:String, lock:Bool):List<T>

Static variables

static cnx:Connection

static lockMode:String

Static methods

static cleanup ():Void

static initialize ():Void

static nullCompare (a:String, b:String, eq:Bool):String

static quoteAny (v:Dynamic):String

static quoteList (v:String, it:Iterable<Dynamic>):String

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/sys/db/Manager.html