think-model-abstract
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -206,3 +206,3 @@ const helper = require('think-helper'); | ||
startTrans(connection) { | ||
return this.socket().startTrans(connection).then(connection => { | ||
return this.socket('START TRANSACTION').startTrans(connection).then(connection => { | ||
this.connection = connection; | ||
@@ -217,3 +217,3 @@ return connection; | ||
commit(connection = this.connection) { | ||
return this.socket().commit(connection); | ||
return this.socket('COMMIT').commit(connection); | ||
} | ||
@@ -225,3 +225,3 @@ /** | ||
rollback(connection = this.connection) { | ||
return this.socket().rollback(connection); | ||
return this.socket('ROLLBACK').rollback(connection); | ||
} | ||
@@ -234,3 +234,3 @@ /** | ||
transaction(fn, connection) { | ||
return this.socket().transaction(connection => { | ||
return this.socket('START TRANSACTION').transaction(connection => { | ||
this.connection = connection; | ||
@@ -237,0 +237,0 @@ return fn(connection); |
{ | ||
"name": "think-model-abstract", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Abstract adapter for ThinkJS 3.x", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86766