New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-sql-parser

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sql-parser - npm Package Compare versions

Comparing version

to
1.6.13

build/hive.js

3

lib/insert.js

@@ -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