@polyglot-sql/sdk 0.5.2 → 0.5.3

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
@@ -2910,6 +2910,13 @@ declare type Cte = {
2910
2910
  comments?: Array<string>;
2911
2911
  };
2912
2912
 
2913
+ export declare interface CteFact {
2914
+ name: string;
2915
+ columns: string[];
2916
+ bodySql: string;
2917
+ outputColumns: string[];
2918
+ }
2919
+
2913
2920
  /**
2914
2921
  * Cube
2915
2922
  */
@@ -10872,9 +10879,12 @@ export declare interface ProjectionFact {
10872
10879
  transformKind: TransformKind;
10873
10880
  castType?: string;
10874
10881
  typeHint?: string;
10882
+ nullability: ProjectionNullability;
10875
10883
  upstream: ColumnReferenceFact[];
10876
10884
  }
10877
10885
 
10886
+ export declare type ProjectionNullability = 'non_null' | 'nullable' | 'unknown';
10887
+
10878
10888
  /**
10879
10889
  * Properties
10880
10890
  */
@@ -11006,9 +11016,11 @@ declare type Quantile = {
11006
11016
  export declare interface QueryAnalysis {
11007
11017
  shape: QueryShape;
11008
11018
  ctes: string[];
11019
+ cteFacts: CteFact[];
11009
11020
  projections: ProjectionFact[];
11010
11021
  relations: RelationFact[];
11011
11022
  baseTables: RelationFact[];
11023
+ starProjections: StarProjectionFact[];
11012
11024
  setOperations: SetOperationFact[];
11013
11025
  }
11014
11026
 
@@ -12654,6 +12666,12 @@ declare type Star = {
12654
12666
  /** Create a star (*) expression. */
12655
12667
  export declare function star(): Expr;
12656
12668
 
12669
+ export declare interface StarProjectionFact {
12670
+ index: number;
12671
+ table?: string;
12672
+ expandedColumns: string[];
12673
+ }
12674
+
12657
12675
  /**
12658
12676
  * StDistance
12659
12677
  */
package/dist/index.d.ts CHANGED
@@ -2910,6 +2910,13 @@ declare type Cte = {
2910
2910
  comments?: Array<string>;
2911
2911
  };
2912
2912
 
2913
+ export declare interface CteFact {
2914
+ name: string;
2915
+ columns: string[];
2916
+ bodySql: string;
2917
+ outputColumns: string[];
2918
+ }
2919
+
2913
2920
  /**
2914
2921
  * Cube
2915
2922
  */
@@ -10872,9 +10879,12 @@ export declare interface ProjectionFact {
10872
10879
  transformKind: TransformKind;
10873
10880
  castType?: string;
10874
10881
  typeHint?: string;
10882
+ nullability: ProjectionNullability;
10875
10883
  upstream: ColumnReferenceFact[];
10876
10884
  }
10877
10885
 
10886
+ export declare type ProjectionNullability = 'non_null' | 'nullable' | 'unknown';
10887
+
10878
10888
  /**
10879
10889
  * Properties
10880
10890
  */
@@ -11006,9 +11016,11 @@ declare type Quantile = {
11006
11016
  export declare interface QueryAnalysis {
11007
11017
  shape: QueryShape;
11008
11018
  ctes: string[];
11019
+ cteFacts: CteFact[];
11009
11020
  projections: ProjectionFact[];
11010
11021
  relations: RelationFact[];
11011
11022
  baseTables: RelationFact[];
11023
+ starProjections: StarProjectionFact[];
11012
11024
  setOperations: SetOperationFact[];
11013
11025
  }
11014
11026
 
@@ -12654,6 +12666,12 @@ declare type Star = {
12654
12666
  /** Create a star (*) expression. */
12655
12667
  export declare function star(): Expr;
12656
12668
 
12669
+ export declare interface StarProjectionFact {
12670
+ index: number;
12671
+ table?: string;
12672
+ expandedColumns: string[];
12673
+ }
12674
+
12657
12675
  /**
12658
12676
  * StDistance
12659
12677
  */
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-sql/sdk",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "SQL dialect translator powered by WebAssembly",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",