ee-mysql-connection
Advanced tools
Comparing version 0.1.4 to 0.1.6
@@ -26,4 +26,4 @@ !function(){ | ||
/** | ||
@@ -89,3 +89,3 @@ * class constructor | ||
* the _canBleed() securely checks if the sql contains statements which | ||
* can bleed into the next queries. if yes the conenction must be | ||
* can bleed into the next queries. if yes the conenction must be | ||
* terminated after the query was executed. | ||
@@ -97,3 +97,3 @@ * | ||
this._bleedReg.lastIndex = 0; | ||
return this._bleedReg.test(input); | ||
return this._bleedReg.test(input); | ||
} | ||
@@ -150,10 +150,10 @@ | ||
// not an select | ||
if (results.insertId){ | ||
// if (results.insertId){ | ||
// insert | ||
callback(null, { | ||
type: 'id' | ||
, id: results.insertId | ||
, id: results.insertId > 0 ? results.insertId : null | ||
}); | ||
} | ||
else callback(null, results); | ||
// } | ||
// else callback(null, results); | ||
} | ||
@@ -164,6 +164,6 @@ else callback(null, results); | ||
} | ||
/** | ||
* the _describe() method returns a detailed description of all | ||
* the _describe() method returns a detailed description of all | ||
* databases, tables and attributes | ||
@@ -219,4 +219,4 @@ * | ||
database = dbs[db.databaseName]; | ||
// map tables | ||
@@ -242,3 +242,3 @@ db.tables.forEach(function(definition){ | ||
table = database[definition.TABLE_NAME]; | ||
table.columns[definition.COLUMN_NAME] = { | ||
@@ -300,3 +300,3 @@ name: definition.COLUMN_NAME | ||
// check for mapping table | ||
// a rule must have two memebers and may be of type primary | ||
// a rule must have two memebers and may be of type primary | ||
// or unique. if this rule has fks on both column we got a mapping table | ||
@@ -325,3 +325,3 @@ if (constraint.rules.length === 2 && (constraint.type === 'primary key' || constraint.type === 'unique')){ | ||
, column : modelB.columns[database[tableName].columns[columns[1]].referencedColumn] | ||
, name : modelB.name //pluralize.plural(modelB.name) | ||
, name : pluralize.plural(modelB.name) | ||
, via: { | ||
@@ -339,3 +339,3 @@ model : database[tableName] | ||
, column : modelA.columns[database[tableName].columns[columns[0]].referencedColumn] | ||
, name : modelA.name //pluralize.plural(modelA.name) | ||
, name : pluralize.plural(modelA.name) | ||
, via: { | ||
@@ -353,3 +353,3 @@ model : database[tableName] | ||
}.bind(this)); | ||
callback(null, dbs); | ||
@@ -375,3 +375,3 @@ } | ||
}, done); | ||
}.bind(this), | ||
}.bind(this), | ||
@@ -450,4 +450,4 @@ | ||
/** | ||
@@ -454,0 +454,0 @@ * the _handleConnectionError() method handles connection errors |
{ | ||
"name" : "ee-mysql-connection" | ||
, "description" : "mysql connection abstraction for ee-orm" | ||
, "version" : "0.1.4" | ||
, "version" : "0.1.6" | ||
, "homepage" : "https://github.com/eventEmitter/ee-mysql-connection" | ||
, "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" | ||
, "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" | ||
, "licence" : "mit" | ||
@@ -24,3 +24,3 @@ , "os" : "!win" | ||
, "ee-log" : "0.2.x" | ||
, "ee-async" : "0.2.x" | ||
, "ee-async" : "0.1.x" | ||
, "ee-argv" : "0.1.x" | ||
@@ -43,2 +43,2 @@ , "ee-project" : "0.2.x" | ||
} | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
24820
1
+ Addedee-async@0.1.0(transitive)
Updatedee-async@0.1.x