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

Commit 06c61bba by Eric Thompson

Added supports transactionOptions

1 parent 2dc8ff64
...@@ -38,6 +38,9 @@ AbstractDialect.prototype.supports = { ...@@ -38,6 +38,9 @@ AbstractDialect.prototype.supports = {
updateOnDuplicate: false, updateOnDuplicate: false,
schemas: false, schemas: false,
transactions: true, transactions: true,
transactionOptions: {
type: false
},
migrations: true, migrations: true,
upserts: true, upserts: true,
constraints: { constraints: {
......
...@@ -25,6 +25,9 @@ SqliteDialect.prototype.supports = _.merge(_.cloneDeep(Abstract.prototype.suppor ...@@ -25,6 +25,9 @@ SqliteDialect.prototype.supports = _.merge(_.cloneDeep(Abstract.prototype.suppor
index: { index: {
using: false using: false
}, },
transactionOptions: {
type: true
},
joinTableDependent: false, joinTableDependent: false,
groupedLimit: false, groupedLimit: false,
ignoreDuplicates: ' OR IGNORE' ignoreDuplicates: ' OR IGNORE'
......
...@@ -238,7 +238,9 @@ describe(Support.getTestDialectTeaser('Transaction'), function() { ...@@ -238,7 +238,9 @@ describe(Support.getTestDialectTeaser('Transaction'), function() {
}); });
}); });
}); });
}
if (current.dialect.supports.transactionOptions.type) {
describe('transaction types', function() { describe('transaction types', function() {
it('should support default transaction type DEFERRED', function() { it('should support default transaction type DEFERRED', function() {
return this.sequelize.transaction({ 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!