@sqlanvil/core 1.5.0 → 1.7.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
@@ -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
 
@@ -1375,6 +1502,9 @@ namespace sqlanvil {
1375
1502
 
1376
1503
  /** TableConfig supabase */
1377
1504
  supabase?: (sqlanvil.ISupabaseOptions|null);
1505
+
1506
+ /** TableConfig mysql */
1507
+ mysql?: (sqlanvil.IMysqlOptions|null);
1378
1508
  }
1379
1509
 
1380
1510
  /** Represents a TableConfig. */
@@ -1461,6 +1591,9 @@ namespace sqlanvil {
1461
1591
  /** TableConfig supabase. */
1462
1592
  public supabase?: (sqlanvil.ISupabaseOptions|null);
1463
1593
 
1594
+ /** TableConfig mysql. */
1595
+ public mysql?: (sqlanvil.IMysqlOptions|null);
1596
+
1464
1597
  /**
1465
1598
  * Creates a new TableConfig instance using the specified properties.
1466
1599
  * @param [properties] Properties to set
@@ -1962,6 +2095,9 @@ namespace sqlanvil {
1962
2095
 
1963
2096
  /** IncrementalTableConfig supabase */
1964
2097
  supabase?: (sqlanvil.ISupabaseOptions|null);
2098
+
2099
+ /** IncrementalTableConfig mysql */
2100
+ mysql?: (sqlanvil.IMysqlOptions|null);
1965
2101
  }
1966
2102
 
1967
2103
  /** Represents an IncrementalTableConfig. */
@@ -2060,6 +2196,9 @@ namespace sqlanvil {
2060
2196
  /** IncrementalTableConfig supabase. */
2061
2197
  public supabase?: (sqlanvil.ISupabaseOptions|null);
2062
2198
 
2199
+ /** IncrementalTableConfig mysql. */
2200
+ public mysql?: (sqlanvil.IMysqlOptions|null);
2201
+
2063
2202
  /**
2064
2203
  * Creates a new IncrementalTableConfig instance using the specified properties.
2065
2204
  * @param [properties] Properties to set
@@ -4395,6 +4534,233 @@ namespace sqlanvil {
4395
4534
  }
4396
4535
  }
4397
4536
 
4537
+ /** Properties of a MysqlOptions. */
4538
+ interface IMysqlOptions {
4539
+
4540
+ /** MysqlOptions engine */
4541
+ engine?: (string|null);
4542
+
4543
+ /** MysqlOptions charset */
4544
+ charset?: (string|null);
4545
+
4546
+ /** MysqlOptions collation */
4547
+ collation?: (string|null);
4548
+
4549
+ /** MysqlOptions indexes */
4550
+ indexes?: (sqlanvil.MysqlOptions.IIndex[]|null);
4551
+ }
4552
+
4553
+ /** Represents a MysqlOptions. */
4554
+ class MysqlOptions implements IMysqlOptions {
4555
+
4556
+ /**
4557
+ * Constructs a new MysqlOptions.
4558
+ * @param [properties] Properties to set
4559
+ */
4560
+ constructor(properties?: sqlanvil.IMysqlOptions);
4561
+
4562
+ /** MysqlOptions engine. */
4563
+ public engine: string;
4564
+
4565
+ /** MysqlOptions charset. */
4566
+ public charset: string;
4567
+
4568
+ /** MysqlOptions collation. */
4569
+ public collation: string;
4570
+
4571
+ /** MysqlOptions indexes. */
4572
+ public indexes: sqlanvil.MysqlOptions.IIndex[];
4573
+
4574
+ /**
4575
+ * Creates a new MysqlOptions instance using the specified properties.
4576
+ * @param [properties] Properties to set
4577
+ * @returns MysqlOptions instance
4578
+ */
4579
+ public static create(properties?: sqlanvil.IMysqlOptions): sqlanvil.MysqlOptions;
4580
+
4581
+ /**
4582
+ * Encodes the specified MysqlOptions message. Does not implicitly {@link sqlanvil.MysqlOptions.verify|verify} messages.
4583
+ * @param message MysqlOptions message or plain object to encode
4584
+ * @param [writer] Writer to encode to
4585
+ * @returns Writer
4586
+ */
4587
+ public static encode(message: sqlanvil.IMysqlOptions, writer?: $protobuf.Writer): $protobuf.Writer;
4588
+
4589
+ /**
4590
+ * Encodes the specified MysqlOptions message, length delimited. Does not implicitly {@link sqlanvil.MysqlOptions.verify|verify} messages.
4591
+ * @param message MysqlOptions message or plain object to encode
4592
+ * @param [writer] Writer to encode to
4593
+ * @returns Writer
4594
+ */
4595
+ public static encodeDelimited(message: sqlanvil.IMysqlOptions, writer?: $protobuf.Writer): $protobuf.Writer;
4596
+
4597
+ /**
4598
+ * Decodes a MysqlOptions message from the specified reader or buffer.
4599
+ * @param reader Reader or buffer to decode from
4600
+ * @param [length] Message length if known beforehand
4601
+ * @returns MysqlOptions
4602
+ * @throws {Error} If the payload is not a reader or valid buffer
4603
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4604
+ */
4605
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.MysqlOptions;
4606
+
4607
+ /**
4608
+ * Decodes a MysqlOptions message from the specified reader or buffer, length delimited.
4609
+ * @param reader Reader or buffer to decode from
4610
+ * @returns MysqlOptions
4611
+ * @throws {Error} If the payload is not a reader or valid buffer
4612
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4613
+ */
4614
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.MysqlOptions;
4615
+
4616
+ /**
4617
+ * Verifies a MysqlOptions message.
4618
+ * @param message Plain object to verify
4619
+ * @returns `null` if valid, otherwise the reason why it is not
4620
+ */
4621
+ public static verify(message: { [k: string]: any }): (string|null);
4622
+
4623
+ /**
4624
+ * Creates a MysqlOptions message from a plain object. Also converts values to their respective internal types.
4625
+ * @param object Plain object
4626
+ * @returns MysqlOptions
4627
+ */
4628
+ public static fromObject(object: { [k: string]: any }): sqlanvil.MysqlOptions;
4629
+
4630
+ /**
4631
+ * Creates a plain object from a MysqlOptions message. Also converts values to other types if specified.
4632
+ * @param message MysqlOptions
4633
+ * @param [options] Conversion options
4634
+ * @returns Plain object
4635
+ */
4636
+ public static toObject(message: sqlanvil.MysqlOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
4637
+
4638
+ /**
4639
+ * Converts this MysqlOptions to JSON.
4640
+ * @returns JSON object
4641
+ */
4642
+ public toJSON(): { [k: string]: any };
4643
+
4644
+ /**
4645
+ * Gets the default type url for MysqlOptions
4646
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4647
+ * @returns The default type url
4648
+ */
4649
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4650
+ }
4651
+
4652
+ namespace MysqlOptions {
4653
+
4654
+ /** Properties of an Index. */
4655
+ interface IIndex {
4656
+
4657
+ /** Index name */
4658
+ name?: (string|null);
4659
+
4660
+ /** Index columns */
4661
+ columns?: (string[]|null);
4662
+
4663
+ /** Index unique */
4664
+ unique?: (boolean|null);
4665
+ }
4666
+
4667
+ /** Represents an Index. */
4668
+ class Index implements IIndex {
4669
+
4670
+ /**
4671
+ * Constructs a new Index.
4672
+ * @param [properties] Properties to set
4673
+ */
4674
+ constructor(properties?: sqlanvil.MysqlOptions.IIndex);
4675
+
4676
+ /** Index name. */
4677
+ public name: string;
4678
+
4679
+ /** Index columns. */
4680
+ public columns: string[];
4681
+
4682
+ /** Index unique. */
4683
+ public unique: boolean;
4684
+
4685
+ /**
4686
+ * Creates a new Index instance using the specified properties.
4687
+ * @param [properties] Properties to set
4688
+ * @returns Index instance
4689
+ */
4690
+ public static create(properties?: sqlanvil.MysqlOptions.IIndex): sqlanvil.MysqlOptions.Index;
4691
+
4692
+ /**
4693
+ * Encodes the specified Index message. Does not implicitly {@link sqlanvil.MysqlOptions.Index.verify|verify} messages.
4694
+ * @param message Index message or plain object to encode
4695
+ * @param [writer] Writer to encode to
4696
+ * @returns Writer
4697
+ */
4698
+ public static encode(message: sqlanvil.MysqlOptions.IIndex, writer?: $protobuf.Writer): $protobuf.Writer;
4699
+
4700
+ /**
4701
+ * Encodes the specified Index message, length delimited. Does not implicitly {@link sqlanvil.MysqlOptions.Index.verify|verify} messages.
4702
+ * @param message Index message or plain object to encode
4703
+ * @param [writer] Writer to encode to
4704
+ * @returns Writer
4705
+ */
4706
+ public static encodeDelimited(message: sqlanvil.MysqlOptions.IIndex, writer?: $protobuf.Writer): $protobuf.Writer;
4707
+
4708
+ /**
4709
+ * Decodes an Index message from the specified reader or buffer.
4710
+ * @param reader Reader or buffer to decode from
4711
+ * @param [length] Message length if known beforehand
4712
+ * @returns Index
4713
+ * @throws {Error} If the payload is not a reader or valid buffer
4714
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4715
+ */
4716
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.MysqlOptions.Index;
4717
+
4718
+ /**
4719
+ * Decodes an Index message from the specified reader or buffer, length delimited.
4720
+ * @param reader Reader or buffer to decode from
4721
+ * @returns Index
4722
+ * @throws {Error} If the payload is not a reader or valid buffer
4723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4724
+ */
4725
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.MysqlOptions.Index;
4726
+
4727
+ /**
4728
+ * Verifies an Index message.
4729
+ * @param message Plain object to verify
4730
+ * @returns `null` if valid, otherwise the reason why it is not
4731
+ */
4732
+ public static verify(message: { [k: string]: any }): (string|null);
4733
+
4734
+ /**
4735
+ * Creates an Index message from a plain object. Also converts values to their respective internal types.
4736
+ * @param object Plain object
4737
+ * @returns Index
4738
+ */
4739
+ public static fromObject(object: { [k: string]: any }): sqlanvil.MysqlOptions.Index;
4740
+
4741
+ /**
4742
+ * Creates a plain object from an Index message. Also converts values to other types if specified.
4743
+ * @param message Index
4744
+ * @param [options] Conversion options
4745
+ * @returns Plain object
4746
+ */
4747
+ public static toObject(message: sqlanvil.MysqlOptions.Index, options?: $protobuf.IConversionOptions): { [k: string]: any };
4748
+
4749
+ /**
4750
+ * Converts this Index to JSON.
4751
+ * @returns JSON object
4752
+ */
4753
+ public toJSON(): { [k: string]: any };
4754
+
4755
+ /**
4756
+ * Gets the default type url for Index
4757
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4758
+ * @returns The default type url
4759
+ */
4760
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4761
+ }
4762
+ }
4763
+
4398
4764
  /** Properties of a SupabaseOptions. */
4399
4765
  interface ISupabaseOptions {
4400
4766
 
@@ -6632,6 +6998,9 @@ namespace sqlanvil {
6632
6998
  /** Table supabase */
6633
6999
  supabase?: (sqlanvil.ISupabaseOptions|null);
6634
7000
 
7001
+ /** Table mysql */
7002
+ mysql?: (sqlanvil.IMysqlOptions|null);
7003
+
6635
7004
  /** Table fileName */
6636
7005
  fileName?: (string|null);
6637
7006
  }
@@ -6717,6 +7086,9 @@ namespace sqlanvil {
6717
7086
  /** Table supabase. */
6718
7087
  public supabase?: (sqlanvil.ISupabaseOptions|null);
6719
7088
 
7089
+ /** Table mysql. */
7090
+ public mysql?: (sqlanvil.IMysqlOptions|null);
7091
+
6720
7092
  /** Table fileName. */
6721
7093
  public fileName: string;
6722
7094
 
@@ -13555,6 +13927,7 @@ declare class Table extends ActionBuilder<sqlanvil.Table> {
13555
13927
  disabled(disabled?: boolean): this;
13556
13928
  bigquery(bigquery: sqlanvil.IBigQueryOptions): this;
13557
13929
  postgres(postgres: sqlanvil.IPostgresOptions): this;
13930
+ mysql(mysql: sqlanvil.IMysqlOptions): this;
13558
13931
  supabase(supabase: sqlanvil.ISupabaseOptions): this;
13559
13932
  dependencies(value: Resolvable | Resolvable[]): this;
13560
13933
  hermetic(hermetic: boolean): void;
@@ -13621,6 +13994,7 @@ declare class IncrementalTable extends ActionBuilder<sqlanvil.Table> {
13621
13994
  uniqueKey(uniqueKey: string[]): void;
13622
13995
  bigquery(bigquery: sqlanvil.IBigQueryOptions): this;
13623
13996
  postgres(postgres: sqlanvil.IPostgresOptions): this;
13997
+ mysql(mysql: sqlanvil.IMysqlOptions): this;
13624
13998
  supabase(supabase: sqlanvil.ISupabaseOptions): this;
13625
13999
  dependencies(value: Resolvable | Resolvable[]): this;
13626
14000
  hermetic(hermetic: boolean): void;
@@ -14067,7 +14441,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
14067
14441
 
14068
14442
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
14069
14443
 
14070
- declare const version = "1.5.0";
14444
+ declare const version = "1.7.0";
14071
14445
 
14072
14446
  declare const session: Session;
14073
14447
  declare const supportedFeatures: sqlanvil.SupportedFeatures[];