@sqlanvil/core 1.27.2 → 1.29.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/bundle.d.ts CHANGED
@@ -65,6 +65,9 @@ namespace sqlanvil {
65
65
 
66
66
  /** WorkflowSettings environments */
67
67
  environments?: ({ [k: string]: sqlanvil.IEnvironment }|null);
68
+
69
+ /** WorkflowSettings preserveGovernanceControls */
70
+ preserveGovernanceControls?: (boolean|null);
68
71
  }
69
72
 
70
73
  /** Represents a WorkflowSettings. */
@@ -133,6 +136,9 @@ namespace sqlanvil {
133
136
  /** WorkflowSettings environments. */
134
137
  public environments: { [k: string]: sqlanvil.IEnvironment };
135
138
 
139
+ /** WorkflowSettings preserveGovernanceControls. */
140
+ public preserveGovernanceControls: boolean;
141
+
136
142
  /**
137
143
  * Creates a new WorkflowSettings instance using the specified properties.
138
144
  * @param [properties] Properties to set
@@ -1536,6 +1542,9 @@ namespace sqlanvil {
1536
1542
 
1537
1543
  /** TableConfig mysql */
1538
1544
  mysql?: (sqlanvil.IMysqlOptions|null);
1545
+
1546
+ /** TableConfig preserveGovernanceControls */
1547
+ preserveGovernanceControls?: (boolean|null);
1539
1548
  }
1540
1549
 
1541
1550
  /** Represents a TableConfig. */
@@ -1625,6 +1634,9 @@ namespace sqlanvil {
1625
1634
  /** TableConfig mysql. */
1626
1635
  public mysql?: (sqlanvil.IMysqlOptions|null);
1627
1636
 
1637
+ /** TableConfig preserveGovernanceControls. */
1638
+ public preserveGovernanceControls?: (boolean|null);
1639
+
1628
1640
  /**
1629
1641
  * Creates a new TableConfig instance using the specified properties.
1630
1642
  * @param [properties] Properties to set
@@ -2043,6 +2055,13 @@ namespace sqlanvil {
2043
2055
  SYNCHRONIZE = 3
2044
2056
  }
2045
2057
 
2058
+ /** IncrementalStrategy enum. */
2059
+ enum IncrementalStrategy {
2060
+ INCREMENTAL_STRATEGY_UNSPECIFIED = 0,
2061
+ INCREMENTAL_STRATEGY_MERGE = 1,
2062
+ INCREMENTAL_STRATEGY_INSERT_OVERWRITE = 2
2063
+ }
2064
+
2046
2065
  /** Properties of an IncrementalTableConfig. */
2047
2066
  interface IIncrementalTableConfig {
2048
2067
 
@@ -2135,6 +2154,12 @@ namespace sqlanvil {
2135
2154
 
2136
2155
  /** IncrementalTableConfig mysql */
2137
2156
  mysql?: (sqlanvil.IMysqlOptions|null);
2157
+
2158
+ /** IncrementalTableConfig incrementalStrategy */
2159
+ incrementalStrategy?: (sqlanvil.ActionConfig.IncrementalStrategy|null);
2160
+
2161
+ /** IncrementalTableConfig incrementalPredicates */
2162
+ incrementalPredicates?: (string[]|null);
2138
2163
  }
2139
2164
 
2140
2165
  /** Represents an IncrementalTableConfig. */
@@ -2236,6 +2261,12 @@ namespace sqlanvil {
2236
2261
  /** IncrementalTableConfig mysql. */
2237
2262
  public mysql?: (sqlanvil.IMysqlOptions|null);
2238
2263
 
2264
+ /** IncrementalTableConfig incrementalStrategy. */
2265
+ public incrementalStrategy: sqlanvil.ActionConfig.IncrementalStrategy;
2266
+
2267
+ /** IncrementalTableConfig incrementalPredicates. */
2268
+ public incrementalPredicates: string[];
2269
+
2239
2270
  /**
2240
2271
  * Creates a new IncrementalTableConfig instance using the specified properties.
2241
2272
  * @param [properties] Properties to set
@@ -6783,6 +6814,9 @@ namespace sqlanvil {
6783
6814
 
6784
6815
  /** ProjectConfig warehouseConnection */
6785
6816
  warehouseConnection?: (string|null);
6817
+
6818
+ /** ProjectConfig preserveGovernanceControls */
6819
+ preserveGovernanceControls?: (boolean|null);
6786
6820
  }
6787
6821
 
6788
6822
  /** Represents a ProjectConfig. */
@@ -6845,6 +6879,9 @@ namespace sqlanvil {
6845
6879
  /** ProjectConfig warehouseConnection. */
6846
6880
  public warehouseConnection: string;
6847
6881
 
6882
+ /** ProjectConfig preserveGovernanceControls. */
6883
+ public preserveGovernanceControls: boolean;
6884
+
6848
6885
  /**
6849
6886
  * Creates a new ProjectConfig instance using the specified properties.
6850
6887
  * @param [properties] Properties to set
@@ -7212,6 +7249,12 @@ namespace sqlanvil {
7212
7249
 
7213
7250
  /** BigQueryOptions storageUri */
7214
7251
  storageUri?: (string|null);
7252
+
7253
+ /** BigQueryOptions incrementalPredicates */
7254
+ incrementalPredicates?: (string[]|null);
7255
+
7256
+ /** BigQueryOptions preserveGovernanceControls */
7257
+ preserveGovernanceControls?: (boolean|null);
7215
7258
  }
7216
7259
 
7217
7260
  /** Represents a BigQueryOptions. */
@@ -7256,6 +7299,12 @@ namespace sqlanvil {
7256
7299
  /** BigQueryOptions storageUri. */
7257
7300
  public storageUri: string;
7258
7301
 
7302
+ /** BigQueryOptions incrementalPredicates. */
7303
+ public incrementalPredicates: string[];
7304
+
7305
+ /** BigQueryOptions preserveGovernanceControls. */
7306
+ public preserveGovernanceControls: boolean;
7307
+
7259
7308
  /**
7260
7309
  * Creates a new BigQueryOptions instance using the specified properties.
7261
7310
  * @param [properties] Properties to set
@@ -7926,6 +7975,13 @@ namespace sqlanvil {
7926
7975
  SYNCHRONIZE = 3
7927
7976
  }
7928
7977
 
7978
+ /** IncrementalStrategy enum. */
7979
+ enum IncrementalStrategy {
7980
+ INCREMENTAL_STRATEGY_UNSPECIFIED = 0,
7981
+ MERGE = 1,
7982
+ INSERT_OVERWRITE = 2
7983
+ }
7984
+
7929
7985
  /** Properties of a Table. */
7930
7986
  interface ITable {
7931
7987
 
@@ -7992,6 +8048,9 @@ namespace sqlanvil {
7992
8048
  /** Table jitCode */
7993
8049
  jitCode?: (string|null);
7994
8050
 
8051
+ /** Table incrementalStrategy */
8052
+ incrementalStrategy?: (sqlanvil.IncrementalStrategy|null);
8053
+
7995
8054
  /** Table bigquery */
7996
8055
  bigquery?: (sqlanvil.IBigQueryOptions|null);
7997
8056
 
@@ -8080,6 +8139,9 @@ namespace sqlanvil {
8080
8139
  /** Table jitCode. */
8081
8140
  public jitCode: string;
8082
8141
 
8142
+ /** Table incrementalStrategy. */
8143
+ public incrementalStrategy: sqlanvil.IncrementalStrategy;
8144
+
8083
8145
  /** Table bigquery. */
8084
8146
  public bigquery?: (sqlanvil.IBigQueryOptions|null);
8085
8147
 
@@ -12057,6 +12119,9 @@ namespace sqlanvil {
12057
12119
  /** RunConfig timeoutMillis */
12058
12120
  timeoutMillis?: (number|null);
12059
12121
 
12122
+ /** RunConfig jitTimeoutMillis */
12123
+ jitTimeoutMillis?: (number|null);
12124
+
12060
12125
  /** RunConfig disableSetMetadata */
12061
12126
  disableSetMetadata?: (boolean|null);
12062
12127
 
@@ -12091,6 +12156,9 @@ namespace sqlanvil {
12091
12156
  /** RunConfig timeoutMillis. */
12092
12157
  public timeoutMillis: number;
12093
12158
 
12159
+ /** RunConfig jitTimeoutMillis. */
12160
+ public jitTimeoutMillis: number;
12161
+
12094
12162
  /** RunConfig disableSetMetadata. */
12095
12163
  public disableSetMetadata: boolean;
12096
12164
 
@@ -13553,6 +13621,9 @@ namespace sqlanvil {
13553
13621
 
13554
13622
  /** TaskResult metadata */
13555
13623
  metadata?: (sqlanvil.IExecutionMetadata|null);
13624
+
13625
+ /** TaskResult compiledSql */
13626
+ compiledSql?: (string|null);
13556
13627
  }
13557
13628
 
13558
13629
  /** Represents a TaskResult. */
@@ -13576,6 +13647,9 @@ namespace sqlanvil {
13576
13647
  /** TaskResult metadata. */
13577
13648
  public metadata?: (sqlanvil.IExecutionMetadata|null);
13578
13649
 
13650
+ /** TaskResult compiledSql. */
13651
+ public compiledSql: string;
13652
+
13579
13653
  /**
13580
13654
  * Creates a new TaskResult instance using the specified properties.
13581
13655
  * @param [properties] Properties to set
@@ -16100,7 +16174,9 @@ declare type JitContext<T> = T & {
16100
16174
  declare type JitContextable<Context, T> = string | ((jctx: JitContext<Context>) => Promise<T>);
16101
16175
 
16102
16176
  declare type AContextable<T> = T | ((ctx: AssertionContext) => T);
16103
- declare type JitAssertionResult = string;
16177
+ declare type JitAssertionResult = string | {
16178
+ query: string;
16179
+ };
16104
16180
  declare class Assertion extends ActionBuilder<sqlanvil.Assertion> {
16105
16181
  session: Session;
16106
16182
  private proto;
@@ -16386,6 +16462,9 @@ declare class IncrementalTable extends ActionBuilder<sqlanvil.Table> {
16386
16462
  private contextifyOps;
16387
16463
  private verifyConfig;
16388
16464
  private mapOnSchemaChange;
16465
+ private mapIncrementalStrategy;
16466
+ private checkIncrementalStrategyRequirements;
16467
+ private checkMutuallyExclusivePredicates;
16389
16468
  }
16390
16469
 
16391
16470
  declare class Notebook extends ActionBuilder<sqlanvil.Notebook> {
@@ -16709,6 +16788,7 @@ interface ILegacyBigQueryOptions {
16709
16788
  tableFolderRoot?: string;
16710
16789
  tableFolderSubpath?: string;
16711
16790
  };
16791
+ incrementalPredicates?: string[];
16712
16792
  }
16713
16793
  interface ILegacyTableAssertions {
16714
16794
  uniqueKey?: string | string[];
@@ -16814,7 +16894,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
16814
16894
 
16815
16895
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
16816
16896
 
16817
- declare const version = "1.27.2";
16897
+ declare const version = "1.29.0";
16818
16898
 
16819
16899
  declare const session: Session;
16820
16900
  declare const supportedFeatures: sqlanvil.SupportedFeatures[];