Members
inTransaction
Is database in transaction
Methods
startTransaction() → boolean
Start transaction. If transaction is already started return false
commit() → boolean
Commit transaction. If transaction is not started return false
rollback() → boolean
Rollback transaction. If transaction is not started return false
run(sql, params) → string
Run select sql and return result
Arguments:
exec(sql, params) → boolean
Execute sql
Arguments:
genID(entity) → number
Generate ID for entity
Arguments:
-
entity
(string)
startTransaction() → boolean
Start transaction. If transaction is already started return false
commit() → boolean
Commit transaction. If transaction is not started return false
rollback() → boolean
Rollback transaction. If transaction is not started return false
run(sql, params) → string
Run select sql and return result
Arguments:
exec(sql, params) → boolean
Execute sql
Arguments:
genID(entity) → number
Generate ID for entity
Arguments:
-
entity
(string)