ee-mysql-connection
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -95,3 +95,23 @@ !function(){ | ||
/* | ||
* LOCK_READ: READ | ||
* LOCK_WRITE: WRITE | ||
* LOCK_EXCLUSIVE: WRITE | ||
*/ | ||
, _lockModes: {value:{ | ||
LOCK_READ: 'READ' | ||
, LOCK_WRITE: 'WRITE' | ||
, LOCK_EXCLUSIVE: 'WRITE' | ||
}} | ||
/* | ||
* st a lock on a tblae | ||
*/ | ||
, lock: function(schema, table, lockType, callback) { | ||
if (!this._lockModes[lockType]) callback(new Error('Invalid or not supported lock mode «'+lockType+'»!')); | ||
this._query('LOCK TABLES '+(schema? this._escapeId(schema)+'.': '')+this._escapeId(table)+' '+this._lockModes[lockType]+';', callback); | ||
} | ||
/** | ||
@@ -98,0 +118,0 @@ * the _canBleed() securely checks if the sql contains statements which |
{ | ||
"name" : "ee-mysql-connection" | ||
, "description" : "mysql connection abstraction for ee-orm" | ||
, "version" : "0.1.14" | ||
, "version" : "0.1.15" | ||
, "homepage" : "https://github.com/eventEmitter/ee-mysql-connection" | ||
@@ -30,3 +30,3 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" | ||
, "ee-query-builder" : "0.1.x" | ||
, "ee-db-connection" : "0.1.x" | ||
, "ee-db-connection" : "^0.1.13" | ||
, "moment" : "2.5.x" | ||
@@ -33,0 +33,0 @@ } |
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
25906
693
Updatedee-db-connection@^0.1.13