SQLSession.prototype.transaction()
APIDatabase
开始一个事务过程
其它名称和入口
- SQLConnection.prototype.transaction()
调用方法
- (action) -> Async<result ...>
- (forceLock, action) -> Async<result ...>
参数介绍
- action: () -> Async<result ...>具体的事务过程定义
- forceLock: Boolean是否强制开启写入锁
关联API
- SQLSession()
- SQLSession.prototype.convertDataFromSQL()
- SQLSession.prototype.convertDataToSQL()
- SQLSession.prototype.deleteFrom()
- SQLSession.prototype.execute()
- SQLSession.prototype.executeSync()
- SQLSession.prototype.getTableDefinition()
- SQLSession.prototype.insertInto()
- SQLSession.prototype.lastRecordID
- SQLSession.prototype.listTables()
- SQLSession.prototype.orm
- SQLSession.prototype.query()
- SQLSession.prototype.querySync()
- SQLSession.prototype.select()
- SQLSession.prototype.selectDistinct()
- SQLSession.prototype.totalChanges
- SQLSession.prototype.update()