Comparing version 0.1.7 to 0.1.8
{ | ||
"name": "meadow", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A data access library.", | ||
@@ -5,0 +5,0 @@ "main": "source/Meadow.js", |
@@ -28,15 +28,19 @@ /** | ||
*/ | ||
var _SQLConnection = libMySQL.createConnection | ||
( | ||
{ | ||
connectionLimit: _Fable.settings.MySQL.ConnectionPoolLimit, | ||
host: _Fable.settings.MySQL.Server, | ||
port: _Fable.settings.MySQL.Port, | ||
user: _Fable.settings.MySQL.User, | ||
password: _Fable.settings.MySQL.Password, | ||
database: _Fable.settings.MySQL.Database, | ||
namedPlaceholders: true | ||
} | ||
); | ||
_SQLConnection.config.namedPlaceholders = true; | ||
var getSQLConnection = function() | ||
{ | ||
var tmpSQLConnection = libMySQL.createConnection | ||
( | ||
{ | ||
connectionLimit: _Fable.settings.MySQL.ConnectionPoolLimit, | ||
host: _Fable.settings.MySQL.Server, | ||
port: _Fable.settings.MySQL.Port, | ||
user: _Fable.settings.MySQL.User, | ||
password: _Fable.settings.MySQL.Password, | ||
database: _Fable.settings.MySQL.Database, | ||
namedPlaceholders: true | ||
} | ||
); | ||
tmpSQLConnection.config.namedPlaceholders = true; | ||
return tmpSQLConnection; | ||
}; | ||
@@ -62,3 +66,4 @@ var marshalRecordFromSourceToObject = function(pObject, pRecord, pSchema) | ||
_SQLConnection.query | ||
var tmpSQLConnection = getSQLConnection(); | ||
tmpSQLConnection.query | ||
( | ||
@@ -81,2 +86,3 @@ pQuery.query.body, | ||
tmpResult.executed = true; | ||
tmpSQLConnection.end(); | ||
fCallback(); | ||
@@ -98,3 +104,4 @@ } | ||
_SQLConnection.query | ||
var tmpSQLConnection = getSQLConnection(); | ||
tmpSQLConnection.query | ||
( | ||
@@ -108,2 +115,3 @@ pQuery.query.body, | ||
tmpResult.executed = true; | ||
tmpSQLConnection.end(); | ||
fCallback(); | ||
@@ -123,3 +131,4 @@ } | ||
_SQLConnection.query | ||
var tmpSQLConnection = getSQLConnection(); | ||
tmpSQLConnection.query | ||
( | ||
@@ -133,2 +142,3 @@ pQuery.query.body, | ||
tmpResult.executed = true; | ||
tmpSQLConnection.end(); | ||
fCallback(); | ||
@@ -148,3 +158,4 @@ } | ||
_SQLConnection.query | ||
var tmpSQLConnection = getSQLConnection(); | ||
tmpSQLConnection.query | ||
( | ||
@@ -166,2 +177,3 @@ pQuery.query.body, | ||
tmpResult.executed = true; | ||
tmpSQLConnection.end(); | ||
fCallback(); | ||
@@ -181,3 +193,4 @@ } | ||
_SQLConnection.query | ||
var tmpSQLConnection = getSQLConnection(); | ||
tmpSQLConnection.query | ||
( | ||
@@ -199,2 +212,3 @@ pQuery.query.body, | ||
} | ||
tmpSQLConnection.end(); | ||
fCallback(); | ||
@@ -201,0 +215,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
64176
2269