node-sql-parser
Advanced tools
Comparing version 3.8.1 to 3.8.2
@@ -146,3 +146,3 @@ | ||
export type column_definition_opt = column_constraint | { auto_increment: 'auto_increment'; } | { unique_or_primary: 'unique' | 'primary key'; } | { comment: keyword_comment; } | { collate: collate_expr; } | { column_format: column_format; } | { storage: storage } | { reference_definition: reference_definition; }; | ||
export type column_definition_opt = column_constraint | { auto_increment: 'auto_increment'; } | { unique_or_primary: 'unique' | 'primary key'; } | { comment: keyword_comment; } | { collate: collate_expr; } | { column_format: column_format; } | { storage: storage } | { reference_definition: reference_definition; } | { character_set: collate_expr }; | ||
@@ -182,3 +182,3 @@ | ||
export type collate_expr = { type: 'collate'; value: ident; }; | ||
export type collate_expr = { type: 'collate'; symbol: '=' | null; value: ident; }; | ||
@@ -668,3 +668,3 @@ export type column_format = { type: 'column_format'; value: 'fixed' | 'dynamic' | 'default'; }; | ||
export type case_when_then = { type: 'when'; cond: expr; result: expr; }; | ||
export type case_when_then = { type: 'when'; cond: binary_expr; result: expr; }; | ||
@@ -846,3 +846,3 @@ export type case_else = { type: 'else'; condition?: never; result: expr; }; | ||
export type func_call = { type: 'function'; name: string; args: expr_list; } | { type: 'function'; name: string; args: expr_list; over?: over_partition; } | extract_func; | ||
export type func_call = { type: 'function'; name: string; args: expr_list; } | { type: 'function'; name: string; args: expr_list; over?: over_partition; } | extract_func | { type: 'origin'; value: string; }; | ||
@@ -889,3 +889,3 @@ export type extract_filed = "CENTURY" | "DAY" | "DECADE" | "DOW" | "DOY" | "EPOCH" | "HOUR" | "ISODOW" | "ISOYEAR" | "MICROSECONDS" | "MILLENNIUM" | "MILLISECONDS" | "MINUTE" | "MONTH" | "QUARTER" | "SECOND" | "TIMEZONE" | "TIMEZONE_HOUR" | "TIMEZONE_MINUTE" | "WEEK" | 'string'; | ||
export type literal_datetime = { type: 'TIME' | 'DATE' | 'TIMESTAMP' | 'DATETIME', value: string } | { type: 'origin'; value: string; }; | ||
export type literal_datetime = { type: 'TIME' | 'DATE' | 'TIMESTAMP' | 'DATETIME', value: string }; | ||
@@ -892,0 +892,0 @@ export type single_quote_char = string; |
@@ -94,2 +94,3 @@ (function (global, factory) { | ||
nullable, | ||
character_set: characterSet, | ||
check, | ||
@@ -117,2 +118,3 @@ comment, | ||
columnOpt.push((0, _util.autoIncreatementToSQL)(autoIncrement), (0, _util.toUpper)(uniquePrimary), (0, _util.commentToSQL)(comment)); | ||
columnOpt.push(...(0, _util.commonTypeValue)(characterSet)); | ||
columnOpt.push(...(0, _util.commonTypeValue)(collate)); | ||
@@ -119,0 +121,0 @@ columnOpt.push(...(0, _util.commonTypeValue)(columnFormat)); |
@@ -244,5 +244,7 @@ (function (global, factory) { | ||
type, | ||
symbol, | ||
value | ||
} = opt; | ||
result.push(type.toUpperCase()); | ||
if (symbol) result.push(symbol); | ||
result.push(value.toUpperCase()); | ||
@@ -249,0 +251,0 @@ return result; |
{ | ||
"name": "node-sql-parser", | ||
"version": "3.8.1", | ||
"version": "3.8.2", | ||
"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
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
38448756
94
22446