Comparing version 0.0.15 to 0.0.16
@@ -10,2 +10,3 @@ /** | ||
const dbOp = require("./dbOp"); | ||
const classSQLFileRunner = require("./classSQLFileRunner"); | ||
@@ -29,2 +30,7 @@ class dbOpMysql { | ||
async execSqlFile(dbConn, filename, options){ | ||
const ob = new classSQLFileRunner(dbConn, options); | ||
await ob.doFile(filename); | ||
} | ||
clearCache() { | ||
@@ -31,0 +37,0 @@ this.tableDescCache = {}; |
{ | ||
"name": "mg-dbop", | ||
"private" : false, | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"homepage": "https://github.com/MacLaurinGroup/dbOp", | ||
@@ -6,0 +6,0 @@ "description": "Query builder, and validator, for MySQL and node that utilizes the underlying table to provide a level of checking", |
@@ -131,2 +131,3 @@ ## dbOp | ||
* .convertBlankToNull(data,fieldArray) // converts any blank fields to pure null | ||
* .execSqlFile( dbConn, filename, options ) // runs a file of SQL statements against the dbConn; options { delimiter : "" | "per-line"} | ||
@@ -261,2 +262,4 @@ This method returns the last SQL result from an INSERT/UPDATE | ||
* 2019-04-23 | ||
* Added ability to process a file of SQL statements | ||
* 2019-04-16 | ||
@@ -263,0 +266,0 @@ * Removed console output |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
49991
7
831
290
1