@sqlanvil/core 1.6.0 → 1.8.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/README.md +1 -1
- package/bundle.d.ts +749 -3
- package/bundle.js +1 -1
- package/configs.proto +64 -0
- package/core.proto +25 -0
- package/package.json +1 -1
package/bundle.d.ts
CHANGED
|
@@ -61,6 +61,9 @@ namespace sqlanvil {
|
|
|
61
61
|
|
|
62
62
|
/** WorkflowSettings connections */
|
|
63
63
|
connections?: ({ [k: string]: sqlanvil.IConnectionConfig }|null);
|
|
64
|
+
|
|
65
|
+
/** WorkflowSettings environments */
|
|
66
|
+
environments?: ({ [k: string]: sqlanvil.IEnvironment }|null);
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
/** Represents a WorkflowSettings. */
|
|
@@ -126,6 +129,9 @@ namespace sqlanvil {
|
|
|
126
129
|
/** WorkflowSettings connections. */
|
|
127
130
|
public connections: { [k: string]: sqlanvil.IConnectionConfig };
|
|
128
131
|
|
|
132
|
+
/** WorkflowSettings environments. */
|
|
133
|
+
public environments: { [k: string]: sqlanvil.IEnvironment };
|
|
134
|
+
|
|
129
135
|
/**
|
|
130
136
|
* Creates a new WorkflowSettings instance using the specified properties.
|
|
131
137
|
* @param [properties] Properties to set
|
|
@@ -204,6 +210,127 @@ namespace sqlanvil {
|
|
|
204
210
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
205
211
|
}
|
|
206
212
|
|
|
213
|
+
/** Properties of an Environment. */
|
|
214
|
+
interface IEnvironment {
|
|
215
|
+
|
|
216
|
+
/** Environment schemaSuffix */
|
|
217
|
+
schemaSuffix?: (string|null);
|
|
218
|
+
|
|
219
|
+
/** Environment vars */
|
|
220
|
+
vars?: ({ [k: string]: string }|null);
|
|
221
|
+
|
|
222
|
+
/** Environment defaultDatabase */
|
|
223
|
+
defaultDatabase?: (string|null);
|
|
224
|
+
|
|
225
|
+
/** Environment defaultLocation */
|
|
226
|
+
defaultLocation?: (string|null);
|
|
227
|
+
|
|
228
|
+
/** Environment credentials */
|
|
229
|
+
credentials?: (string|null);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** Represents an Environment. */
|
|
233
|
+
class Environment implements IEnvironment {
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Constructs a new Environment.
|
|
237
|
+
* @param [properties] Properties to set
|
|
238
|
+
*/
|
|
239
|
+
constructor(properties?: sqlanvil.IEnvironment);
|
|
240
|
+
|
|
241
|
+
/** Environment schemaSuffix. */
|
|
242
|
+
public schemaSuffix: string;
|
|
243
|
+
|
|
244
|
+
/** Environment vars. */
|
|
245
|
+
public vars: { [k: string]: string };
|
|
246
|
+
|
|
247
|
+
/** Environment defaultDatabase. */
|
|
248
|
+
public defaultDatabase: string;
|
|
249
|
+
|
|
250
|
+
/** Environment defaultLocation. */
|
|
251
|
+
public defaultLocation: string;
|
|
252
|
+
|
|
253
|
+
/** Environment credentials. */
|
|
254
|
+
public credentials: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Creates a new Environment instance using the specified properties.
|
|
258
|
+
* @param [properties] Properties to set
|
|
259
|
+
* @returns Environment instance
|
|
260
|
+
*/
|
|
261
|
+
public static create(properties?: sqlanvil.IEnvironment): sqlanvil.Environment;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Encodes the specified Environment message. Does not implicitly {@link sqlanvil.Environment.verify|verify} messages.
|
|
265
|
+
* @param message Environment message or plain object to encode
|
|
266
|
+
* @param [writer] Writer to encode to
|
|
267
|
+
* @returns Writer
|
|
268
|
+
*/
|
|
269
|
+
public static encode(message: sqlanvil.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Encodes the specified Environment message, length delimited. Does not implicitly {@link sqlanvil.Environment.verify|verify} messages.
|
|
273
|
+
* @param message Environment message or plain object to encode
|
|
274
|
+
* @param [writer] Writer to encode to
|
|
275
|
+
* @returns Writer
|
|
276
|
+
*/
|
|
277
|
+
public static encodeDelimited(message: sqlanvil.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Decodes an Environment message from the specified reader or buffer.
|
|
281
|
+
* @param reader Reader or buffer to decode from
|
|
282
|
+
* @param [length] Message length if known beforehand
|
|
283
|
+
* @returns Environment
|
|
284
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
285
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
286
|
+
*/
|
|
287
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.Environment;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Decodes an Environment message from the specified reader or buffer, length delimited.
|
|
291
|
+
* @param reader Reader or buffer to decode from
|
|
292
|
+
* @returns Environment
|
|
293
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
294
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
295
|
+
*/
|
|
296
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.Environment;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Verifies an Environment message.
|
|
300
|
+
* @param message Plain object to verify
|
|
301
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
302
|
+
*/
|
|
303
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Creates an Environment message from a plain object. Also converts values to their respective internal types.
|
|
307
|
+
* @param object Plain object
|
|
308
|
+
* @returns Environment
|
|
309
|
+
*/
|
|
310
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.Environment;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Creates a plain object from an Environment message. Also converts values to other types if specified.
|
|
314
|
+
* @param message Environment
|
|
315
|
+
* @param [options] Conversion options
|
|
316
|
+
* @returns Plain object
|
|
317
|
+
*/
|
|
318
|
+
public static toObject(message: sqlanvil.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Converts this Environment to JSON.
|
|
322
|
+
* @returns JSON object
|
|
323
|
+
*/
|
|
324
|
+
public toJSON(): { [k: string]: any };
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Gets the default type url for Environment
|
|
328
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
329
|
+
* @returns The default type url
|
|
330
|
+
*/
|
|
331
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
332
|
+
}
|
|
333
|
+
|
|
207
334
|
/** Properties of a ConnectionConfig. */
|
|
208
335
|
interface IConnectionConfig {
|
|
209
336
|
|
|
@@ -593,6 +720,9 @@ namespace sqlanvil {
|
|
|
593
720
|
|
|
594
721
|
/** ActionConfig vectorIndex */
|
|
595
722
|
vectorIndex?: (sqlanvil.ActionConfig.IVectorIndexConfig|null);
|
|
723
|
+
|
|
724
|
+
/** ActionConfig export */
|
|
725
|
+
"export"?: (sqlanvil.ActionConfig.IExportConfig|null);
|
|
596
726
|
}
|
|
597
727
|
|
|
598
728
|
/** Represents an ActionConfig. */
|
|
@@ -640,8 +770,11 @@ namespace sqlanvil {
|
|
|
640
770
|
/** ActionConfig vectorIndex. */
|
|
641
771
|
public vectorIndex?: (sqlanvil.ActionConfig.IVectorIndexConfig|null);
|
|
642
772
|
|
|
773
|
+
/** ActionConfig export. */
|
|
774
|
+
public export?: (sqlanvil.ActionConfig.IExportConfig|null);
|
|
775
|
+
|
|
643
776
|
/** ActionConfig action. */
|
|
644
|
-
public action?: ("table"|"view"|"incrementalTable"|"assertion"|"operation"|"declaration"|"notebook"|"dataPreparation"|"rlsPolicy"|"realtimePublication"|"foreignWrapper"|"vectorIndex");
|
|
777
|
+
public action?: ("table"|"view"|"incrementalTable"|"assertion"|"operation"|"declaration"|"notebook"|"dataPreparation"|"rlsPolicy"|"realtimePublication"|"foreignWrapper"|"vectorIndex"|"export");
|
|
645
778
|
|
|
646
779
|
/**
|
|
647
780
|
* Creates a new ActionConfig instance using the specified properties.
|
|
@@ -2476,6 +2609,278 @@ namespace sqlanvil {
|
|
|
2476
2609
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2477
2610
|
}
|
|
2478
2611
|
|
|
2612
|
+
/** Properties of an ExportOptions. */
|
|
2613
|
+
interface IExportOptions {
|
|
2614
|
+
|
|
2615
|
+
/** ExportOptions location */
|
|
2616
|
+
location?: (string|null);
|
|
2617
|
+
|
|
2618
|
+
/** ExportOptions format */
|
|
2619
|
+
format?: (string|null);
|
|
2620
|
+
|
|
2621
|
+
/** ExportOptions overwrite */
|
|
2622
|
+
overwrite?: (boolean|null);
|
|
2623
|
+
|
|
2624
|
+
/** ExportOptions filename */
|
|
2625
|
+
filename?: (string|null);
|
|
2626
|
+
|
|
2627
|
+
/** ExportOptions options */
|
|
2628
|
+
options?: ({ [k: string]: string }|null);
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
/** Represents an ExportOptions. */
|
|
2632
|
+
class ExportOptions implements IExportOptions {
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* Constructs a new ExportOptions.
|
|
2636
|
+
* @param [properties] Properties to set
|
|
2637
|
+
*/
|
|
2638
|
+
constructor(properties?: sqlanvil.ActionConfig.IExportOptions);
|
|
2639
|
+
|
|
2640
|
+
/** ExportOptions location. */
|
|
2641
|
+
public location: string;
|
|
2642
|
+
|
|
2643
|
+
/** ExportOptions format. */
|
|
2644
|
+
public format: string;
|
|
2645
|
+
|
|
2646
|
+
/** ExportOptions overwrite. */
|
|
2647
|
+
public overwrite: boolean;
|
|
2648
|
+
|
|
2649
|
+
/** ExportOptions filename. */
|
|
2650
|
+
public filename: string;
|
|
2651
|
+
|
|
2652
|
+
/** ExportOptions options. */
|
|
2653
|
+
public options: { [k: string]: string };
|
|
2654
|
+
|
|
2655
|
+
/**
|
|
2656
|
+
* Creates a new ExportOptions instance using the specified properties.
|
|
2657
|
+
* @param [properties] Properties to set
|
|
2658
|
+
* @returns ExportOptions instance
|
|
2659
|
+
*/
|
|
2660
|
+
public static create(properties?: sqlanvil.ActionConfig.IExportOptions): sqlanvil.ActionConfig.ExportOptions;
|
|
2661
|
+
|
|
2662
|
+
/**
|
|
2663
|
+
* Encodes the specified ExportOptions message. Does not implicitly {@link sqlanvil.ActionConfig.ExportOptions.verify|verify} messages.
|
|
2664
|
+
* @param message ExportOptions message or plain object to encode
|
|
2665
|
+
* @param [writer] Writer to encode to
|
|
2666
|
+
* @returns Writer
|
|
2667
|
+
*/
|
|
2668
|
+
public static encode(message: sqlanvil.ActionConfig.IExportOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* Encodes the specified ExportOptions message, length delimited. Does not implicitly {@link sqlanvil.ActionConfig.ExportOptions.verify|verify} messages.
|
|
2672
|
+
* @param message ExportOptions message or plain object to encode
|
|
2673
|
+
* @param [writer] Writer to encode to
|
|
2674
|
+
* @returns Writer
|
|
2675
|
+
*/
|
|
2676
|
+
public static encodeDelimited(message: sqlanvil.ActionConfig.IExportOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2677
|
+
|
|
2678
|
+
/**
|
|
2679
|
+
* Decodes an ExportOptions message from the specified reader or buffer.
|
|
2680
|
+
* @param reader Reader or buffer to decode from
|
|
2681
|
+
* @param [length] Message length if known beforehand
|
|
2682
|
+
* @returns ExportOptions
|
|
2683
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2684
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2685
|
+
*/
|
|
2686
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.ActionConfig.ExportOptions;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* Decodes an ExportOptions message from the specified reader or buffer, length delimited.
|
|
2690
|
+
* @param reader Reader or buffer to decode from
|
|
2691
|
+
* @returns ExportOptions
|
|
2692
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2693
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2694
|
+
*/
|
|
2695
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.ActionConfig.ExportOptions;
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* Verifies an ExportOptions message.
|
|
2699
|
+
* @param message Plain object to verify
|
|
2700
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2701
|
+
*/
|
|
2702
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* Creates an ExportOptions message from a plain object. Also converts values to their respective internal types.
|
|
2706
|
+
* @param object Plain object
|
|
2707
|
+
* @returns ExportOptions
|
|
2708
|
+
*/
|
|
2709
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.ActionConfig.ExportOptions;
|
|
2710
|
+
|
|
2711
|
+
/**
|
|
2712
|
+
* Creates a plain object from an ExportOptions message. Also converts values to other types if specified.
|
|
2713
|
+
* @param message ExportOptions
|
|
2714
|
+
* @param [options] Conversion options
|
|
2715
|
+
* @returns Plain object
|
|
2716
|
+
*/
|
|
2717
|
+
public static toObject(message: sqlanvil.ActionConfig.ExportOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* Converts this ExportOptions to JSON.
|
|
2721
|
+
* @returns JSON object
|
|
2722
|
+
*/
|
|
2723
|
+
public toJSON(): { [k: string]: any };
|
|
2724
|
+
|
|
2725
|
+
/**
|
|
2726
|
+
* Gets the default type url for ExportOptions
|
|
2727
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2728
|
+
* @returns The default type url
|
|
2729
|
+
*/
|
|
2730
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
/** Properties of an ExportConfig. */
|
|
2734
|
+
interface IExportConfig {
|
|
2735
|
+
|
|
2736
|
+
/** ExportConfig name */
|
|
2737
|
+
name?: (string|null);
|
|
2738
|
+
|
|
2739
|
+
/** ExportConfig dataset */
|
|
2740
|
+
dataset?: (string|null);
|
|
2741
|
+
|
|
2742
|
+
/** ExportConfig project */
|
|
2743
|
+
project?: (string|null);
|
|
2744
|
+
|
|
2745
|
+
/** ExportConfig dependencyTargets */
|
|
2746
|
+
dependencyTargets?: (sqlanvil.ActionConfig.ITarget[]|null);
|
|
2747
|
+
|
|
2748
|
+
/** ExportConfig filename */
|
|
2749
|
+
filename?: (string|null);
|
|
2750
|
+
|
|
2751
|
+
/** ExportConfig tags */
|
|
2752
|
+
tags?: (string[]|null);
|
|
2753
|
+
|
|
2754
|
+
/** ExportConfig disabled */
|
|
2755
|
+
disabled?: (boolean|null);
|
|
2756
|
+
|
|
2757
|
+
/** ExportConfig description */
|
|
2758
|
+
description?: (string|null);
|
|
2759
|
+
|
|
2760
|
+
/** ExportConfig hermetic */
|
|
2761
|
+
hermetic?: (boolean|null);
|
|
2762
|
+
|
|
2763
|
+
/** ExportConfig export */
|
|
2764
|
+
"export"?: (sqlanvil.ActionConfig.IExportOptions|null);
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
/** Represents an ExportConfig. */
|
|
2768
|
+
class ExportConfig implements IExportConfig {
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
* Constructs a new ExportConfig.
|
|
2772
|
+
* @param [properties] Properties to set
|
|
2773
|
+
*/
|
|
2774
|
+
constructor(properties?: sqlanvil.ActionConfig.IExportConfig);
|
|
2775
|
+
|
|
2776
|
+
/** ExportConfig name. */
|
|
2777
|
+
public name: string;
|
|
2778
|
+
|
|
2779
|
+
/** ExportConfig dataset. */
|
|
2780
|
+
public dataset: string;
|
|
2781
|
+
|
|
2782
|
+
/** ExportConfig project. */
|
|
2783
|
+
public project: string;
|
|
2784
|
+
|
|
2785
|
+
/** ExportConfig dependencyTargets. */
|
|
2786
|
+
public dependencyTargets: sqlanvil.ActionConfig.ITarget[];
|
|
2787
|
+
|
|
2788
|
+
/** ExportConfig filename. */
|
|
2789
|
+
public filename: string;
|
|
2790
|
+
|
|
2791
|
+
/** ExportConfig tags. */
|
|
2792
|
+
public tags: string[];
|
|
2793
|
+
|
|
2794
|
+
/** ExportConfig disabled. */
|
|
2795
|
+
public disabled: boolean;
|
|
2796
|
+
|
|
2797
|
+
/** ExportConfig description. */
|
|
2798
|
+
public description: string;
|
|
2799
|
+
|
|
2800
|
+
/** ExportConfig hermetic. */
|
|
2801
|
+
public hermetic: boolean;
|
|
2802
|
+
|
|
2803
|
+
/** ExportConfig export. */
|
|
2804
|
+
public export?: (sqlanvil.ActionConfig.IExportOptions|null);
|
|
2805
|
+
|
|
2806
|
+
/**
|
|
2807
|
+
* Creates a new ExportConfig instance using the specified properties.
|
|
2808
|
+
* @param [properties] Properties to set
|
|
2809
|
+
* @returns ExportConfig instance
|
|
2810
|
+
*/
|
|
2811
|
+
public static create(properties?: sqlanvil.ActionConfig.IExportConfig): sqlanvil.ActionConfig.ExportConfig;
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* Encodes the specified ExportConfig message. Does not implicitly {@link sqlanvil.ActionConfig.ExportConfig.verify|verify} messages.
|
|
2815
|
+
* @param message ExportConfig message or plain object to encode
|
|
2816
|
+
* @param [writer] Writer to encode to
|
|
2817
|
+
* @returns Writer
|
|
2818
|
+
*/
|
|
2819
|
+
public static encode(message: sqlanvil.ActionConfig.IExportConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* Encodes the specified ExportConfig message, length delimited. Does not implicitly {@link sqlanvil.ActionConfig.ExportConfig.verify|verify} messages.
|
|
2823
|
+
* @param message ExportConfig message or plain object to encode
|
|
2824
|
+
* @param [writer] Writer to encode to
|
|
2825
|
+
* @returns Writer
|
|
2826
|
+
*/
|
|
2827
|
+
public static encodeDelimited(message: sqlanvil.ActionConfig.IExportConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2828
|
+
|
|
2829
|
+
/**
|
|
2830
|
+
* Decodes an ExportConfig message from the specified reader or buffer.
|
|
2831
|
+
* @param reader Reader or buffer to decode from
|
|
2832
|
+
* @param [length] Message length if known beforehand
|
|
2833
|
+
* @returns ExportConfig
|
|
2834
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2835
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2836
|
+
*/
|
|
2837
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.ActionConfig.ExportConfig;
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* Decodes an ExportConfig message from the specified reader or buffer, length delimited.
|
|
2841
|
+
* @param reader Reader or buffer to decode from
|
|
2842
|
+
* @returns ExportConfig
|
|
2843
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2844
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2845
|
+
*/
|
|
2846
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.ActionConfig.ExportConfig;
|
|
2847
|
+
|
|
2848
|
+
/**
|
|
2849
|
+
* Verifies an ExportConfig message.
|
|
2850
|
+
* @param message Plain object to verify
|
|
2851
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2852
|
+
*/
|
|
2853
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* Creates an ExportConfig message from a plain object. Also converts values to their respective internal types.
|
|
2857
|
+
* @param object Plain object
|
|
2858
|
+
* @returns ExportConfig
|
|
2859
|
+
*/
|
|
2860
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.ActionConfig.ExportConfig;
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* Creates a plain object from an ExportConfig message. Also converts values to other types if specified.
|
|
2864
|
+
* @param message ExportConfig
|
|
2865
|
+
* @param [options] Conversion options
|
|
2866
|
+
* @returns Plain object
|
|
2867
|
+
*/
|
|
2868
|
+
public static toObject(message: sqlanvil.ActionConfig.ExportConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* Converts this ExportConfig to JSON.
|
|
2872
|
+
* @returns JSON object
|
|
2873
|
+
*/
|
|
2874
|
+
public toJSON(): { [k: string]: any };
|
|
2875
|
+
|
|
2876
|
+
/**
|
|
2877
|
+
* Gets the default type url for ExportConfig
|
|
2878
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2879
|
+
* @returns The default type url
|
|
2880
|
+
*/
|
|
2881
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2479
2884
|
/** Properties of a DeclarationConfig. */
|
|
2480
2885
|
interface IDeclarationConfig {
|
|
2481
2886
|
|
|
@@ -7200,6 +7605,187 @@ namespace sqlanvil {
|
|
|
7200
7605
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7201
7606
|
}
|
|
7202
7607
|
|
|
7608
|
+
/** Properties of an Export. */
|
|
7609
|
+
interface IExport {
|
|
7610
|
+
|
|
7611
|
+
/** Export target */
|
|
7612
|
+
target?: (sqlanvil.ITarget|null);
|
|
7613
|
+
|
|
7614
|
+
/** Export canonicalTarget */
|
|
7615
|
+
canonicalTarget?: (sqlanvil.ITarget|null);
|
|
7616
|
+
|
|
7617
|
+
/** Export dependencyTargets */
|
|
7618
|
+
dependencyTargets?: (sqlanvil.ITarget[]|null);
|
|
7619
|
+
|
|
7620
|
+
/** Export hermeticity */
|
|
7621
|
+
hermeticity?: (sqlanvil.ActionHermeticity|null);
|
|
7622
|
+
|
|
7623
|
+
/** Export disabled */
|
|
7624
|
+
disabled?: (boolean|null);
|
|
7625
|
+
|
|
7626
|
+
/** Export tags */
|
|
7627
|
+
tags?: (string[]|null);
|
|
7628
|
+
|
|
7629
|
+
/** Export actionDescriptor */
|
|
7630
|
+
actionDescriptor?: (sqlanvil.IActionDescriptor|null);
|
|
7631
|
+
|
|
7632
|
+
/** Export query */
|
|
7633
|
+
query?: (string|null);
|
|
7634
|
+
|
|
7635
|
+
/** Export location */
|
|
7636
|
+
location?: (string|null);
|
|
7637
|
+
|
|
7638
|
+
/** Export format */
|
|
7639
|
+
format?: (string|null);
|
|
7640
|
+
|
|
7641
|
+
/** Export overwrite */
|
|
7642
|
+
overwrite?: (boolean|null);
|
|
7643
|
+
|
|
7644
|
+
/** Export filename */
|
|
7645
|
+
filename?: (string|null);
|
|
7646
|
+
|
|
7647
|
+
/** Export options */
|
|
7648
|
+
options?: ({ [k: string]: string }|null);
|
|
7649
|
+
|
|
7650
|
+
/** Export fileName */
|
|
7651
|
+
fileName?: (string|null);
|
|
7652
|
+
|
|
7653
|
+
/** Export jitCode */
|
|
7654
|
+
jitCode?: (string|null);
|
|
7655
|
+
}
|
|
7656
|
+
|
|
7657
|
+
/** Represents an Export. */
|
|
7658
|
+
class Export implements IExport {
|
|
7659
|
+
|
|
7660
|
+
/**
|
|
7661
|
+
* Constructs a new Export.
|
|
7662
|
+
* @param [properties] Properties to set
|
|
7663
|
+
*/
|
|
7664
|
+
constructor(properties?: sqlanvil.IExport);
|
|
7665
|
+
|
|
7666
|
+
/** Export target. */
|
|
7667
|
+
public target?: (sqlanvil.ITarget|null);
|
|
7668
|
+
|
|
7669
|
+
/** Export canonicalTarget. */
|
|
7670
|
+
public canonicalTarget?: (sqlanvil.ITarget|null);
|
|
7671
|
+
|
|
7672
|
+
/** Export dependencyTargets. */
|
|
7673
|
+
public dependencyTargets: sqlanvil.ITarget[];
|
|
7674
|
+
|
|
7675
|
+
/** Export hermeticity. */
|
|
7676
|
+
public hermeticity: sqlanvil.ActionHermeticity;
|
|
7677
|
+
|
|
7678
|
+
/** Export disabled. */
|
|
7679
|
+
public disabled: boolean;
|
|
7680
|
+
|
|
7681
|
+
/** Export tags. */
|
|
7682
|
+
public tags: string[];
|
|
7683
|
+
|
|
7684
|
+
/** Export actionDescriptor. */
|
|
7685
|
+
public actionDescriptor?: (sqlanvil.IActionDescriptor|null);
|
|
7686
|
+
|
|
7687
|
+
/** Export query. */
|
|
7688
|
+
public query: string;
|
|
7689
|
+
|
|
7690
|
+
/** Export location. */
|
|
7691
|
+
public location: string;
|
|
7692
|
+
|
|
7693
|
+
/** Export format. */
|
|
7694
|
+
public format: string;
|
|
7695
|
+
|
|
7696
|
+
/** Export overwrite. */
|
|
7697
|
+
public overwrite: boolean;
|
|
7698
|
+
|
|
7699
|
+
/** Export filename. */
|
|
7700
|
+
public filename: string;
|
|
7701
|
+
|
|
7702
|
+
/** Export options. */
|
|
7703
|
+
public options: { [k: string]: string };
|
|
7704
|
+
|
|
7705
|
+
/** Export fileName. */
|
|
7706
|
+
public fileName: string;
|
|
7707
|
+
|
|
7708
|
+
/** Export jitCode. */
|
|
7709
|
+
public jitCode: string;
|
|
7710
|
+
|
|
7711
|
+
/**
|
|
7712
|
+
* Creates a new Export instance using the specified properties.
|
|
7713
|
+
* @param [properties] Properties to set
|
|
7714
|
+
* @returns Export instance
|
|
7715
|
+
*/
|
|
7716
|
+
public static create(properties?: sqlanvil.IExport): sqlanvil.Export;
|
|
7717
|
+
|
|
7718
|
+
/**
|
|
7719
|
+
* Encodes the specified Export message. Does not implicitly {@link sqlanvil.Export.verify|verify} messages.
|
|
7720
|
+
* @param message Export message or plain object to encode
|
|
7721
|
+
* @param [writer] Writer to encode to
|
|
7722
|
+
* @returns Writer
|
|
7723
|
+
*/
|
|
7724
|
+
public static encode(message: sqlanvil.IExport, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7725
|
+
|
|
7726
|
+
/**
|
|
7727
|
+
* Encodes the specified Export message, length delimited. Does not implicitly {@link sqlanvil.Export.verify|verify} messages.
|
|
7728
|
+
* @param message Export message or plain object to encode
|
|
7729
|
+
* @param [writer] Writer to encode to
|
|
7730
|
+
* @returns Writer
|
|
7731
|
+
*/
|
|
7732
|
+
public static encodeDelimited(message: sqlanvil.IExport, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7733
|
+
|
|
7734
|
+
/**
|
|
7735
|
+
* Decodes an Export message from the specified reader or buffer.
|
|
7736
|
+
* @param reader Reader or buffer to decode from
|
|
7737
|
+
* @param [length] Message length if known beforehand
|
|
7738
|
+
* @returns Export
|
|
7739
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7740
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7741
|
+
*/
|
|
7742
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.Export;
|
|
7743
|
+
|
|
7744
|
+
/**
|
|
7745
|
+
* Decodes an Export message from the specified reader or buffer, length delimited.
|
|
7746
|
+
* @param reader Reader or buffer to decode from
|
|
7747
|
+
* @returns Export
|
|
7748
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7749
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7750
|
+
*/
|
|
7751
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.Export;
|
|
7752
|
+
|
|
7753
|
+
/**
|
|
7754
|
+
* Verifies an Export message.
|
|
7755
|
+
* @param message Plain object to verify
|
|
7756
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7757
|
+
*/
|
|
7758
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7759
|
+
|
|
7760
|
+
/**
|
|
7761
|
+
* Creates an Export message from a plain object. Also converts values to their respective internal types.
|
|
7762
|
+
* @param object Plain object
|
|
7763
|
+
* @returns Export
|
|
7764
|
+
*/
|
|
7765
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.Export;
|
|
7766
|
+
|
|
7767
|
+
/**
|
|
7768
|
+
* Creates a plain object from an Export message. Also converts values to other types if specified.
|
|
7769
|
+
* @param message Export
|
|
7770
|
+
* @param [options] Conversion options
|
|
7771
|
+
* @returns Plain object
|
|
7772
|
+
*/
|
|
7773
|
+
public static toObject(message: sqlanvil.Export, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7774
|
+
|
|
7775
|
+
/**
|
|
7776
|
+
* Converts this Export to JSON.
|
|
7777
|
+
* @returns JSON object
|
|
7778
|
+
*/
|
|
7779
|
+
public toJSON(): { [k: string]: any };
|
|
7780
|
+
|
|
7781
|
+
/**
|
|
7782
|
+
* Gets the default type url for Export
|
|
7783
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7784
|
+
* @returns The default type url
|
|
7785
|
+
*/
|
|
7786
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7787
|
+
}
|
|
7788
|
+
|
|
7203
7789
|
/** Properties of an Assertion. */
|
|
7204
7790
|
interface IAssertion {
|
|
7205
7791
|
|
|
@@ -8595,6 +9181,9 @@ namespace sqlanvil {
|
|
|
8595
9181
|
/** CompiledGraph dataPreparations */
|
|
8596
9182
|
dataPreparations?: (sqlanvil.IDataPreparation[]|null);
|
|
8597
9183
|
|
|
9184
|
+
/** CompiledGraph exports */
|
|
9185
|
+
exports?: (sqlanvil.IExport[]|null);
|
|
9186
|
+
|
|
8598
9187
|
/** CompiledGraph graphErrors */
|
|
8599
9188
|
graphErrors?: (sqlanvil.IGraphErrors|null);
|
|
8600
9189
|
|
|
@@ -8641,6 +9230,9 @@ namespace sqlanvil {
|
|
|
8641
9230
|
/** CompiledGraph dataPreparations. */
|
|
8642
9231
|
public dataPreparations: sqlanvil.IDataPreparation[];
|
|
8643
9232
|
|
|
9233
|
+
/** CompiledGraph exports. */
|
|
9234
|
+
public exports: sqlanvil.IExport[];
|
|
9235
|
+
|
|
8644
9236
|
/** CompiledGraph graphErrors. */
|
|
8645
9237
|
public graphErrors?: (sqlanvil.IGraphErrors|null);
|
|
8646
9238
|
|
|
@@ -10406,6 +10998,133 @@ namespace sqlanvil {
|
|
|
10406
10998
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10407
10999
|
}
|
|
10408
11000
|
|
|
11001
|
+
/** Properties of an ExportSpec. */
|
|
11002
|
+
interface IExportSpec {
|
|
11003
|
+
|
|
11004
|
+
/** ExportSpec query */
|
|
11005
|
+
query?: (string|null);
|
|
11006
|
+
|
|
11007
|
+
/** ExportSpec location */
|
|
11008
|
+
location?: (string|null);
|
|
11009
|
+
|
|
11010
|
+
/** ExportSpec format */
|
|
11011
|
+
format?: (string|null);
|
|
11012
|
+
|
|
11013
|
+
/** ExportSpec overwrite */
|
|
11014
|
+
overwrite?: (boolean|null);
|
|
11015
|
+
|
|
11016
|
+
/** ExportSpec filename */
|
|
11017
|
+
filename?: (string|null);
|
|
11018
|
+
|
|
11019
|
+
/** ExportSpec options */
|
|
11020
|
+
options?: ({ [k: string]: string }|null);
|
|
11021
|
+
}
|
|
11022
|
+
|
|
11023
|
+
/** Represents an ExportSpec. */
|
|
11024
|
+
class ExportSpec implements IExportSpec {
|
|
11025
|
+
|
|
11026
|
+
/**
|
|
11027
|
+
* Constructs a new ExportSpec.
|
|
11028
|
+
* @param [properties] Properties to set
|
|
11029
|
+
*/
|
|
11030
|
+
constructor(properties?: sqlanvil.IExportSpec);
|
|
11031
|
+
|
|
11032
|
+
/** ExportSpec query. */
|
|
11033
|
+
public query: string;
|
|
11034
|
+
|
|
11035
|
+
/** ExportSpec location. */
|
|
11036
|
+
public location: string;
|
|
11037
|
+
|
|
11038
|
+
/** ExportSpec format. */
|
|
11039
|
+
public format: string;
|
|
11040
|
+
|
|
11041
|
+
/** ExportSpec overwrite. */
|
|
11042
|
+
public overwrite: boolean;
|
|
11043
|
+
|
|
11044
|
+
/** ExportSpec filename. */
|
|
11045
|
+
public filename: string;
|
|
11046
|
+
|
|
11047
|
+
/** ExportSpec options. */
|
|
11048
|
+
public options: { [k: string]: string };
|
|
11049
|
+
|
|
11050
|
+
/**
|
|
11051
|
+
* Creates a new ExportSpec instance using the specified properties.
|
|
11052
|
+
* @param [properties] Properties to set
|
|
11053
|
+
* @returns ExportSpec instance
|
|
11054
|
+
*/
|
|
11055
|
+
public static create(properties?: sqlanvil.IExportSpec): sqlanvil.ExportSpec;
|
|
11056
|
+
|
|
11057
|
+
/**
|
|
11058
|
+
* Encodes the specified ExportSpec message. Does not implicitly {@link sqlanvil.ExportSpec.verify|verify} messages.
|
|
11059
|
+
* @param message ExportSpec message or plain object to encode
|
|
11060
|
+
* @param [writer] Writer to encode to
|
|
11061
|
+
* @returns Writer
|
|
11062
|
+
*/
|
|
11063
|
+
public static encode(message: sqlanvil.IExportSpec, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
11064
|
+
|
|
11065
|
+
/**
|
|
11066
|
+
* Encodes the specified ExportSpec message, length delimited. Does not implicitly {@link sqlanvil.ExportSpec.verify|verify} messages.
|
|
11067
|
+
* @param message ExportSpec message or plain object to encode
|
|
11068
|
+
* @param [writer] Writer to encode to
|
|
11069
|
+
* @returns Writer
|
|
11070
|
+
*/
|
|
11071
|
+
public static encodeDelimited(message: sqlanvil.IExportSpec, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
11072
|
+
|
|
11073
|
+
/**
|
|
11074
|
+
* Decodes an ExportSpec message from the specified reader or buffer.
|
|
11075
|
+
* @param reader Reader or buffer to decode from
|
|
11076
|
+
* @param [length] Message length if known beforehand
|
|
11077
|
+
* @returns ExportSpec
|
|
11078
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11079
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11080
|
+
*/
|
|
11081
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.ExportSpec;
|
|
11082
|
+
|
|
11083
|
+
/**
|
|
11084
|
+
* Decodes an ExportSpec message from the specified reader or buffer, length delimited.
|
|
11085
|
+
* @param reader Reader or buffer to decode from
|
|
11086
|
+
* @returns ExportSpec
|
|
11087
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11088
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11089
|
+
*/
|
|
11090
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.ExportSpec;
|
|
11091
|
+
|
|
11092
|
+
/**
|
|
11093
|
+
* Verifies an ExportSpec message.
|
|
11094
|
+
* @param message Plain object to verify
|
|
11095
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
11096
|
+
*/
|
|
11097
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
11098
|
+
|
|
11099
|
+
/**
|
|
11100
|
+
* Creates an ExportSpec message from a plain object. Also converts values to their respective internal types.
|
|
11101
|
+
* @param object Plain object
|
|
11102
|
+
* @returns ExportSpec
|
|
11103
|
+
*/
|
|
11104
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.ExportSpec;
|
|
11105
|
+
|
|
11106
|
+
/**
|
|
11107
|
+
* Creates a plain object from an ExportSpec message. Also converts values to other types if specified.
|
|
11108
|
+
* @param message ExportSpec
|
|
11109
|
+
* @param [options] Conversion options
|
|
11110
|
+
* @returns Plain object
|
|
11111
|
+
*/
|
|
11112
|
+
public static toObject(message: sqlanvil.ExportSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
11113
|
+
|
|
11114
|
+
/**
|
|
11115
|
+
* Converts this ExportSpec to JSON.
|
|
11116
|
+
* @returns JSON object
|
|
11117
|
+
*/
|
|
11118
|
+
public toJSON(): { [k: string]: any };
|
|
11119
|
+
|
|
11120
|
+
/**
|
|
11121
|
+
* Gets the default type url for ExportSpec
|
|
11122
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
11123
|
+
* @returns The default type url
|
|
11124
|
+
*/
|
|
11125
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
11126
|
+
}
|
|
11127
|
+
|
|
10409
11128
|
/** Properties of an ExecutionAction. */
|
|
10410
11129
|
interface IExecutionAction {
|
|
10411
11130
|
|
|
@@ -10435,6 +11154,9 @@ namespace sqlanvil {
|
|
|
10435
11154
|
|
|
10436
11155
|
/** ExecutionAction jitCode */
|
|
10437
11156
|
jitCode?: (string|null);
|
|
11157
|
+
|
|
11158
|
+
/** ExecutionAction export */
|
|
11159
|
+
"export"?: (sqlanvil.IExportSpec|null);
|
|
10438
11160
|
}
|
|
10439
11161
|
|
|
10440
11162
|
/** Represents an ExecutionAction. */
|
|
@@ -10473,6 +11195,9 @@ namespace sqlanvil {
|
|
|
10473
11195
|
/** ExecutionAction jitCode. */
|
|
10474
11196
|
public jitCode: string;
|
|
10475
11197
|
|
|
11198
|
+
/** ExecutionAction export. */
|
|
11199
|
+
public export?: (sqlanvil.IExportSpec|null);
|
|
11200
|
+
|
|
10476
11201
|
/**
|
|
10477
11202
|
* Creates a new ExecutionAction instance using the specified properties.
|
|
10478
11203
|
* @param [properties] Properties to set
|
|
@@ -13776,6 +14501,27 @@ declare class Declaration extends ActionBuilder<sqlanvil.Declaration> {
|
|
|
13776
14501
|
private verifyConfig;
|
|
13777
14502
|
}
|
|
13778
14503
|
|
|
14504
|
+
declare class Export extends ActionBuilder<sqlanvil.Export> {
|
|
14505
|
+
session: Session;
|
|
14506
|
+
dependOnDependencyAssertions: boolean;
|
|
14507
|
+
private proto;
|
|
14508
|
+
private contextableQuery;
|
|
14509
|
+
constructor(session?: Session, unverifiedConfig?: any, configPath?: string);
|
|
14510
|
+
query(contextable: Contextable<IActionContext, string>): this;
|
|
14511
|
+
dependencies(value: Resolvable | Resolvable[]): this;
|
|
14512
|
+
hermetic(hermetic: boolean): void;
|
|
14513
|
+
disabled(disabled?: boolean): this;
|
|
14514
|
+
tags(value: string | string[]): this;
|
|
14515
|
+
description(description: string): this;
|
|
14516
|
+
database(database: string): this;
|
|
14517
|
+
schema(schema: string): this;
|
|
14518
|
+
getFileName(): string;
|
|
14519
|
+
getTarget(): sqlanvil.Target;
|
|
14520
|
+
compile(): sqlanvil.Export;
|
|
14521
|
+
private validate;
|
|
14522
|
+
private verifyConfig;
|
|
14523
|
+
}
|
|
14524
|
+
|
|
13779
14525
|
declare type JitTableResult = string | sqlanvil.IJitTableResult;
|
|
13780
14526
|
declare class Table extends ActionBuilder<sqlanvil.Table> {
|
|
13781
14527
|
session: Session;
|
|
@@ -14158,7 +14904,7 @@ interface IRecordDescriptor {
|
|
|
14158
14904
|
bigqueryPolicyTags?: string | string[];
|
|
14159
14905
|
}
|
|
14160
14906
|
|
|
14161
|
-
declare type Action = Table | View | IncrementalTable | Operation | Assertion | Declaration | Notebook | DataPreparation | Test | RlsPolicy | RealtimePublication | Wrapper | ForeignTable | VectorIndex;
|
|
14907
|
+
declare type Action = Table | View | IncrementalTable | Operation | Assertion | Declaration | Notebook | DataPreparation | Export | Test | RlsPolicy | RealtimePublication | Wrapper | ForeignTable | VectorIndex;
|
|
14162
14908
|
interface INamedConfig {
|
|
14163
14909
|
type?: string;
|
|
14164
14910
|
name?: string;
|
|
@@ -14314,7 +15060,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
|
|
|
14314
15060
|
|
|
14315
15061
|
declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
|
|
14316
15062
|
|
|
14317
|
-
declare const version = "1.
|
|
15063
|
+
declare const version = "1.8.0";
|
|
14318
15064
|
|
|
14319
15065
|
declare const session: Session;
|
|
14320
15066
|
declare const supportedFeatures: sqlanvil.SupportedFeatures[];
|