不要怂,就是干,撸起袖子干!

Commit 06c61bba by Eric Thompson

Added supports transactionOptions

1 parent 2dc8ff64
......@@ -38,6 +38,9 @@ AbstractDialect.prototype.supports = {
updateOnDuplicate: false,
schemas: false,
transactions: true,
transactionOptions: {
type: false
},
migrations: true,
upserts: true,
constraints: {
......
......@@ -25,6 +25,9 @@ SqliteDialect.prototype.supports = _.merge(_.cloneDeep(Abstract.prototype.suppor
index: {
using: false
},
transactionOptions: {
type: true
},
joinTableDependent: false,
groupedLimit: false,
ignoreDuplicates: ' OR IGNORE'
......
......@@ -238,7 +238,9 @@ describe(Support.getTestDialectTeaser('Transaction'), function() {
});
});
});
}
if (current.dialect.supports.transactionOptions.type) {
describe('transaction types', function() {
it('should support default transaction type DEFERRED', function() {
return this.sequelize.transaction({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!