mirror of
https://github.com/knex/knex.git
synced 2025-10-04 20:46:04 +00:00

Beefed up transaction implementation, still needs tests and cleanup of nested transaction queues. Left todo: - Fix commented out tests - Fix oracle driver's transactions
12 lines
249 B
JavaScript
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))
|
|
})
|
|
}
|