@sqlanvil/core 1.13.0 → 1.15.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 +383 -21
- package/bundle.js +1 -1
- package/configs.proto +6 -0
- package/core.proto +30 -0
- package/package.json +1 -1
package/bundle.d.ts
CHANGED
|
@@ -360,6 +360,9 @@ namespace sqlanvil {
|
|
|
360
360
|
|
|
361
361
|
/** ConnectionConfig defaultSchema */
|
|
362
362
|
defaultSchema?: (string|null);
|
|
363
|
+
|
|
364
|
+
/** ConnectionConfig mode */
|
|
365
|
+
mode?: (string|null);
|
|
363
366
|
}
|
|
364
367
|
|
|
365
368
|
/** Represents a ConnectionConfig. */
|
|
@@ -398,6 +401,9 @@ namespace sqlanvil {
|
|
|
398
401
|
/** ConnectionConfig defaultSchema. */
|
|
399
402
|
public defaultSchema: string;
|
|
400
403
|
|
|
404
|
+
/** ConnectionConfig mode. */
|
|
405
|
+
public mode: string;
|
|
406
|
+
|
|
401
407
|
/**
|
|
402
408
|
* Creates a new ConnectionConfig instance using the specified properties.
|
|
403
409
|
* @param [properties] Properties to set
|
|
@@ -8474,6 +8480,187 @@ namespace sqlanvil {
|
|
|
8474
8480
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8475
8481
|
}
|
|
8476
8482
|
|
|
8483
|
+
/** Properties of an Extract. */
|
|
8484
|
+
interface IExtract {
|
|
8485
|
+
|
|
8486
|
+
/** Extract target */
|
|
8487
|
+
target?: (sqlanvil.ITarget|null);
|
|
8488
|
+
|
|
8489
|
+
/** Extract canonicalTarget */
|
|
8490
|
+
canonicalTarget?: (sqlanvil.ITarget|null);
|
|
8491
|
+
|
|
8492
|
+
/** Extract dependencyTargets */
|
|
8493
|
+
dependencyTargets?: (sqlanvil.ITarget[]|null);
|
|
8494
|
+
|
|
8495
|
+
/** Extract hermeticity */
|
|
8496
|
+
hermeticity?: (sqlanvil.ActionHermeticity|null);
|
|
8497
|
+
|
|
8498
|
+
/** Extract disabled */
|
|
8499
|
+
disabled?: (boolean|null);
|
|
8500
|
+
|
|
8501
|
+
/** Extract tags */
|
|
8502
|
+
tags?: (string[]|null);
|
|
8503
|
+
|
|
8504
|
+
/** Extract actionDescriptor */
|
|
8505
|
+
actionDescriptor?: (sqlanvil.IActionDescriptor|null);
|
|
8506
|
+
|
|
8507
|
+
/** Extract connectionName */
|
|
8508
|
+
connectionName?: (string|null);
|
|
8509
|
+
|
|
8510
|
+
/** Extract platform */
|
|
8511
|
+
platform?: (string|null);
|
|
8512
|
+
|
|
8513
|
+
/** Extract project */
|
|
8514
|
+
project?: (string|null);
|
|
8515
|
+
|
|
8516
|
+
/** Extract dataset */
|
|
8517
|
+
dataset?: (string|null);
|
|
8518
|
+
|
|
8519
|
+
/** Extract sourceName */
|
|
8520
|
+
sourceName?: (string|null);
|
|
8521
|
+
|
|
8522
|
+
/** Extract billingProject */
|
|
8523
|
+
billingProject?: (string|null);
|
|
8524
|
+
|
|
8525
|
+
/** Extract columnTypes */
|
|
8526
|
+
columnTypes?: ({ [k: string]: string }|null);
|
|
8527
|
+
|
|
8528
|
+
/** Extract fileName */
|
|
8529
|
+
fileName?: (string|null);
|
|
8530
|
+
}
|
|
8531
|
+
|
|
8532
|
+
/** Represents an Extract. */
|
|
8533
|
+
class Extract implements IExtract {
|
|
8534
|
+
|
|
8535
|
+
/**
|
|
8536
|
+
* Constructs a new Extract.
|
|
8537
|
+
* @param [properties] Properties to set
|
|
8538
|
+
*/
|
|
8539
|
+
constructor(properties?: sqlanvil.IExtract);
|
|
8540
|
+
|
|
8541
|
+
/** Extract target. */
|
|
8542
|
+
public target?: (sqlanvil.ITarget|null);
|
|
8543
|
+
|
|
8544
|
+
/** Extract canonicalTarget. */
|
|
8545
|
+
public canonicalTarget?: (sqlanvil.ITarget|null);
|
|
8546
|
+
|
|
8547
|
+
/** Extract dependencyTargets. */
|
|
8548
|
+
public dependencyTargets: sqlanvil.ITarget[];
|
|
8549
|
+
|
|
8550
|
+
/** Extract hermeticity. */
|
|
8551
|
+
public hermeticity: sqlanvil.ActionHermeticity;
|
|
8552
|
+
|
|
8553
|
+
/** Extract disabled. */
|
|
8554
|
+
public disabled: boolean;
|
|
8555
|
+
|
|
8556
|
+
/** Extract tags. */
|
|
8557
|
+
public tags: string[];
|
|
8558
|
+
|
|
8559
|
+
/** Extract actionDescriptor. */
|
|
8560
|
+
public actionDescriptor?: (sqlanvil.IActionDescriptor|null);
|
|
8561
|
+
|
|
8562
|
+
/** Extract connectionName. */
|
|
8563
|
+
public connectionName: string;
|
|
8564
|
+
|
|
8565
|
+
/** Extract platform. */
|
|
8566
|
+
public platform: string;
|
|
8567
|
+
|
|
8568
|
+
/** Extract project. */
|
|
8569
|
+
public project: string;
|
|
8570
|
+
|
|
8571
|
+
/** Extract dataset. */
|
|
8572
|
+
public dataset: string;
|
|
8573
|
+
|
|
8574
|
+
/** Extract sourceName. */
|
|
8575
|
+
public sourceName: string;
|
|
8576
|
+
|
|
8577
|
+
/** Extract billingProject. */
|
|
8578
|
+
public billingProject: string;
|
|
8579
|
+
|
|
8580
|
+
/** Extract columnTypes. */
|
|
8581
|
+
public columnTypes: { [k: string]: string };
|
|
8582
|
+
|
|
8583
|
+
/** Extract fileName. */
|
|
8584
|
+
public fileName: string;
|
|
8585
|
+
|
|
8586
|
+
/**
|
|
8587
|
+
* Creates a new Extract instance using the specified properties.
|
|
8588
|
+
* @param [properties] Properties to set
|
|
8589
|
+
* @returns Extract instance
|
|
8590
|
+
*/
|
|
8591
|
+
public static create(properties?: sqlanvil.IExtract): sqlanvil.Extract;
|
|
8592
|
+
|
|
8593
|
+
/**
|
|
8594
|
+
* Encodes the specified Extract message. Does not implicitly {@link sqlanvil.Extract.verify|verify} messages.
|
|
8595
|
+
* @param message Extract message or plain object to encode
|
|
8596
|
+
* @param [writer] Writer to encode to
|
|
8597
|
+
* @returns Writer
|
|
8598
|
+
*/
|
|
8599
|
+
public static encode(message: sqlanvil.IExtract, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8600
|
+
|
|
8601
|
+
/**
|
|
8602
|
+
* Encodes the specified Extract message, length delimited. Does not implicitly {@link sqlanvil.Extract.verify|verify} messages.
|
|
8603
|
+
* @param message Extract message or plain object to encode
|
|
8604
|
+
* @param [writer] Writer to encode to
|
|
8605
|
+
* @returns Writer
|
|
8606
|
+
*/
|
|
8607
|
+
public static encodeDelimited(message: sqlanvil.IExtract, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8608
|
+
|
|
8609
|
+
/**
|
|
8610
|
+
* Decodes an Extract message from the specified reader or buffer.
|
|
8611
|
+
* @param reader Reader or buffer to decode from
|
|
8612
|
+
* @param [length] Message length if known beforehand
|
|
8613
|
+
* @returns Extract
|
|
8614
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8615
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8616
|
+
*/
|
|
8617
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.Extract;
|
|
8618
|
+
|
|
8619
|
+
/**
|
|
8620
|
+
* Decodes an Extract message from the specified reader or buffer, length delimited.
|
|
8621
|
+
* @param reader Reader or buffer to decode from
|
|
8622
|
+
* @returns Extract
|
|
8623
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8624
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8625
|
+
*/
|
|
8626
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.Extract;
|
|
8627
|
+
|
|
8628
|
+
/**
|
|
8629
|
+
* Verifies an Extract message.
|
|
8630
|
+
* @param message Plain object to verify
|
|
8631
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8632
|
+
*/
|
|
8633
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8634
|
+
|
|
8635
|
+
/**
|
|
8636
|
+
* Creates an Extract message from a plain object. Also converts values to their respective internal types.
|
|
8637
|
+
* @param object Plain object
|
|
8638
|
+
* @returns Extract
|
|
8639
|
+
*/
|
|
8640
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.Extract;
|
|
8641
|
+
|
|
8642
|
+
/**
|
|
8643
|
+
* Creates a plain object from an Extract message. Also converts values to other types if specified.
|
|
8644
|
+
* @param message Extract
|
|
8645
|
+
* @param [options] Conversion options
|
|
8646
|
+
* @returns Plain object
|
|
8647
|
+
*/
|
|
8648
|
+
public static toObject(message: sqlanvil.Extract, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8649
|
+
|
|
8650
|
+
/**
|
|
8651
|
+
* Converts this Extract to JSON.
|
|
8652
|
+
* @returns JSON object
|
|
8653
|
+
*/
|
|
8654
|
+
public toJSON(): { [k: string]: any };
|
|
8655
|
+
|
|
8656
|
+
/**
|
|
8657
|
+
* Gets the default type url for Extract
|
|
8658
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8659
|
+
* @returns The default type url
|
|
8660
|
+
*/
|
|
8661
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8662
|
+
}
|
|
8663
|
+
|
|
8477
8664
|
/** Properties of an Assertion. */
|
|
8478
8665
|
interface IAssertion {
|
|
8479
8666
|
|
|
@@ -9875,6 +10062,9 @@ namespace sqlanvil {
|
|
|
9875
10062
|
/** CompiledGraph imports */
|
|
9876
10063
|
imports?: (sqlanvil.IImport[]|null);
|
|
9877
10064
|
|
|
10065
|
+
/** CompiledGraph extracts */
|
|
10066
|
+
extracts?: (sqlanvil.IExtract[]|null);
|
|
10067
|
+
|
|
9878
10068
|
/** CompiledGraph graphErrors */
|
|
9879
10069
|
graphErrors?: (sqlanvil.IGraphErrors|null);
|
|
9880
10070
|
|
|
@@ -9927,6 +10117,9 @@ namespace sqlanvil {
|
|
|
9927
10117
|
/** CompiledGraph imports. */
|
|
9928
10118
|
public imports: sqlanvil.IImport[];
|
|
9929
10119
|
|
|
10120
|
+
/** CompiledGraph extracts. */
|
|
10121
|
+
public extracts: sqlanvil.IExtract[];
|
|
10122
|
+
|
|
9930
10123
|
/** CompiledGraph graphErrors. */
|
|
9931
10124
|
public graphErrors?: (sqlanvil.IGraphErrors|null);
|
|
9932
10125
|
|
|
@@ -11934,6 +12127,139 @@ namespace sqlanvil {
|
|
|
11934
12127
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
11935
12128
|
}
|
|
11936
12129
|
|
|
12130
|
+
/** Properties of an ExtractSpec. */
|
|
12131
|
+
interface IExtractSpec {
|
|
12132
|
+
|
|
12133
|
+
/** ExtractSpec connectionName */
|
|
12134
|
+
connectionName?: (string|null);
|
|
12135
|
+
|
|
12136
|
+
/** ExtractSpec platform */
|
|
12137
|
+
platform?: (string|null);
|
|
12138
|
+
|
|
12139
|
+
/** ExtractSpec project */
|
|
12140
|
+
project?: (string|null);
|
|
12141
|
+
|
|
12142
|
+
/** ExtractSpec dataset */
|
|
12143
|
+
dataset?: (string|null);
|
|
12144
|
+
|
|
12145
|
+
/** ExtractSpec sourceName */
|
|
12146
|
+
sourceName?: (string|null);
|
|
12147
|
+
|
|
12148
|
+
/** ExtractSpec billingProject */
|
|
12149
|
+
billingProject?: (string|null);
|
|
12150
|
+
|
|
12151
|
+
/** ExtractSpec columnTypes */
|
|
12152
|
+
columnTypes?: ({ [k: string]: string }|null);
|
|
12153
|
+
}
|
|
12154
|
+
|
|
12155
|
+
/** Represents an ExtractSpec. */
|
|
12156
|
+
class ExtractSpec implements IExtractSpec {
|
|
12157
|
+
|
|
12158
|
+
/**
|
|
12159
|
+
* Constructs a new ExtractSpec.
|
|
12160
|
+
* @param [properties] Properties to set
|
|
12161
|
+
*/
|
|
12162
|
+
constructor(properties?: sqlanvil.IExtractSpec);
|
|
12163
|
+
|
|
12164
|
+
/** ExtractSpec connectionName. */
|
|
12165
|
+
public connectionName: string;
|
|
12166
|
+
|
|
12167
|
+
/** ExtractSpec platform. */
|
|
12168
|
+
public platform: string;
|
|
12169
|
+
|
|
12170
|
+
/** ExtractSpec project. */
|
|
12171
|
+
public project: string;
|
|
12172
|
+
|
|
12173
|
+
/** ExtractSpec dataset. */
|
|
12174
|
+
public dataset: string;
|
|
12175
|
+
|
|
12176
|
+
/** ExtractSpec sourceName. */
|
|
12177
|
+
public sourceName: string;
|
|
12178
|
+
|
|
12179
|
+
/** ExtractSpec billingProject. */
|
|
12180
|
+
public billingProject: string;
|
|
12181
|
+
|
|
12182
|
+
/** ExtractSpec columnTypes. */
|
|
12183
|
+
public columnTypes: { [k: string]: string };
|
|
12184
|
+
|
|
12185
|
+
/**
|
|
12186
|
+
* Creates a new ExtractSpec instance using the specified properties.
|
|
12187
|
+
* @param [properties] Properties to set
|
|
12188
|
+
* @returns ExtractSpec instance
|
|
12189
|
+
*/
|
|
12190
|
+
public static create(properties?: sqlanvil.IExtractSpec): sqlanvil.ExtractSpec;
|
|
12191
|
+
|
|
12192
|
+
/**
|
|
12193
|
+
* Encodes the specified ExtractSpec message. Does not implicitly {@link sqlanvil.ExtractSpec.verify|verify} messages.
|
|
12194
|
+
* @param message ExtractSpec message or plain object to encode
|
|
12195
|
+
* @param [writer] Writer to encode to
|
|
12196
|
+
* @returns Writer
|
|
12197
|
+
*/
|
|
12198
|
+
public static encode(message: sqlanvil.IExtractSpec, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
12199
|
+
|
|
12200
|
+
/**
|
|
12201
|
+
* Encodes the specified ExtractSpec message, length delimited. Does not implicitly {@link sqlanvil.ExtractSpec.verify|verify} messages.
|
|
12202
|
+
* @param message ExtractSpec message or plain object to encode
|
|
12203
|
+
* @param [writer] Writer to encode to
|
|
12204
|
+
* @returns Writer
|
|
12205
|
+
*/
|
|
12206
|
+
public static encodeDelimited(message: sqlanvil.IExtractSpec, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
12207
|
+
|
|
12208
|
+
/**
|
|
12209
|
+
* Decodes an ExtractSpec message from the specified reader or buffer.
|
|
12210
|
+
* @param reader Reader or buffer to decode from
|
|
12211
|
+
* @param [length] Message length if known beforehand
|
|
12212
|
+
* @returns ExtractSpec
|
|
12213
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12214
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12215
|
+
*/
|
|
12216
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.ExtractSpec;
|
|
12217
|
+
|
|
12218
|
+
/**
|
|
12219
|
+
* Decodes an ExtractSpec message from the specified reader or buffer, length delimited.
|
|
12220
|
+
* @param reader Reader or buffer to decode from
|
|
12221
|
+
* @returns ExtractSpec
|
|
12222
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12223
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12224
|
+
*/
|
|
12225
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.ExtractSpec;
|
|
12226
|
+
|
|
12227
|
+
/**
|
|
12228
|
+
* Verifies an ExtractSpec message.
|
|
12229
|
+
* @param message Plain object to verify
|
|
12230
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
12231
|
+
*/
|
|
12232
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
12233
|
+
|
|
12234
|
+
/**
|
|
12235
|
+
* Creates an ExtractSpec message from a plain object. Also converts values to their respective internal types.
|
|
12236
|
+
* @param object Plain object
|
|
12237
|
+
* @returns ExtractSpec
|
|
12238
|
+
*/
|
|
12239
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.ExtractSpec;
|
|
12240
|
+
|
|
12241
|
+
/**
|
|
12242
|
+
* Creates a plain object from an ExtractSpec message. Also converts values to other types if specified.
|
|
12243
|
+
* @param message ExtractSpec
|
|
12244
|
+
* @param [options] Conversion options
|
|
12245
|
+
* @returns Plain object
|
|
12246
|
+
*/
|
|
12247
|
+
public static toObject(message: sqlanvil.ExtractSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
12248
|
+
|
|
12249
|
+
/**
|
|
12250
|
+
* Converts this ExtractSpec to JSON.
|
|
12251
|
+
* @returns JSON object
|
|
12252
|
+
*/
|
|
12253
|
+
public toJSON(): { [k: string]: any };
|
|
12254
|
+
|
|
12255
|
+
/**
|
|
12256
|
+
* Gets the default type url for ExtractSpec
|
|
12257
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
12258
|
+
* @returns The default type url
|
|
12259
|
+
*/
|
|
12260
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
12261
|
+
}
|
|
12262
|
+
|
|
11937
12263
|
/** Properties of an ExecutionAction. */
|
|
11938
12264
|
interface IExecutionAction {
|
|
11939
12265
|
|
|
@@ -11969,6 +12295,9 @@ namespace sqlanvil {
|
|
|
11969
12295
|
|
|
11970
12296
|
/** ExecutionAction import */
|
|
11971
12297
|
"import"?: (sqlanvil.IImportSpec|null);
|
|
12298
|
+
|
|
12299
|
+
/** ExecutionAction extract */
|
|
12300
|
+
extract?: (sqlanvil.IExtractSpec|null);
|
|
11972
12301
|
}
|
|
11973
12302
|
|
|
11974
12303
|
/** Represents an ExecutionAction. */
|
|
@@ -12013,6 +12342,9 @@ namespace sqlanvil {
|
|
|
12013
12342
|
/** ExecutionAction import. */
|
|
12014
12343
|
public import?: (sqlanvil.IImportSpec|null);
|
|
12015
12344
|
|
|
12345
|
+
/** ExecutionAction extract. */
|
|
12346
|
+
public extract?: (sqlanvil.IExtractSpec|null);
|
|
12347
|
+
|
|
12016
12348
|
/**
|
|
12017
12349
|
* Creates a new ExecutionAction instance using the specified properties.
|
|
12018
12350
|
* @param [properties] Properties to set
|
|
@@ -14569,6 +14901,9 @@ namespace sqlanvil {
|
|
|
14569
14901
|
|
|
14570
14902
|
/** BigQuery location */
|
|
14571
14903
|
location?: (string|null);
|
|
14904
|
+
|
|
14905
|
+
/** BigQuery accessToken */
|
|
14906
|
+
accessToken?: (string|null);
|
|
14572
14907
|
}
|
|
14573
14908
|
|
|
14574
14909
|
/** Represents a BigQuery. */
|
|
@@ -14589,6 +14924,9 @@ namespace sqlanvil {
|
|
|
14589
14924
|
/** BigQuery location. */
|
|
14590
14925
|
public location: string;
|
|
14591
14926
|
|
|
14927
|
+
/** BigQuery accessToken. */
|
|
14928
|
+
public accessToken: string;
|
|
14929
|
+
|
|
14592
14930
|
/**
|
|
14593
14931
|
* Creates a new BigQuery instance using the specified properties.
|
|
14594
14932
|
* @param [properties] Properties to set
|
|
@@ -15337,6 +15675,49 @@ declare class Export extends ActionBuilder<sqlanvil.Export> {
|
|
|
15337
15675
|
private verifyConfig;
|
|
15338
15676
|
}
|
|
15339
15677
|
|
|
15678
|
+
declare abstract class ActionBuilder<T> {
|
|
15679
|
+
session: Session;
|
|
15680
|
+
includeAssertionsForDependency: Map<string, boolean>;
|
|
15681
|
+
constructor(session?: Session);
|
|
15682
|
+
applySessionToTarget(targetFromConfig: sqlanvil.Target, projectConfig: sqlanvil.ProjectConfig, fileName?: string, options?: {
|
|
15683
|
+
validateTarget?: boolean;
|
|
15684
|
+
useDefaultAssertionDataset?: boolean;
|
|
15685
|
+
}): sqlanvil.Target;
|
|
15686
|
+
finalizeTarget(targetFromConfig: sqlanvil.Target): sqlanvil.Target;
|
|
15687
|
+
abstract getFileName(): string;
|
|
15688
|
+
abstract getTarget(): sqlanvil.Target;
|
|
15689
|
+
abstract compile(): T;
|
|
15690
|
+
protected generateInlineAssertions(tableAssertionsConfig: sqlanvil.ActionConfig.TableAssertionsConfig, proto: sqlanvil.Table): {
|
|
15691
|
+
uniqueKeyAssertions: any[];
|
|
15692
|
+
rowConditionsAssertion?: any;
|
|
15693
|
+
};
|
|
15694
|
+
private validateTarget;
|
|
15695
|
+
}
|
|
15696
|
+
|
|
15697
|
+
interface IExtractConfig {
|
|
15698
|
+
name: string;
|
|
15699
|
+
schema?: string;
|
|
15700
|
+
connectionName: string;
|
|
15701
|
+
platform: string;
|
|
15702
|
+
project?: string;
|
|
15703
|
+
dataset?: string;
|
|
15704
|
+
sourceName?: string;
|
|
15705
|
+
billingProject?: string;
|
|
15706
|
+
columnTypes?: {
|
|
15707
|
+
[key: string]: string;
|
|
15708
|
+
};
|
|
15709
|
+
filename?: string;
|
|
15710
|
+
}
|
|
15711
|
+
declare class Extract extends ActionBuilder<sqlanvil.Extract> {
|
|
15712
|
+
session: Session;
|
|
15713
|
+
private proto;
|
|
15714
|
+
private config;
|
|
15715
|
+
constructor(session: Session, config: IExtractConfig);
|
|
15716
|
+
getFileName(): string;
|
|
15717
|
+
getTarget(): sqlanvil.Target;
|
|
15718
|
+
compile(): sqlanvil.Extract;
|
|
15719
|
+
}
|
|
15720
|
+
|
|
15340
15721
|
declare class Import extends ActionBuilder<sqlanvil.Import> {
|
|
15341
15722
|
session: Session;
|
|
15342
15723
|
dependOnDependencyAssertions: boolean;
|
|
@@ -15591,25 +15972,6 @@ declare class View extends ActionBuilder<sqlanvil.Table> {
|
|
|
15591
15972
|
private verifyConfig;
|
|
15592
15973
|
}
|
|
15593
15974
|
|
|
15594
|
-
declare abstract class ActionBuilder<T> {
|
|
15595
|
-
session: Session;
|
|
15596
|
-
includeAssertionsForDependency: Map<string, boolean>;
|
|
15597
|
-
constructor(session?: Session);
|
|
15598
|
-
applySessionToTarget(targetFromConfig: sqlanvil.Target, projectConfig: sqlanvil.ProjectConfig, fileName?: string, options?: {
|
|
15599
|
-
validateTarget?: boolean;
|
|
15600
|
-
useDefaultAssertionDataset?: boolean;
|
|
15601
|
-
}): sqlanvil.Target;
|
|
15602
|
-
finalizeTarget(targetFromConfig: sqlanvil.Target): sqlanvil.Target;
|
|
15603
|
-
abstract getFileName(): string;
|
|
15604
|
-
abstract getTarget(): sqlanvil.Target;
|
|
15605
|
-
abstract compile(): T;
|
|
15606
|
-
protected generateInlineAssertions(tableAssertionsConfig: sqlanvil.ActionConfig.TableAssertionsConfig, proto: sqlanvil.Table): {
|
|
15607
|
-
uniqueKeyAssertions: any[];
|
|
15608
|
-
rowConditionsAssertion?: any;
|
|
15609
|
-
};
|
|
15610
|
-
private validateTarget;
|
|
15611
|
-
}
|
|
15612
|
-
|
|
15613
15975
|
interface IRlsPolicyConfig {
|
|
15614
15976
|
table: string;
|
|
15615
15977
|
name: string;
|
|
@@ -15738,7 +16100,7 @@ interface IRecordDescriptor {
|
|
|
15738
16100
|
bigqueryPolicyTags?: string | string[];
|
|
15739
16101
|
}
|
|
15740
16102
|
|
|
15741
|
-
declare type Action = Table | View | IncrementalTable | Operation | Assertion | Declaration | Notebook | DataPreparation | Export | Import | Test | RlsPolicy | RealtimePublication | Wrapper | ForeignTable | VectorIndex;
|
|
16103
|
+
declare type Action = Table | View | IncrementalTable | Operation | Assertion | Declaration | Notebook | DataPreparation | Export | Extract | Import | Test | RlsPolicy | RealtimePublication | Wrapper | ForeignTable | VectorIndex;
|
|
15742
16104
|
interface INamedConfig {
|
|
15743
16105
|
type?: string;
|
|
15744
16106
|
name?: string;
|
|
@@ -15894,7 +16256,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
|
|
|
15894
16256
|
|
|
15895
16257
|
declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
|
|
15896
16258
|
|
|
15897
|
-
declare const version = "1.
|
|
16259
|
+
declare const version = "1.15.0";
|
|
15898
16260
|
|
|
15899
16261
|
declare const session: Session;
|
|
15900
16262
|
declare const supportedFeatures: sqlanvil.SupportedFeatures[];
|