node-sql-parser
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -20,3 +20,3 @@ (function (global, factory) { | ||
_exports.default = astToSQL; | ||
const surportedTypes = ['analyze', 'attach', 'select', 'delete', 'update', 'insert', 'drop', 'rename', 'truncate', 'call', 'desc', 'use', 'alter', 'set', 'create', 'lock', 'unlock', 'bigquery', 'declare', 'show', 'replace']; | ||
const surportedTypes = ['analyze', 'attach', 'select', 'delete', 'exec', 'update', 'insert', 'drop', 'rename', 'truncate', 'call', 'desc', 'use', 'alter', 'set', 'create', 'lock', 'unlock', 'bigquery', 'declare', 'show', 'replace']; | ||
@@ -23,0 +23,0 @@ function checkSupported(expr) { |
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(["exports", "./alter", "./create", "./select", "./delete", "./update", "./insert", "./command", "./expr", "./limit", "./show", "./sqlite", "./with", "./util"], factory); | ||
define(["exports", "./alter", "./create", "./select", "./delete", "./update", "./insert", "./command", "./exec", "./expr", "./limit", "./show", "./sqlite", "./with", "./util"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("./alter"), require("./create"), require("./select"), require("./delete"), require("./update"), require("./insert"), require("./command"), require("./expr"), require("./limit"), require("./show"), require("./sqlite"), require("./with"), require("./util")); | ||
factory(exports, require("./alter"), require("./create"), require("./select"), require("./delete"), require("./update"), require("./insert"), require("./command"), require("./exec"), require("./expr"), require("./limit"), require("./show"), require("./sqlite"), require("./with"), require("./util")); | ||
} else { | ||
@@ -10,6 +10,6 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.alter, global.create, global.select, global._delete, global.update, global.insert, global.command, global.expr, global.limit, global.show, global.sqlite, global._with, global.util); | ||
factory(mod.exports, global.alter, global.create, global.select, global._delete, global.update, global.insert, global.command, global.exec, global.expr, global.limit, global.show, global.sqlite, global._with, global.util); | ||
global.union = mod.exports; | ||
} | ||
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _alter, _create, _select, _delete, _update, _insert, _command, _expr, _limit2, _show, _sqlite, _with, _util) { | ||
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _alter, _create, _select, _delete, _update, _insert, _command, _exec, _expr, _limit2, _show, _sqlite, _with, _util) { | ||
"use strict"; | ||
@@ -30,2 +30,3 @@ | ||
delete: _delete.deleteToSQL, | ||
exec: _exec.execToSQL, | ||
update: _update.updateToSQL, | ||
@@ -32,0 +33,0 @@ insert: _insert.insertToSQL, |
@@ -320,2 +320,6 @@ (function (global, factory) { | ||
case 'var_string': | ||
str = `N'${escape(value)}'`; | ||
break; | ||
default: | ||
@@ -322,0 +326,0 @@ break; |
{ | ||
"name": "node-sql-parser", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "simple node sql parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
39503169
96
23135