sys.db.Connection backed by oxmysql. Assign an instance of this to sys.db.Manager.cnx (from the record-macros haxelib, which reimplements Haxe's classic sys.db.Manager ORM for Haxe 4) to use it against oxmysql, or call request() directly for raw SQL. See docs/database.md.

request() looks at the SQL's leading keyword to pick which oxmysql verb to call (SELECT/SHOW/DESCRIBE/EXPLAIN/PRAGMAquery, INSERT/REPLACEinsert, everything else → update), because oxmysql doesn't expose a single generic "run anything, tell me what shape came back" call the way a native mysql client library does — each verb already returns a specific, well-defined shape (row array, insert id, affected-row count).

Transactions aren't implemented: oxmysql's transaction export takes a whole batch of statements up front and runs them atomically, which doesn't match Connection's interactive startTransaction() / request() / commit() model of holding one transaction open across separate calls. Use OxMysql.transaction() for an atomic batch instead.

Constructor

new()

Methods

addValue(s:StringBuf, v:Dynamic):Void

close():Void

commit():Void

dbName():String

escape(s:String):String

Best-effort client-side escaping (mysql_real_escape_string-equivalent). Prefer parameterized queries where possible.

quote(s:String):String

request(s:String):ResultSet

rollback():Void