@polyglot-sql/sdk 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/polyglot.esm.js +1097 -1097
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/polyglot_sql_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3499,6 +3499,10 @@ declare type Describe = {
|
|
|
3499
3499
|
* AS JSON suffix (Databricks)
|
|
3500
3500
|
*/
|
|
3501
3501
|
as_json: boolean;
|
|
3502
|
+
/**
|
|
3503
|
+
* Parenthesized parameter types for DESCRIBE PROCEDURE/FUNCTION (e.g., INT, VARCHAR)
|
|
3504
|
+
*/
|
|
3505
|
+
params?: Array<string>;
|
|
3502
3506
|
};
|
|
3503
3507
|
|
|
3504
3508
|
/**
|
|
@@ -4948,6 +4952,8 @@ declare type Expression = {
|
|
|
4948
4952
|
"create_table": CreateTable;
|
|
4949
4953
|
} | {
|
|
4950
4954
|
"drop_table": DropTable;
|
|
4955
|
+
} | {
|
|
4956
|
+
"undrop": Undrop;
|
|
4951
4957
|
} | {
|
|
4952
4958
|
"alter_table": AlterTable;
|
|
4953
4959
|
} | {
|
|
@@ -6459,6 +6465,8 @@ declare type FunctionBody = {
|
|
|
6459
6465
|
content: string;
|
|
6460
6466
|
tag: string | null;
|
|
6461
6467
|
};
|
|
6468
|
+
} | {
|
|
6469
|
+
"RawBlock": string;
|
|
6462
6470
|
};
|
|
6463
6471
|
|
|
6464
6472
|
/**
|
|
@@ -6977,6 +6985,10 @@ declare type GroupConcatFunc = {
|
|
|
6977
6985
|
order_by: Array<Ordered> | null;
|
|
6978
6986
|
distinct: boolean;
|
|
6979
6987
|
filter: Expression | null;
|
|
6988
|
+
/**
|
|
6989
|
+
* MySQL 8.0.19+: LIMIT n inside GROUP_CONCAT
|
|
6990
|
+
*/
|
|
6991
|
+
limit?: Expression | null;
|
|
6980
6992
|
/**
|
|
6981
6993
|
* Inferred data type from type annotation
|
|
6982
6994
|
*/
|
|
@@ -11602,6 +11614,10 @@ declare type Select = {
|
|
|
11602
11614
|
* T-SQL FOR XML clause options (PATH, RAW, AUTO, EXPLICIT, BINARY BASE64, ELEMENTS XSINIL, etc.)
|
|
11603
11615
|
*/
|
|
11604
11616
|
for_xml?: Array<Expression>;
|
|
11617
|
+
/**
|
|
11618
|
+
* T-SQL FOR JSON clause options (PATH, AUTO, ROOT, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER)
|
|
11619
|
+
*/
|
|
11620
|
+
for_json?: Array<Expression>;
|
|
11605
11621
|
/**
|
|
11606
11622
|
* Leading comments before the statement
|
|
11607
11623
|
*/
|
|
@@ -12652,6 +12668,12 @@ declare type TableConstraint = {
|
|
|
12652
12668
|
name: Identifier | null;
|
|
12653
12669
|
expression: Expression;
|
|
12654
12670
|
};
|
|
12671
|
+
} | {
|
|
12672
|
+
"Default": {
|
|
12673
|
+
name: Identifier | null;
|
|
12674
|
+
expression: Expression;
|
|
12675
|
+
column: Identifier;
|
|
12676
|
+
};
|
|
12655
12677
|
} | {
|
|
12656
12678
|
"Index": {
|
|
12657
12679
|
name: Identifier | null;
|
|
@@ -13679,6 +13701,24 @@ declare type Uncache = {
|
|
|
13679
13701
|
if_exists: boolean;
|
|
13680
13702
|
};
|
|
13681
13703
|
|
|
13704
|
+
/**
|
|
13705
|
+
* UNDROP TABLE/SCHEMA/DATABASE statement (Snowflake, ClickHouse)
|
|
13706
|
+
*/
|
|
13707
|
+
declare type Undrop = {
|
|
13708
|
+
/**
|
|
13709
|
+
* The object kind: "TABLE", "SCHEMA", or "DATABASE"
|
|
13710
|
+
*/
|
|
13711
|
+
kind: string;
|
|
13712
|
+
/**
|
|
13713
|
+
* The object name
|
|
13714
|
+
*/
|
|
13715
|
+
name: TableRef;
|
|
13716
|
+
/**
|
|
13717
|
+
* IF EXISTS clause
|
|
13718
|
+
*/
|
|
13719
|
+
if_exists: boolean;
|
|
13720
|
+
};
|
|
13721
|
+
|
|
13682
13722
|
/**
|
|
13683
13723
|
* Unhex
|
|
13684
13724
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3499,6 +3499,10 @@ declare type Describe = {
|
|
|
3499
3499
|
* AS JSON suffix (Databricks)
|
|
3500
3500
|
*/
|
|
3501
3501
|
as_json: boolean;
|
|
3502
|
+
/**
|
|
3503
|
+
* Parenthesized parameter types for DESCRIBE PROCEDURE/FUNCTION (e.g., INT, VARCHAR)
|
|
3504
|
+
*/
|
|
3505
|
+
params?: Array<string>;
|
|
3502
3506
|
};
|
|
3503
3507
|
|
|
3504
3508
|
/**
|
|
@@ -4948,6 +4952,8 @@ declare type Expression = {
|
|
|
4948
4952
|
"create_table": CreateTable;
|
|
4949
4953
|
} | {
|
|
4950
4954
|
"drop_table": DropTable;
|
|
4955
|
+
} | {
|
|
4956
|
+
"undrop": Undrop;
|
|
4951
4957
|
} | {
|
|
4952
4958
|
"alter_table": AlterTable;
|
|
4953
4959
|
} | {
|
|
@@ -6459,6 +6465,8 @@ declare type FunctionBody = {
|
|
|
6459
6465
|
content: string;
|
|
6460
6466
|
tag: string | null;
|
|
6461
6467
|
};
|
|
6468
|
+
} | {
|
|
6469
|
+
"RawBlock": string;
|
|
6462
6470
|
};
|
|
6463
6471
|
|
|
6464
6472
|
/**
|
|
@@ -6977,6 +6985,10 @@ declare type GroupConcatFunc = {
|
|
|
6977
6985
|
order_by: Array<Ordered> | null;
|
|
6978
6986
|
distinct: boolean;
|
|
6979
6987
|
filter: Expression | null;
|
|
6988
|
+
/**
|
|
6989
|
+
* MySQL 8.0.19+: LIMIT n inside GROUP_CONCAT
|
|
6990
|
+
*/
|
|
6991
|
+
limit?: Expression | null;
|
|
6980
6992
|
/**
|
|
6981
6993
|
* Inferred data type from type annotation
|
|
6982
6994
|
*/
|
|
@@ -11602,6 +11614,10 @@ declare type Select = {
|
|
|
11602
11614
|
* T-SQL FOR XML clause options (PATH, RAW, AUTO, EXPLICIT, BINARY BASE64, ELEMENTS XSINIL, etc.)
|
|
11603
11615
|
*/
|
|
11604
11616
|
for_xml?: Array<Expression>;
|
|
11617
|
+
/**
|
|
11618
|
+
* T-SQL FOR JSON clause options (PATH, AUTO, ROOT, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER)
|
|
11619
|
+
*/
|
|
11620
|
+
for_json?: Array<Expression>;
|
|
11605
11621
|
/**
|
|
11606
11622
|
* Leading comments before the statement
|
|
11607
11623
|
*/
|
|
@@ -12652,6 +12668,12 @@ declare type TableConstraint = {
|
|
|
12652
12668
|
name: Identifier | null;
|
|
12653
12669
|
expression: Expression;
|
|
12654
12670
|
};
|
|
12671
|
+
} | {
|
|
12672
|
+
"Default": {
|
|
12673
|
+
name: Identifier | null;
|
|
12674
|
+
expression: Expression;
|
|
12675
|
+
column: Identifier;
|
|
12676
|
+
};
|
|
12655
12677
|
} | {
|
|
12656
12678
|
"Index": {
|
|
12657
12679
|
name: Identifier | null;
|
|
@@ -13679,6 +13701,24 @@ declare type Uncache = {
|
|
|
13679
13701
|
if_exists: boolean;
|
|
13680
13702
|
};
|
|
13681
13703
|
|
|
13704
|
+
/**
|
|
13705
|
+
* UNDROP TABLE/SCHEMA/DATABASE statement (Snowflake, ClickHouse)
|
|
13706
|
+
*/
|
|
13707
|
+
declare type Undrop = {
|
|
13708
|
+
/**
|
|
13709
|
+
* The object kind: "TABLE", "SCHEMA", or "DATABASE"
|
|
13710
|
+
*/
|
|
13711
|
+
kind: string;
|
|
13712
|
+
/**
|
|
13713
|
+
* The object name
|
|
13714
|
+
*/
|
|
13715
|
+
name: TableRef;
|
|
13716
|
+
/**
|
|
13717
|
+
* IF EXISTS clause
|
|
13718
|
+
*/
|
|
13719
|
+
if_exists: boolean;
|
|
13720
|
+
};
|
|
13721
|
+
|
|
13682
13722
|
/**
|
|
13683
13723
|
* Unhex
|
|
13684
13724
|
*/
|
|
Binary file
|