@polyglot-sql/sdk 0.2.3 → 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/index.d.cts CHANGED
@@ -4952,6 +4952,8 @@ declare type Expression = {
4952
4952
  "create_table": CreateTable;
4953
4953
  } | {
4954
4954
  "drop_table": DropTable;
4955
+ } | {
4956
+ "undrop": Undrop;
4955
4957
  } | {
4956
4958
  "alter_table": AlterTable;
4957
4959
  } | {
@@ -6463,6 +6465,8 @@ declare type FunctionBody = {
6463
6465
  content: string;
6464
6466
  tag: string | null;
6465
6467
  };
6468
+ } | {
6469
+ "RawBlock": string;
6466
6470
  };
6467
6471
 
6468
6472
  /**
@@ -6981,6 +6985,10 @@ declare type GroupConcatFunc = {
6981
6985
  order_by: Array<Ordered> | null;
6982
6986
  distinct: boolean;
6983
6987
  filter: Expression | null;
6988
+ /**
6989
+ * MySQL 8.0.19+: LIMIT n inside GROUP_CONCAT
6990
+ */
6991
+ limit?: Expression | null;
6984
6992
  /**
6985
6993
  * Inferred data type from type annotation
6986
6994
  */
@@ -11606,6 +11614,10 @@ declare type Select = {
11606
11614
  * T-SQL FOR XML clause options (PATH, RAW, AUTO, EXPLICIT, BINARY BASE64, ELEMENTS XSINIL, etc.)
11607
11615
  */
11608
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>;
11609
11621
  /**
11610
11622
  * Leading comments before the statement
11611
11623
  */
@@ -12656,6 +12668,12 @@ declare type TableConstraint = {
12656
12668
  name: Identifier | null;
12657
12669
  expression: Expression;
12658
12670
  };
12671
+ } | {
12672
+ "Default": {
12673
+ name: Identifier | null;
12674
+ expression: Expression;
12675
+ column: Identifier;
12676
+ };
12659
12677
  } | {
12660
12678
  "Index": {
12661
12679
  name: Identifier | null;
@@ -13683,6 +13701,24 @@ declare type Uncache = {
13683
13701
  if_exists: boolean;
13684
13702
  };
13685
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
+
13686
13722
  /**
13687
13723
  * Unhex
13688
13724
  */
package/dist/index.d.ts CHANGED
@@ -4952,6 +4952,8 @@ declare type Expression = {
4952
4952
  "create_table": CreateTable;
4953
4953
  } | {
4954
4954
  "drop_table": DropTable;
4955
+ } | {
4956
+ "undrop": Undrop;
4955
4957
  } | {
4956
4958
  "alter_table": AlterTable;
4957
4959
  } | {
@@ -6463,6 +6465,8 @@ declare type FunctionBody = {
6463
6465
  content: string;
6464
6466
  tag: string | null;
6465
6467
  };
6468
+ } | {
6469
+ "RawBlock": string;
6466
6470
  };
6467
6471
 
6468
6472
  /**
@@ -6981,6 +6985,10 @@ declare type GroupConcatFunc = {
6981
6985
  order_by: Array<Ordered> | null;
6982
6986
  distinct: boolean;
6983
6987
  filter: Expression | null;
6988
+ /**
6989
+ * MySQL 8.0.19+: LIMIT n inside GROUP_CONCAT
6990
+ */
6991
+ limit?: Expression | null;
6984
6992
  /**
6985
6993
  * Inferred data type from type annotation
6986
6994
  */
@@ -11606,6 +11614,10 @@ declare type Select = {
11606
11614
  * T-SQL FOR XML clause options (PATH, RAW, AUTO, EXPLICIT, BINARY BASE64, ELEMENTS XSINIL, etc.)
11607
11615
  */
11608
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>;
11609
11621
  /**
11610
11622
  * Leading comments before the statement
11611
11623
  */
@@ -12656,6 +12668,12 @@ declare type TableConstraint = {
12656
12668
  name: Identifier | null;
12657
12669
  expression: Expression;
12658
12670
  };
12671
+ } | {
12672
+ "Default": {
12673
+ name: Identifier | null;
12674
+ expression: Expression;
12675
+ column: Identifier;
12676
+ };
12659
12677
  } | {
12660
12678
  "Index": {
12661
12679
  name: Identifier | null;
@@ -13683,6 +13701,24 @@ declare type Uncache = {
13683
13701
  if_exists: boolean;
13684
13702
  };
13685
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
+
13686
13722
  /**
13687
13723
  * Unhex
13688
13724
  */
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-sql/sdk",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "SQL dialect translator powered by WebAssembly",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",