@sqlanvil/core 1.5.0 → 1.6.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 +248 -1
- package/bundle.js +1 -1
- package/configs.proto +28 -0
- package/core.proto +1 -0
- package/package.json +1 -1
package/bundle.d.ts
CHANGED
|
@@ -1375,6 +1375,9 @@ namespace sqlanvil {
|
|
|
1375
1375
|
|
|
1376
1376
|
/** TableConfig supabase */
|
|
1377
1377
|
supabase?: (sqlanvil.ISupabaseOptions|null);
|
|
1378
|
+
|
|
1379
|
+
/** TableConfig mysql */
|
|
1380
|
+
mysql?: (sqlanvil.IMysqlOptions|null);
|
|
1378
1381
|
}
|
|
1379
1382
|
|
|
1380
1383
|
/** Represents a TableConfig. */
|
|
@@ -1461,6 +1464,9 @@ namespace sqlanvil {
|
|
|
1461
1464
|
/** TableConfig supabase. */
|
|
1462
1465
|
public supabase?: (sqlanvil.ISupabaseOptions|null);
|
|
1463
1466
|
|
|
1467
|
+
/** TableConfig mysql. */
|
|
1468
|
+
public mysql?: (sqlanvil.IMysqlOptions|null);
|
|
1469
|
+
|
|
1464
1470
|
/**
|
|
1465
1471
|
* Creates a new TableConfig instance using the specified properties.
|
|
1466
1472
|
* @param [properties] Properties to set
|
|
@@ -1962,6 +1968,9 @@ namespace sqlanvil {
|
|
|
1962
1968
|
|
|
1963
1969
|
/** IncrementalTableConfig supabase */
|
|
1964
1970
|
supabase?: (sqlanvil.ISupabaseOptions|null);
|
|
1971
|
+
|
|
1972
|
+
/** IncrementalTableConfig mysql */
|
|
1973
|
+
mysql?: (sqlanvil.IMysqlOptions|null);
|
|
1965
1974
|
}
|
|
1966
1975
|
|
|
1967
1976
|
/** Represents an IncrementalTableConfig. */
|
|
@@ -2060,6 +2069,9 @@ namespace sqlanvil {
|
|
|
2060
2069
|
/** IncrementalTableConfig supabase. */
|
|
2061
2070
|
public supabase?: (sqlanvil.ISupabaseOptions|null);
|
|
2062
2071
|
|
|
2072
|
+
/** IncrementalTableConfig mysql. */
|
|
2073
|
+
public mysql?: (sqlanvil.IMysqlOptions|null);
|
|
2074
|
+
|
|
2063
2075
|
/**
|
|
2064
2076
|
* Creates a new IncrementalTableConfig instance using the specified properties.
|
|
2065
2077
|
* @param [properties] Properties to set
|
|
@@ -4395,6 +4407,233 @@ namespace sqlanvil {
|
|
|
4395
4407
|
}
|
|
4396
4408
|
}
|
|
4397
4409
|
|
|
4410
|
+
/** Properties of a MysqlOptions. */
|
|
4411
|
+
interface IMysqlOptions {
|
|
4412
|
+
|
|
4413
|
+
/** MysqlOptions engine */
|
|
4414
|
+
engine?: (string|null);
|
|
4415
|
+
|
|
4416
|
+
/** MysqlOptions charset */
|
|
4417
|
+
charset?: (string|null);
|
|
4418
|
+
|
|
4419
|
+
/** MysqlOptions collation */
|
|
4420
|
+
collation?: (string|null);
|
|
4421
|
+
|
|
4422
|
+
/** MysqlOptions indexes */
|
|
4423
|
+
indexes?: (sqlanvil.MysqlOptions.IIndex[]|null);
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
/** Represents a MysqlOptions. */
|
|
4427
|
+
class MysqlOptions implements IMysqlOptions {
|
|
4428
|
+
|
|
4429
|
+
/**
|
|
4430
|
+
* Constructs a new MysqlOptions.
|
|
4431
|
+
* @param [properties] Properties to set
|
|
4432
|
+
*/
|
|
4433
|
+
constructor(properties?: sqlanvil.IMysqlOptions);
|
|
4434
|
+
|
|
4435
|
+
/** MysqlOptions engine. */
|
|
4436
|
+
public engine: string;
|
|
4437
|
+
|
|
4438
|
+
/** MysqlOptions charset. */
|
|
4439
|
+
public charset: string;
|
|
4440
|
+
|
|
4441
|
+
/** MysqlOptions collation. */
|
|
4442
|
+
public collation: string;
|
|
4443
|
+
|
|
4444
|
+
/** MysqlOptions indexes. */
|
|
4445
|
+
public indexes: sqlanvil.MysqlOptions.IIndex[];
|
|
4446
|
+
|
|
4447
|
+
/**
|
|
4448
|
+
* Creates a new MysqlOptions instance using the specified properties.
|
|
4449
|
+
* @param [properties] Properties to set
|
|
4450
|
+
* @returns MysqlOptions instance
|
|
4451
|
+
*/
|
|
4452
|
+
public static create(properties?: sqlanvil.IMysqlOptions): sqlanvil.MysqlOptions;
|
|
4453
|
+
|
|
4454
|
+
/**
|
|
4455
|
+
* Encodes the specified MysqlOptions message. Does not implicitly {@link sqlanvil.MysqlOptions.verify|verify} messages.
|
|
4456
|
+
* @param message MysqlOptions message or plain object to encode
|
|
4457
|
+
* @param [writer] Writer to encode to
|
|
4458
|
+
* @returns Writer
|
|
4459
|
+
*/
|
|
4460
|
+
public static encode(message: sqlanvil.IMysqlOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4461
|
+
|
|
4462
|
+
/**
|
|
4463
|
+
* Encodes the specified MysqlOptions message, length delimited. Does not implicitly {@link sqlanvil.MysqlOptions.verify|verify} messages.
|
|
4464
|
+
* @param message MysqlOptions message or plain object to encode
|
|
4465
|
+
* @param [writer] Writer to encode to
|
|
4466
|
+
* @returns Writer
|
|
4467
|
+
*/
|
|
4468
|
+
public static encodeDelimited(message: sqlanvil.IMysqlOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4469
|
+
|
|
4470
|
+
/**
|
|
4471
|
+
* Decodes a MysqlOptions message from the specified reader or buffer.
|
|
4472
|
+
* @param reader Reader or buffer to decode from
|
|
4473
|
+
* @param [length] Message length if known beforehand
|
|
4474
|
+
* @returns MysqlOptions
|
|
4475
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4476
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4477
|
+
*/
|
|
4478
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.MysqlOptions;
|
|
4479
|
+
|
|
4480
|
+
/**
|
|
4481
|
+
* Decodes a MysqlOptions message from the specified reader or buffer, length delimited.
|
|
4482
|
+
* @param reader Reader or buffer to decode from
|
|
4483
|
+
* @returns MysqlOptions
|
|
4484
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4485
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4486
|
+
*/
|
|
4487
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.MysqlOptions;
|
|
4488
|
+
|
|
4489
|
+
/**
|
|
4490
|
+
* Verifies a MysqlOptions message.
|
|
4491
|
+
* @param message Plain object to verify
|
|
4492
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4493
|
+
*/
|
|
4494
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4495
|
+
|
|
4496
|
+
/**
|
|
4497
|
+
* Creates a MysqlOptions message from a plain object. Also converts values to their respective internal types.
|
|
4498
|
+
* @param object Plain object
|
|
4499
|
+
* @returns MysqlOptions
|
|
4500
|
+
*/
|
|
4501
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.MysqlOptions;
|
|
4502
|
+
|
|
4503
|
+
/**
|
|
4504
|
+
* Creates a plain object from a MysqlOptions message. Also converts values to other types if specified.
|
|
4505
|
+
* @param message MysqlOptions
|
|
4506
|
+
* @param [options] Conversion options
|
|
4507
|
+
* @returns Plain object
|
|
4508
|
+
*/
|
|
4509
|
+
public static toObject(message: sqlanvil.MysqlOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4510
|
+
|
|
4511
|
+
/**
|
|
4512
|
+
* Converts this MysqlOptions to JSON.
|
|
4513
|
+
* @returns JSON object
|
|
4514
|
+
*/
|
|
4515
|
+
public toJSON(): { [k: string]: any };
|
|
4516
|
+
|
|
4517
|
+
/**
|
|
4518
|
+
* Gets the default type url for MysqlOptions
|
|
4519
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4520
|
+
* @returns The default type url
|
|
4521
|
+
*/
|
|
4522
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4523
|
+
}
|
|
4524
|
+
|
|
4525
|
+
namespace MysqlOptions {
|
|
4526
|
+
|
|
4527
|
+
/** Properties of an Index. */
|
|
4528
|
+
interface IIndex {
|
|
4529
|
+
|
|
4530
|
+
/** Index name */
|
|
4531
|
+
name?: (string|null);
|
|
4532
|
+
|
|
4533
|
+
/** Index columns */
|
|
4534
|
+
columns?: (string[]|null);
|
|
4535
|
+
|
|
4536
|
+
/** Index unique */
|
|
4537
|
+
unique?: (boolean|null);
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4540
|
+
/** Represents an Index. */
|
|
4541
|
+
class Index implements IIndex {
|
|
4542
|
+
|
|
4543
|
+
/**
|
|
4544
|
+
* Constructs a new Index.
|
|
4545
|
+
* @param [properties] Properties to set
|
|
4546
|
+
*/
|
|
4547
|
+
constructor(properties?: sqlanvil.MysqlOptions.IIndex);
|
|
4548
|
+
|
|
4549
|
+
/** Index name. */
|
|
4550
|
+
public name: string;
|
|
4551
|
+
|
|
4552
|
+
/** Index columns. */
|
|
4553
|
+
public columns: string[];
|
|
4554
|
+
|
|
4555
|
+
/** Index unique. */
|
|
4556
|
+
public unique: boolean;
|
|
4557
|
+
|
|
4558
|
+
/**
|
|
4559
|
+
* Creates a new Index instance using the specified properties.
|
|
4560
|
+
* @param [properties] Properties to set
|
|
4561
|
+
* @returns Index instance
|
|
4562
|
+
*/
|
|
4563
|
+
public static create(properties?: sqlanvil.MysqlOptions.IIndex): sqlanvil.MysqlOptions.Index;
|
|
4564
|
+
|
|
4565
|
+
/**
|
|
4566
|
+
* Encodes the specified Index message. Does not implicitly {@link sqlanvil.MysqlOptions.Index.verify|verify} messages.
|
|
4567
|
+
* @param message Index message or plain object to encode
|
|
4568
|
+
* @param [writer] Writer to encode to
|
|
4569
|
+
* @returns Writer
|
|
4570
|
+
*/
|
|
4571
|
+
public static encode(message: sqlanvil.MysqlOptions.IIndex, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4572
|
+
|
|
4573
|
+
/**
|
|
4574
|
+
* Encodes the specified Index message, length delimited. Does not implicitly {@link sqlanvil.MysqlOptions.Index.verify|verify} messages.
|
|
4575
|
+
* @param message Index message or plain object to encode
|
|
4576
|
+
* @param [writer] Writer to encode to
|
|
4577
|
+
* @returns Writer
|
|
4578
|
+
*/
|
|
4579
|
+
public static encodeDelimited(message: sqlanvil.MysqlOptions.IIndex, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4580
|
+
|
|
4581
|
+
/**
|
|
4582
|
+
* Decodes an Index message from the specified reader or buffer.
|
|
4583
|
+
* @param reader Reader or buffer to decode from
|
|
4584
|
+
* @param [length] Message length if known beforehand
|
|
4585
|
+
* @returns Index
|
|
4586
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4587
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4588
|
+
*/
|
|
4589
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.MysqlOptions.Index;
|
|
4590
|
+
|
|
4591
|
+
/**
|
|
4592
|
+
* Decodes an Index message from the specified reader or buffer, length delimited.
|
|
4593
|
+
* @param reader Reader or buffer to decode from
|
|
4594
|
+
* @returns Index
|
|
4595
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4596
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4597
|
+
*/
|
|
4598
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.MysqlOptions.Index;
|
|
4599
|
+
|
|
4600
|
+
/**
|
|
4601
|
+
* Verifies an Index message.
|
|
4602
|
+
* @param message Plain object to verify
|
|
4603
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4604
|
+
*/
|
|
4605
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4606
|
+
|
|
4607
|
+
/**
|
|
4608
|
+
* Creates an Index message from a plain object. Also converts values to their respective internal types.
|
|
4609
|
+
* @param object Plain object
|
|
4610
|
+
* @returns Index
|
|
4611
|
+
*/
|
|
4612
|
+
public static fromObject(object: { [k: string]: any }): sqlanvil.MysqlOptions.Index;
|
|
4613
|
+
|
|
4614
|
+
/**
|
|
4615
|
+
* Creates a plain object from an Index message. Also converts values to other types if specified.
|
|
4616
|
+
* @param message Index
|
|
4617
|
+
* @param [options] Conversion options
|
|
4618
|
+
* @returns Plain object
|
|
4619
|
+
*/
|
|
4620
|
+
public static toObject(message: sqlanvil.MysqlOptions.Index, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4621
|
+
|
|
4622
|
+
/**
|
|
4623
|
+
* Converts this Index to JSON.
|
|
4624
|
+
* @returns JSON object
|
|
4625
|
+
*/
|
|
4626
|
+
public toJSON(): { [k: string]: any };
|
|
4627
|
+
|
|
4628
|
+
/**
|
|
4629
|
+
* Gets the default type url for Index
|
|
4630
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4631
|
+
* @returns The default type url
|
|
4632
|
+
*/
|
|
4633
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4634
|
+
}
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4398
4637
|
/** Properties of a SupabaseOptions. */
|
|
4399
4638
|
interface ISupabaseOptions {
|
|
4400
4639
|
|
|
@@ -6632,6 +6871,9 @@ namespace sqlanvil {
|
|
|
6632
6871
|
/** Table supabase */
|
|
6633
6872
|
supabase?: (sqlanvil.ISupabaseOptions|null);
|
|
6634
6873
|
|
|
6874
|
+
/** Table mysql */
|
|
6875
|
+
mysql?: (sqlanvil.IMysqlOptions|null);
|
|
6876
|
+
|
|
6635
6877
|
/** Table fileName */
|
|
6636
6878
|
fileName?: (string|null);
|
|
6637
6879
|
}
|
|
@@ -6717,6 +6959,9 @@ namespace sqlanvil {
|
|
|
6717
6959
|
/** Table supabase. */
|
|
6718
6960
|
public supabase?: (sqlanvil.ISupabaseOptions|null);
|
|
6719
6961
|
|
|
6962
|
+
/** Table mysql. */
|
|
6963
|
+
public mysql?: (sqlanvil.IMysqlOptions|null);
|
|
6964
|
+
|
|
6720
6965
|
/** Table fileName. */
|
|
6721
6966
|
public fileName: string;
|
|
6722
6967
|
|
|
@@ -13555,6 +13800,7 @@ declare class Table extends ActionBuilder<sqlanvil.Table> {
|
|
|
13555
13800
|
disabled(disabled?: boolean): this;
|
|
13556
13801
|
bigquery(bigquery: sqlanvil.IBigQueryOptions): this;
|
|
13557
13802
|
postgres(postgres: sqlanvil.IPostgresOptions): this;
|
|
13803
|
+
mysql(mysql: sqlanvil.IMysqlOptions): this;
|
|
13558
13804
|
supabase(supabase: sqlanvil.ISupabaseOptions): this;
|
|
13559
13805
|
dependencies(value: Resolvable | Resolvable[]): this;
|
|
13560
13806
|
hermetic(hermetic: boolean): void;
|
|
@@ -13621,6 +13867,7 @@ declare class IncrementalTable extends ActionBuilder<sqlanvil.Table> {
|
|
|
13621
13867
|
uniqueKey(uniqueKey: string[]): void;
|
|
13622
13868
|
bigquery(bigquery: sqlanvil.IBigQueryOptions): this;
|
|
13623
13869
|
postgres(postgres: sqlanvil.IPostgresOptions): this;
|
|
13870
|
+
mysql(mysql: sqlanvil.IMysqlOptions): this;
|
|
13624
13871
|
supabase(supabase: sqlanvil.ISupabaseOptions): this;
|
|
13625
13872
|
dependencies(value: Resolvable | Resolvable[]): this;
|
|
13626
13873
|
hermetic(hermetic: boolean): void;
|
|
@@ -14067,7 +14314,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
|
|
|
14067
14314
|
|
|
14068
14315
|
declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
|
|
14069
14316
|
|
|
14070
|
-
declare const version = "1.
|
|
14317
|
+
declare const version = "1.6.0";
|
|
14071
14318
|
|
|
14072
14319
|
declare const session: Session;
|
|
14073
14320
|
declare const supportedFeatures: sqlanvil.SupportedFeatures[];
|