Contains the main namespace for GearsORM and a thin abstraction for open,close and execute functions
MIT-style license.
| GearsORM.js | Contains the main namespace for GearsORM and a thin abstraction for open,close and execute functions |
| GearsORM | the main namespace for GearsORM,also provide a basic api wrapper for execute,close and open |
| Functions | |
| getDB | return a open database connection |
| execute | execute a sql query on the database |
| executeAndClose | execute a sql query on the database and close it. |
| close | close the database connection. |
the main namespace for GearsORM,also provide a basic api wrapper for execute,close and open
| Functions | |
| getDB | return a open database connection |
| execute | execute a sql query on the database |
| executeAndClose | execute a sql query on the database and close it. |
| close | close the database connection. |
execute:function( sql, params )
execute a sql query on the database
| sql | sql query to execute |
| params | bind parameters to be used in the sql query,optional |
return a open database connection
getDB:function()
execute a sql query on the database
execute:function( sql, params )
execute a sql query on the database and close it.
executeAndClose:function( sql, params )
close the database connection.
close:function()