@sqlanvil/core 1.0.2 → 1.0.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.
Files changed (3) hide show
  1. package/bundle.d.ts +48 -3
  2. package/bundle.js +1 -1
  3. package/package.json +1 -1
package/bundle.d.ts CHANGED
@@ -13508,13 +13508,36 @@ declare class RealtimePublication extends ActionBuilder<sqlanvil.Operation> {
13508
13508
  compile(): sqlanvil.Operation;
13509
13509
  }
13510
13510
 
13511
+ interface IForeignTableConfigEntry {
13512
+ name: string;
13513
+ schema?: string;
13514
+ options?: {
13515
+ [key: string]: string;
13516
+ };
13517
+ columns?: {
13518
+ [key: string]: string;
13519
+ };
13520
+ }
13521
+ interface IWrapperCredential {
13522
+ saKeyId?: string;
13523
+ user?: string;
13524
+ password?: string;
13525
+ }
13511
13526
  interface IWrapperConfig {
13512
13527
  name: string;
13513
- wrapper: string;
13528
+ provider?: string;
13529
+ wrapper?: string;
13530
+ handler?: string;
13531
+ validator?: string;
13514
13532
  server: string;
13533
+ serverOptions?: {
13534
+ [key: string]: string;
13535
+ };
13515
13536
  options?: {
13516
13537
  [key: string]: string;
13517
13538
  };
13539
+ credential?: IWrapperCredential;
13540
+ foreignTables?: IForeignTableConfigEntry[];
13518
13541
  filename?: string;
13519
13542
  }
13520
13543
  declare class Wrapper extends ActionBuilder<sqlanvil.Operation> {
@@ -13526,6 +13549,28 @@ declare class Wrapper extends ActionBuilder<sqlanvil.Operation> {
13526
13549
  compile(): sqlanvil.Operation;
13527
13550
  }
13528
13551
 
13552
+ interface IForeignTableConfig {
13553
+ name: string;
13554
+ schema?: string;
13555
+ server: string;
13556
+ options?: {
13557
+ [key: string]: string;
13558
+ };
13559
+ columns?: {
13560
+ [key: string]: string;
13561
+ };
13562
+ dependsOn: string;
13563
+ filename?: string;
13564
+ }
13565
+ declare class ForeignTable extends ActionBuilder<sqlanvil.Operation> {
13566
+ private proto;
13567
+ private config;
13568
+ constructor(session: Session, config: IForeignTableConfig);
13569
+ getFileName(): string;
13570
+ getTarget(): sqlanvil.Target;
13571
+ compile(): sqlanvil.Operation;
13572
+ }
13573
+
13529
13574
  interface IVectorIndexConfig {
13530
13575
  name: string;
13531
13576
  table: string;
@@ -13557,7 +13602,7 @@ interface IRecordDescriptor {
13557
13602
  bigqueryPolicyTags?: string | string[];
13558
13603
  }
13559
13604
 
13560
- declare type Action = Table | View | IncrementalTable | Operation | Assertion | Declaration | Notebook | DataPreparation | Test | RlsPolicy | RealtimePublication | Wrapper | VectorIndex;
13605
+ declare type Action = Table | View | IncrementalTable | Operation | Assertion | Declaration | Notebook | DataPreparation | Test | RlsPolicy | RealtimePublication | Wrapper | ForeignTable | VectorIndex;
13561
13606
  interface INamedConfig {
13562
13607
  type?: string;
13563
13608
  name?: string;
@@ -13711,7 +13756,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
13711
13756
 
13712
13757
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
13713
13758
 
13714
- declare const version = "1.0.2";
13759
+ declare const version = "1.0.3";
13715
13760
 
13716
13761
  declare const session: Session;
13717
13762
  declare const supportedFeatures: sqlanvil.SupportedFeatures[];