Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ee-mysql-connection

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-mysql-connection - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

20

lib/MySQLConnection.js

@@ -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

4

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc