Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "betajs-sql", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "BetaJS-SQL is a sql wrapper for BetaJS.", | ||
@@ -5,0 +5,0 @@ "contributors": ["Pablo Iglesias"], |
@@ -18,3 +18,3 @@ { | ||
"name": "betajs-sql", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "BetaJS-SQL is a sql wrapper for BetaJS.", | ||
@@ -21,0 +21,0 @@ "contributors": [ |
@@ -37,3 +37,3 @@ Scoped.define("module:SqlDatabaseTable", [ | ||
var prom = Promise.create(); | ||
return Promise.funcCallback(req, req.query, query, {}).mapSuccess(function(result) { | ||
return Promise.funcCallback(req, req.rawQuery, query, {}).mapSuccess(function(result) { | ||
return new ArrayIterator(result.rows); | ||
@@ -49,3 +49,3 @@ }, this).mapError(function(err) { | ||
var prom = Promise.create(); | ||
req.query(query, {}, prom.asyncCallbackFunc()); | ||
req.rawQuery(query, {}, prom.asyncCallbackFunc()); | ||
return prom.success(function(result) { | ||
@@ -58,7 +58,7 @@ return result; | ||
_removeRow: function(delParams, callbacks) { | ||
_removeRow: function(delParams) { | ||
var req = this.table(); | ||
var query = this.__formatDelete(delParams); | ||
var prom = Promise.create(); | ||
req.query(query, {}, prom.asyncCallbackFunc()); | ||
req.rawQuery(query, {}, prom.asyncCallbackFunc()); | ||
return prom.success(function(result) { | ||
@@ -75,3 +75,3 @@ return result; | ||
var prom = Promise.create(); | ||
req.query(query, {}, prom.asyncCallbackFunc()); | ||
req.rawQuery(query, {}, prom.asyncCallbackFunc()); | ||
return prom.success(function(result) { | ||
@@ -78,0 +78,0 @@ return result; |
@@ -40,3 +40,5 @@ Scoped.define("module:SqlDatabase", [ | ||
var sqldbman = this.sql_module; | ||
var sqldb = new sqldbman(this.__dbObject); | ||
var sqldb = new sqldbman(this.__dbObject, { | ||
rawConnection: true | ||
}); | ||
this.__sqldb = sqldb; | ||
@@ -59,2 +61,6 @@ ret = sqldb; | ||
return this.__sqldbreq; | ||
}, | ||
close: function() { | ||
this.__sqldb.close(); | ||
} | ||
@@ -61,0 +67,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
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
0
86646
15
1796