@polyglot-sql/sdk 0.3.6 → 0.3.8

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
@@ -146,6 +146,14 @@ declare type Alias = {
146
146
  * Optional column aliases for table-valued functions: AS t(col1, col2) or AS (col1, col2)
147
147
  */
148
148
  column_aliases: Array<Identifier>;
149
+ /**
150
+ * Whether AS keyword was explicitly used for the alias.
151
+ */
152
+ alias_explicit_as: boolean;
153
+ /**
154
+ * Original alias keyword spelling, e.g. `AS` vs `as`.
155
+ */
156
+ alias_keyword?: string | null;
149
157
  /**
150
158
  * Comments that appeared between the expression and AS keyword
151
159
  */
@@ -2802,6 +2810,10 @@ declare type CreateView = {
2802
2810
  * Redshift: AUTO REFRESH YES|NO for materialized views
2803
2811
  */
2804
2812
  auto_refresh?: boolean | null;
2813
+ /**
2814
+ * ClickHouse: POPULATE / EMPTY before AS in materialized views
2815
+ */
2816
+ clickhouse_population?: string | null;
2805
2817
  /**
2806
2818
  * ClickHouse: ON CLUSTER clause
2807
2819
  */
@@ -4298,6 +4310,8 @@ declare type Expression = {
4298
4310
  "put": PutStmt;
4299
4311
  } | {
4300
4312
  "stage_reference": StageReference;
4313
+ } | {
4314
+ "try_catch": TryCatch;
4301
4315
  } | {
4302
4316
  "alias": Alias;
4303
4317
  } | {
@@ -12520,6 +12534,14 @@ declare type Subquery = {
12520
12534
  * Optional column aliases: AS t(c1, c2)
12521
12535
  */
12522
12536
  column_aliases: Array<Identifier>;
12537
+ /**
12538
+ * Whether AS keyword was explicitly used for the alias.
12539
+ */
12540
+ alias_explicit_as: boolean;
12541
+ /**
12542
+ * Original alias keyword spelling, e.g. `AS` vs `as`.
12543
+ */
12544
+ alias_keyword?: string | null;
12523
12545
  /**
12524
12546
  * ORDER BY clause (for parenthesized queries)
12525
12547
  */
@@ -13620,6 +13642,20 @@ declare type TryBase64DecodeString = {
13620
13642
  alphabet: Expression | null;
13621
13643
  };
13622
13644
 
13645
+ /**
13646
+ * T-SQL TRY/CATCH block.
13647
+ */
13648
+ declare type TryCatch = {
13649
+ /**
13650
+ * Statements inside BEGIN TRY ... END TRY.
13651
+ */
13652
+ try_body: Array<Expression>;
13653
+ /**
13654
+ * Statements inside BEGIN CATCH ... END CATCH, when present.
13655
+ */
13656
+ catch_body?: Array<Expression> | null;
13657
+ };
13658
+
13623
13659
  /**
13624
13660
  * TryToDecfloat
13625
13661
  */
package/dist/index.d.ts CHANGED
@@ -146,6 +146,14 @@ declare type Alias = {
146
146
  * Optional column aliases for table-valued functions: AS t(col1, col2) or AS (col1, col2)
147
147
  */
148
148
  column_aliases: Array<Identifier>;
149
+ /**
150
+ * Whether AS keyword was explicitly used for the alias.
151
+ */
152
+ alias_explicit_as: boolean;
153
+ /**
154
+ * Original alias keyword spelling, e.g. `AS` vs `as`.
155
+ */
156
+ alias_keyword?: string | null;
149
157
  /**
150
158
  * Comments that appeared between the expression and AS keyword
151
159
  */
@@ -2802,6 +2810,10 @@ declare type CreateView = {
2802
2810
  * Redshift: AUTO REFRESH YES|NO for materialized views
2803
2811
  */
2804
2812
  auto_refresh?: boolean | null;
2813
+ /**
2814
+ * ClickHouse: POPULATE / EMPTY before AS in materialized views
2815
+ */
2816
+ clickhouse_population?: string | null;
2805
2817
  /**
2806
2818
  * ClickHouse: ON CLUSTER clause
2807
2819
  */
@@ -4298,6 +4310,8 @@ declare type Expression = {
4298
4310
  "put": PutStmt;
4299
4311
  } | {
4300
4312
  "stage_reference": StageReference;
4313
+ } | {
4314
+ "try_catch": TryCatch;
4301
4315
  } | {
4302
4316
  "alias": Alias;
4303
4317
  } | {
@@ -12520,6 +12534,14 @@ declare type Subquery = {
12520
12534
  * Optional column aliases: AS t(c1, c2)
12521
12535
  */
12522
12536
  column_aliases: Array<Identifier>;
12537
+ /**
12538
+ * Whether AS keyword was explicitly used for the alias.
12539
+ */
12540
+ alias_explicit_as: boolean;
12541
+ /**
12542
+ * Original alias keyword spelling, e.g. `AS` vs `as`.
12543
+ */
12544
+ alias_keyword?: string | null;
12523
12545
  /**
12524
12546
  * ORDER BY clause (for parenthesized queries)
12525
12547
  */
@@ -13620,6 +13642,20 @@ declare type TryBase64DecodeString = {
13620
13642
  alphabet: Expression | null;
13621
13643
  };
13622
13644
 
13645
+ /**
13646
+ * T-SQL TRY/CATCH block.
13647
+ */
13648
+ declare type TryCatch = {
13649
+ /**
13650
+ * Statements inside BEGIN TRY ... END TRY.
13651
+ */
13652
+ try_body: Array<Expression>;
13653
+ /**
13654
+ * Statements inside BEGIN CATCH ... END CATCH, when present.
13655
+ */
13656
+ catch_body?: Array<Expression> | null;
13657
+ };
13658
+
13623
13659
  /**
13624
13660
  * TryToDecfloat
13625
13661
  */
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-sql/sdk",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "SQL dialect translator powered by WebAssembly",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",