node-sql-parser
Advanced tools
Comparing version
@@ -25,2 +25,3 @@ "use strict"; | ||
table, | ||
prefix = 'into', | ||
columns, | ||
@@ -30,3 +31,3 @@ values, | ||
} = stmt; | ||
const clauses = ['INSERT INTO', (0, _tables.tablesToSQL)(table)]; | ||
const clauses = ['INSERT', (0, _util.toUpper)(prefix), (0, _tables.tablesToSQL)(table)]; | ||
if (Array.isArray(columns)) clauses.push(`(${columns.map(_util.identifierToSql).join(', ')})`); | ||
@@ -33,0 +34,0 @@ clauses.push((0, _util.commonOptionConnector)(Array.isArray(values) ? 'VALUES' : '', valuesToSQL, values)); |
@@ -8,2 +8,4 @@ "use strict"; | ||
var _hive = require("../build/hive"); | ||
var _mysql = require("../build/mysql"); | ||
@@ -22,2 +24,3 @@ | ||
const parser = { | ||
hive: _hive.parse, | ||
mysql: _mysql.parse, | ||
@@ -24,0 +27,0 @@ mariadb: _mariadb.parse, |
{ | ||
"name": "node-sql-parser", | ||
"version": "1.6.12", | ||
"version": "1.6.13", | ||
"description": "simple node sql parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,2 +53,3 @@ # Nodejs SQL Parser | ||
- Hive | ||
- Mysql | ||
@@ -55,0 +56,0 @@ - MariaDB |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1965946
31.97%32
3.23%70066
32.64%223
0.45%