Comparing version 1.3.2 to 1.3.3
@@ -94,3 +94,3 @@ // Generated by CoffeeScript 1.7.1 | ||
BulkLoad.prototype.getSql = function() { | ||
BulkLoad.prototype.getBulkInsertSql = function() { | ||
var c, i, sql, _i, _len, _ref; | ||
@@ -110,2 +110,20 @@ sql = 'insert bulk ' + this.table + '('; | ||
BulkLoad.prototype.getTableCreationSql = function() { | ||
var c, i, sql, _i, _len, _ref; | ||
sql = 'CREATE TABLE ' + this.table + '(\n'; | ||
_ref = this.columns; | ||
for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) { | ||
c = _ref[i]; | ||
if (i !== 0) { | ||
sql += ',\n'; | ||
} | ||
sql += "[" + c.name + "] " + (c.type.declaration(c)); | ||
if (c.nullable !== void 0) { | ||
sql += " " + (c.nullable ? "NULL" : "NOT NULL"); | ||
} | ||
} | ||
sql += '\n)'; | ||
return sql; | ||
}; | ||
BulkLoad.prototype.getPayload = function() { | ||
@@ -112,0 +130,0 @@ var done, length, metaData, payload, rows, status, tBuf; |
@@ -865,3 +865,3 @@ // Generated by CoffeeScript 1.7.1 | ||
var request; | ||
request = new Request(bulkLoad.getSql(), (function(_this) { | ||
request = new Request(bulkLoad.getBulkInsertSql(), (function(_this) { | ||
return function(error) { | ||
@@ -868,0 +868,0 @@ if (error) { |
@@ -29,3 +29,3 @@ { | ||
], | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"main": "./lib/tedious.js", | ||
@@ -32,0 +32,0 @@ "repository": { |
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
187659
5485