knex/lib/dialects/websql/transaction.js
Tim Griesser f9aab9dc76 Major internal refactor
Beefed up transaction implementation, still needs tests
and cleanup of nested transaction queues.

Left todo:
- Fix commented out tests
- Fix oracle driver's transactions
2015-04-22 10:34:14 -04:00

12 lines
249 B
JavaScript

var makeKnex = require('../../util/make-knex')
function Transaction_WebSQL(client) {
this.client = client
}
Transaction_WebSQL.prototype.run = function(container) {
return Promise.try(function() {
return container(makeKnex(client))
})
}