@sqlanvil/cli 1.4.1 → 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/README.md +3 -2
- package/bundle.js +1527 -7
- package/package.json +2 -1
- package/worker_bundle.js +1752 -746
package/worker_bundle.js
CHANGED
|
@@ -3759,6 +3759,7 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
3759
3759
|
* @property {string|null} [reservation] TableConfig reservation
|
|
3760
3760
|
* @property {sqlanvil.IPostgresOptions|null} [postgres] TableConfig postgres
|
|
3761
3761
|
* @property {sqlanvil.ISupabaseOptions|null} [supabase] TableConfig supabase
|
|
3762
|
+
* @property {sqlanvil.IMysqlOptions|null} [mysql] TableConfig mysql
|
|
3762
3763
|
*/
|
|
3763
3764
|
|
|
3764
3765
|
/**
|
|
@@ -3984,6 +3985,14 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
3984
3985
|
*/
|
|
3985
3986
|
TableConfig.prototype.supabase = null;
|
|
3986
3987
|
|
|
3988
|
+
/**
|
|
3989
|
+
* TableConfig mysql.
|
|
3990
|
+
* @member {sqlanvil.IMysqlOptions|null|undefined} mysql
|
|
3991
|
+
* @memberof sqlanvil.ActionConfig.TableConfig
|
|
3992
|
+
* @instance
|
|
3993
|
+
*/
|
|
3994
|
+
TableConfig.prototype.mysql = null;
|
|
3995
|
+
|
|
3987
3996
|
/**
|
|
3988
3997
|
* Creates a new TableConfig instance using the specified properties.
|
|
3989
3998
|
* @function create
|
|
@@ -4066,6 +4075,8 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
4066
4075
|
$root.sqlanvil.PostgresOptions.encode(message.postgres, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
|
|
4067
4076
|
if (message.supabase != null && Object.hasOwnProperty.call(message, "supabase"))
|
|
4068
4077
|
$root.sqlanvil.SupabaseOptions.encode(message.supabase, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
4078
|
+
if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql"))
|
|
4079
|
+
$root.sqlanvil.MysqlOptions.encode(message.mysql, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
4069
4080
|
return writer;
|
|
4070
4081
|
};
|
|
4071
4082
|
|
|
@@ -4252,6 +4263,10 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
4252
4263
|
message.supabase = $root.sqlanvil.SupabaseOptions.decode(reader, reader.uint32());
|
|
4253
4264
|
break;
|
|
4254
4265
|
}
|
|
4266
|
+
case 27: {
|
|
4267
|
+
message.mysql = $root.sqlanvil.MysqlOptions.decode(reader, reader.uint32());
|
|
4268
|
+
break;
|
|
4269
|
+
}
|
|
4255
4270
|
default:
|
|
4256
4271
|
reader.skipType(tag & 7);
|
|
4257
4272
|
break;
|
|
@@ -4410,6 +4425,11 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
4410
4425
|
if (error)
|
|
4411
4426
|
return "supabase." + error;
|
|
4412
4427
|
}
|
|
4428
|
+
if (message.mysql != null && message.hasOwnProperty("mysql")) {
|
|
4429
|
+
let error = $root.sqlanvil.MysqlOptions.verify(message.mysql);
|
|
4430
|
+
if (error)
|
|
4431
|
+
return "mysql." + error;
|
|
4432
|
+
}
|
|
4413
4433
|
return null;
|
|
4414
4434
|
};
|
|
4415
4435
|
|
|
@@ -4536,6 +4556,11 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
4536
4556
|
throw TypeError(".sqlanvil.ActionConfig.TableConfig.supabase: object expected");
|
|
4537
4557
|
message.supabase = $root.sqlanvil.SupabaseOptions.fromObject(object.supabase);
|
|
4538
4558
|
}
|
|
4559
|
+
if (object.mysql != null) {
|
|
4560
|
+
if (typeof object.mysql !== "object")
|
|
4561
|
+
throw TypeError(".sqlanvil.ActionConfig.TableConfig.mysql: object expected");
|
|
4562
|
+
message.mysql = $root.sqlanvil.MysqlOptions.fromObject(object.mysql);
|
|
4563
|
+
}
|
|
4539
4564
|
return message;
|
|
4540
4565
|
};
|
|
4541
4566
|
|
|
@@ -4582,6 +4607,7 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
4582
4607
|
object.reservation = "";
|
|
4583
4608
|
object.postgres = null;
|
|
4584
4609
|
object.supabase = null;
|
|
4610
|
+
object.mysql = null;
|
|
4585
4611
|
}
|
|
4586
4612
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
4587
4613
|
object.name = message.name;
|
|
@@ -4658,6 +4684,8 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
4658
4684
|
object.postgres = $root.sqlanvil.PostgresOptions.toObject(message.postgres, options);
|
|
4659
4685
|
if (message.supabase != null && message.hasOwnProperty("supabase"))
|
|
4660
4686
|
object.supabase = $root.sqlanvil.SupabaseOptions.toObject(message.supabase, options);
|
|
4687
|
+
if (message.mysql != null && message.hasOwnProperty("mysql"))
|
|
4688
|
+
object.mysql = $root.sqlanvil.MysqlOptions.toObject(message.mysql, options);
|
|
4661
4689
|
return object;
|
|
4662
4690
|
};
|
|
4663
4691
|
|
|
@@ -5860,6 +5888,7 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
5860
5888
|
* @property {string|null} [reservation] IncrementalTableConfig reservation
|
|
5861
5889
|
* @property {sqlanvil.IPostgresOptions|null} [postgres] IncrementalTableConfig postgres
|
|
5862
5890
|
* @property {sqlanvil.ISupabaseOptions|null} [supabase] IncrementalTableConfig supabase
|
|
5891
|
+
* @property {sqlanvil.IMysqlOptions|null} [mysql] IncrementalTableConfig mysql
|
|
5863
5892
|
*/
|
|
5864
5893
|
|
|
5865
5894
|
/**
|
|
@@ -6118,6 +6147,14 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
6118
6147
|
*/
|
|
6119
6148
|
IncrementalTableConfig.prototype.supabase = null;
|
|
6120
6149
|
|
|
6150
|
+
/**
|
|
6151
|
+
* IncrementalTableConfig mysql.
|
|
6152
|
+
* @member {sqlanvil.IMysqlOptions|null|undefined} mysql
|
|
6153
|
+
* @memberof sqlanvil.ActionConfig.IncrementalTableConfig
|
|
6154
|
+
* @instance
|
|
6155
|
+
*/
|
|
6156
|
+
IncrementalTableConfig.prototype.mysql = null;
|
|
6157
|
+
|
|
6121
6158
|
/**
|
|
6122
6159
|
* Creates a new IncrementalTableConfig instance using the specified properties.
|
|
6123
6160
|
* @function create
|
|
@@ -6209,6 +6246,8 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
6209
6246
|
$root.sqlanvil.PostgresOptions.encode(message.postgres, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
6210
6247
|
if (message.supabase != null && Object.hasOwnProperty.call(message, "supabase"))
|
|
6211
6248
|
$root.sqlanvil.SupabaseOptions.encode(message.supabase, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
|
|
6249
|
+
if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql"))
|
|
6250
|
+
$root.sqlanvil.MysqlOptions.encode(message.mysql, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
|
|
6212
6251
|
return writer;
|
|
6213
6252
|
};
|
|
6214
6253
|
|
|
@@ -6413,6 +6452,10 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
6413
6452
|
message.supabase = $root.sqlanvil.SupabaseOptions.decode(reader, reader.uint32());
|
|
6414
6453
|
break;
|
|
6415
6454
|
}
|
|
6455
|
+
case 30: {
|
|
6456
|
+
message.mysql = $root.sqlanvil.MysqlOptions.decode(reader, reader.uint32());
|
|
6457
|
+
break;
|
|
6458
|
+
}
|
|
6416
6459
|
default:
|
|
6417
6460
|
reader.skipType(tag & 7);
|
|
6418
6461
|
break;
|
|
@@ -6594,6 +6637,11 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
6594
6637
|
if (error)
|
|
6595
6638
|
return "supabase." + error;
|
|
6596
6639
|
}
|
|
6640
|
+
if (message.mysql != null && message.hasOwnProperty("mysql")) {
|
|
6641
|
+
let error = $root.sqlanvil.MysqlOptions.verify(message.mysql);
|
|
6642
|
+
if (error)
|
|
6643
|
+
return "mysql." + error;
|
|
6644
|
+
}
|
|
6597
6645
|
return null;
|
|
6598
6646
|
};
|
|
6599
6647
|
|
|
@@ -6755,6 +6803,11 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
6755
6803
|
throw TypeError(".sqlanvil.ActionConfig.IncrementalTableConfig.supabase: object expected");
|
|
6756
6804
|
message.supabase = $root.sqlanvil.SupabaseOptions.fromObject(object.supabase);
|
|
6757
6805
|
}
|
|
6806
|
+
if (object.mysql != null) {
|
|
6807
|
+
if (typeof object.mysql !== "object")
|
|
6808
|
+
throw TypeError(".sqlanvil.ActionConfig.IncrementalTableConfig.mysql: object expected");
|
|
6809
|
+
message.mysql = $root.sqlanvil.MysqlOptions.fromObject(object.mysql);
|
|
6810
|
+
}
|
|
6758
6811
|
return message;
|
|
6759
6812
|
};
|
|
6760
6813
|
|
|
@@ -6805,6 +6858,7 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
6805
6858
|
object.reservation = "";
|
|
6806
6859
|
object.postgres = null;
|
|
6807
6860
|
object.supabase = null;
|
|
6861
|
+
object.mysql = null;
|
|
6808
6862
|
}
|
|
6809
6863
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
6810
6864
|
object.name = message.name;
|
|
@@ -6892,6 +6946,8 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
6892
6946
|
object.postgres = $root.sqlanvil.PostgresOptions.toObject(message.postgres, options);
|
|
6893
6947
|
if (message.supabase != null && message.hasOwnProperty("supabase"))
|
|
6894
6948
|
object.supabase = $root.sqlanvil.SupabaseOptions.toObject(message.supabase, options);
|
|
6949
|
+
if (message.mysql != null && message.hasOwnProperty("mysql"))
|
|
6950
|
+
object.mysql = $root.sqlanvil.MysqlOptions.toObject(message.mysql, options);
|
|
6895
6951
|
return object;
|
|
6896
6952
|
};
|
|
6897
6953
|
|
|
@@ -13352,29 +13408,28 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
13352
13408
|
return PostgresOptions;
|
|
13353
13409
|
})();
|
|
13354
13410
|
|
|
13355
|
-
sqlanvil.
|
|
13411
|
+
sqlanvil.MysqlOptions = (function() {
|
|
13356
13412
|
|
|
13357
13413
|
/**
|
|
13358
|
-
* Properties of a
|
|
13414
|
+
* Properties of a MysqlOptions.
|
|
13359
13415
|
* @memberof sqlanvil
|
|
13360
|
-
* @interface
|
|
13361
|
-
* @property {
|
|
13362
|
-
* @property {
|
|
13363
|
-
* @property {
|
|
13364
|
-
* @property {
|
|
13365
|
-
* @property {Array.<sqlanvil.SupabaseOptions.IVectorConfig>|null} [vectors] SupabaseOptions vectors
|
|
13416
|
+
* @interface IMysqlOptions
|
|
13417
|
+
* @property {string|null} [engine] MysqlOptions engine
|
|
13418
|
+
* @property {string|null} [charset] MysqlOptions charset
|
|
13419
|
+
* @property {string|null} [collation] MysqlOptions collation
|
|
13420
|
+
* @property {Array.<sqlanvil.MysqlOptions.IIndex>|null} [indexes] MysqlOptions indexes
|
|
13366
13421
|
*/
|
|
13367
13422
|
|
|
13368
13423
|
/**
|
|
13369
|
-
* Constructs a new
|
|
13424
|
+
* Constructs a new MysqlOptions.
|
|
13370
13425
|
* @memberof sqlanvil
|
|
13371
|
-
* @classdesc Represents a
|
|
13372
|
-
* @implements
|
|
13426
|
+
* @classdesc Represents a MysqlOptions.
|
|
13427
|
+
* @implements IMysqlOptions
|
|
13373
13428
|
* @constructor
|
|
13374
|
-
* @param {sqlanvil.
|
|
13429
|
+
* @param {sqlanvil.IMysqlOptions=} [properties] Properties to set
|
|
13375
13430
|
*/
|
|
13376
|
-
function
|
|
13377
|
-
this.
|
|
13431
|
+
function MysqlOptions(properties) {
|
|
13432
|
+
this.indexes = [];
|
|
13378
13433
|
if (properties)
|
|
13379
13434
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13380
13435
|
if (properties[keys[i]] != null)
|
|
@@ -13382,136 +13437,122 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
13382
13437
|
}
|
|
13383
13438
|
|
|
13384
13439
|
/**
|
|
13385
|
-
*
|
|
13386
|
-
* @member {
|
|
13387
|
-
* @memberof sqlanvil.
|
|
13388
|
-
* @instance
|
|
13389
|
-
*/
|
|
13390
|
-
SupabaseOptions.prototype.postgres = null;
|
|
13391
|
-
|
|
13392
|
-
/**
|
|
13393
|
-
* SupabaseOptions publishToRealtime.
|
|
13394
|
-
* @member {boolean} publishToRealtime
|
|
13395
|
-
* @memberof sqlanvil.SupabaseOptions
|
|
13440
|
+
* MysqlOptions engine.
|
|
13441
|
+
* @member {string} engine
|
|
13442
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13396
13443
|
* @instance
|
|
13397
13444
|
*/
|
|
13398
|
-
|
|
13445
|
+
MysqlOptions.prototype.engine = "";
|
|
13399
13446
|
|
|
13400
13447
|
/**
|
|
13401
|
-
*
|
|
13402
|
-
* @member {
|
|
13403
|
-
* @memberof sqlanvil.
|
|
13448
|
+
* MysqlOptions charset.
|
|
13449
|
+
* @member {string} charset
|
|
13450
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13404
13451
|
* @instance
|
|
13405
13452
|
*/
|
|
13406
|
-
|
|
13453
|
+
MysqlOptions.prototype.charset = "";
|
|
13407
13454
|
|
|
13408
13455
|
/**
|
|
13409
|
-
*
|
|
13410
|
-
* @member {string}
|
|
13411
|
-
* @memberof sqlanvil.
|
|
13456
|
+
* MysqlOptions collation.
|
|
13457
|
+
* @member {string} collation
|
|
13458
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13412
13459
|
* @instance
|
|
13413
13460
|
*/
|
|
13414
|
-
|
|
13461
|
+
MysqlOptions.prototype.collation = "";
|
|
13415
13462
|
|
|
13416
13463
|
/**
|
|
13417
|
-
*
|
|
13418
|
-
* @member {Array.<sqlanvil.
|
|
13419
|
-
* @memberof sqlanvil.
|
|
13464
|
+
* MysqlOptions indexes.
|
|
13465
|
+
* @member {Array.<sqlanvil.MysqlOptions.IIndex>} indexes
|
|
13466
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13420
13467
|
* @instance
|
|
13421
13468
|
*/
|
|
13422
|
-
|
|
13469
|
+
MysqlOptions.prototype.indexes = $util.emptyArray;
|
|
13423
13470
|
|
|
13424
13471
|
/**
|
|
13425
|
-
* Creates a new
|
|
13472
|
+
* Creates a new MysqlOptions instance using the specified properties.
|
|
13426
13473
|
* @function create
|
|
13427
|
-
* @memberof sqlanvil.
|
|
13474
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13428
13475
|
* @static
|
|
13429
|
-
* @param {sqlanvil.
|
|
13430
|
-
* @returns {sqlanvil.
|
|
13476
|
+
* @param {sqlanvil.IMysqlOptions=} [properties] Properties to set
|
|
13477
|
+
* @returns {sqlanvil.MysqlOptions} MysqlOptions instance
|
|
13431
13478
|
*/
|
|
13432
|
-
|
|
13433
|
-
return new
|
|
13479
|
+
MysqlOptions.create = function create(properties) {
|
|
13480
|
+
return new MysqlOptions(properties);
|
|
13434
13481
|
};
|
|
13435
13482
|
|
|
13436
13483
|
/**
|
|
13437
|
-
* Encodes the specified
|
|
13484
|
+
* Encodes the specified MysqlOptions message. Does not implicitly {@link sqlanvil.MysqlOptions.verify|verify} messages.
|
|
13438
13485
|
* @function encode
|
|
13439
|
-
* @memberof sqlanvil.
|
|
13486
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13440
13487
|
* @static
|
|
13441
|
-
* @param {sqlanvil.
|
|
13488
|
+
* @param {sqlanvil.IMysqlOptions} message MysqlOptions message or plain object to encode
|
|
13442
13489
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13443
13490
|
* @returns {$protobuf.Writer} Writer
|
|
13444
13491
|
*/
|
|
13445
|
-
|
|
13492
|
+
MysqlOptions.encode = function encode(message, writer) {
|
|
13446
13493
|
if (!writer)
|
|
13447
13494
|
writer = $Writer.create();
|
|
13448
|
-
if (message.
|
|
13449
|
-
|
|
13450
|
-
if (message.
|
|
13451
|
-
writer.uint32(/* id 2, wireType
|
|
13452
|
-
if (message.
|
|
13453
|
-
writer.uint32(/* id 3, wireType
|
|
13454
|
-
if (message.
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
for (let i = 0; i < message.vectors.length; ++i)
|
|
13458
|
-
$root.sqlanvil.SupabaseOptions.VectorConfig.encode(message.vectors[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
13495
|
+
if (message.engine != null && Object.hasOwnProperty.call(message, "engine"))
|
|
13496
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.engine);
|
|
13497
|
+
if (message.charset != null && Object.hasOwnProperty.call(message, "charset"))
|
|
13498
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.charset);
|
|
13499
|
+
if (message.collation != null && Object.hasOwnProperty.call(message, "collation"))
|
|
13500
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.collation);
|
|
13501
|
+
if (message.indexes != null && message.indexes.length)
|
|
13502
|
+
for (let i = 0; i < message.indexes.length; ++i)
|
|
13503
|
+
$root.sqlanvil.MysqlOptions.Index.encode(message.indexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
13459
13504
|
return writer;
|
|
13460
13505
|
};
|
|
13461
13506
|
|
|
13462
13507
|
/**
|
|
13463
|
-
* Encodes the specified
|
|
13508
|
+
* Encodes the specified MysqlOptions message, length delimited. Does not implicitly {@link sqlanvil.MysqlOptions.verify|verify} messages.
|
|
13464
13509
|
* @function encodeDelimited
|
|
13465
|
-
* @memberof sqlanvil.
|
|
13510
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13466
13511
|
* @static
|
|
13467
|
-
* @param {sqlanvil.
|
|
13512
|
+
* @param {sqlanvil.IMysqlOptions} message MysqlOptions message or plain object to encode
|
|
13468
13513
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13469
13514
|
* @returns {$protobuf.Writer} Writer
|
|
13470
13515
|
*/
|
|
13471
|
-
|
|
13516
|
+
MysqlOptions.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13472
13517
|
return this.encode(message, writer).ldelim();
|
|
13473
13518
|
};
|
|
13474
13519
|
|
|
13475
13520
|
/**
|
|
13476
|
-
* Decodes a
|
|
13521
|
+
* Decodes a MysqlOptions message from the specified reader or buffer.
|
|
13477
13522
|
* @function decode
|
|
13478
|
-
* @memberof sqlanvil.
|
|
13523
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13479
13524
|
* @static
|
|
13480
13525
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13481
13526
|
* @param {number} [length] Message length if known beforehand
|
|
13482
|
-
* @returns {sqlanvil.
|
|
13527
|
+
* @returns {sqlanvil.MysqlOptions} MysqlOptions
|
|
13483
13528
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13484
13529
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13485
13530
|
*/
|
|
13486
|
-
|
|
13531
|
+
MysqlOptions.decode = function decode(reader, length, error) {
|
|
13487
13532
|
if (!(reader instanceof $Reader))
|
|
13488
13533
|
reader = $Reader.create(reader);
|
|
13489
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.
|
|
13534
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.MysqlOptions();
|
|
13490
13535
|
while (reader.pos < end) {
|
|
13491
13536
|
let tag = reader.uint32();
|
|
13492
13537
|
if (tag === error)
|
|
13493
13538
|
break;
|
|
13494
13539
|
switch (tag >>> 3) {
|
|
13495
13540
|
case 1: {
|
|
13496
|
-
message.
|
|
13541
|
+
message.engine = reader.string();
|
|
13497
13542
|
break;
|
|
13498
13543
|
}
|
|
13499
13544
|
case 2: {
|
|
13500
|
-
message.
|
|
13545
|
+
message.charset = reader.string();
|
|
13501
13546
|
break;
|
|
13502
13547
|
}
|
|
13503
13548
|
case 3: {
|
|
13504
|
-
message.
|
|
13549
|
+
message.collation = reader.string();
|
|
13505
13550
|
break;
|
|
13506
13551
|
}
|
|
13507
13552
|
case 4: {
|
|
13508
|
-
message.
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
case 5: {
|
|
13512
|
-
if (!(message.vectors && message.vectors.length))
|
|
13513
|
-
message.vectors = [];
|
|
13514
|
-
message.vectors.push($root.sqlanvil.SupabaseOptions.VectorConfig.decode(reader, reader.uint32()));
|
|
13553
|
+
if (!(message.indexes && message.indexes.length))
|
|
13554
|
+
message.indexes = [];
|
|
13555
|
+
message.indexes.push($root.sqlanvil.MysqlOptions.Index.decode(reader, reader.uint32()));
|
|
13515
13556
|
break;
|
|
13516
13557
|
}
|
|
13517
13558
|
default:
|
|
@@ -13523,179 +13564,165 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
13523
13564
|
};
|
|
13524
13565
|
|
|
13525
13566
|
/**
|
|
13526
|
-
* Decodes a
|
|
13567
|
+
* Decodes a MysqlOptions message from the specified reader or buffer, length delimited.
|
|
13527
13568
|
* @function decodeDelimited
|
|
13528
|
-
* @memberof sqlanvil.
|
|
13569
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13529
13570
|
* @static
|
|
13530
13571
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13531
|
-
* @returns {sqlanvil.
|
|
13572
|
+
* @returns {sqlanvil.MysqlOptions} MysqlOptions
|
|
13532
13573
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13533
13574
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13534
13575
|
*/
|
|
13535
|
-
|
|
13576
|
+
MysqlOptions.decodeDelimited = function decodeDelimited(reader) {
|
|
13536
13577
|
if (!(reader instanceof $Reader))
|
|
13537
13578
|
reader = new $Reader(reader);
|
|
13538
13579
|
return this.decode(reader, reader.uint32());
|
|
13539
13580
|
};
|
|
13540
13581
|
|
|
13541
13582
|
/**
|
|
13542
|
-
* Verifies a
|
|
13583
|
+
* Verifies a MysqlOptions message.
|
|
13543
13584
|
* @function verify
|
|
13544
|
-
* @memberof sqlanvil.
|
|
13585
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13545
13586
|
* @static
|
|
13546
13587
|
* @param {Object.<string,*>} message Plain object to verify
|
|
13547
13588
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13548
13589
|
*/
|
|
13549
|
-
|
|
13590
|
+
MysqlOptions.verify = function verify(message) {
|
|
13550
13591
|
if (typeof message !== "object" || message === null)
|
|
13551
13592
|
return "object expected";
|
|
13552
|
-
if (message.
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
if (message.vectors != null && message.hasOwnProperty("vectors")) {
|
|
13567
|
-
if (!Array.isArray(message.vectors))
|
|
13568
|
-
return "vectors: array expected";
|
|
13569
|
-
for (let i = 0; i < message.vectors.length; ++i) {
|
|
13570
|
-
let error = $root.sqlanvil.SupabaseOptions.VectorConfig.verify(message.vectors[i]);
|
|
13593
|
+
if (message.engine != null && message.hasOwnProperty("engine"))
|
|
13594
|
+
if (!$util.isString(message.engine))
|
|
13595
|
+
return "engine: string expected";
|
|
13596
|
+
if (message.charset != null && message.hasOwnProperty("charset"))
|
|
13597
|
+
if (!$util.isString(message.charset))
|
|
13598
|
+
return "charset: string expected";
|
|
13599
|
+
if (message.collation != null && message.hasOwnProperty("collation"))
|
|
13600
|
+
if (!$util.isString(message.collation))
|
|
13601
|
+
return "collation: string expected";
|
|
13602
|
+
if (message.indexes != null && message.hasOwnProperty("indexes")) {
|
|
13603
|
+
if (!Array.isArray(message.indexes))
|
|
13604
|
+
return "indexes: array expected";
|
|
13605
|
+
for (let i = 0; i < message.indexes.length; ++i) {
|
|
13606
|
+
let error = $root.sqlanvil.MysqlOptions.Index.verify(message.indexes[i]);
|
|
13571
13607
|
if (error)
|
|
13572
|
-
return "
|
|
13608
|
+
return "indexes." + error;
|
|
13573
13609
|
}
|
|
13574
13610
|
}
|
|
13575
13611
|
return null;
|
|
13576
13612
|
};
|
|
13577
13613
|
|
|
13578
13614
|
/**
|
|
13579
|
-
* Creates a
|
|
13615
|
+
* Creates a MysqlOptions message from a plain object. Also converts values to their respective internal types.
|
|
13580
13616
|
* @function fromObject
|
|
13581
|
-
* @memberof sqlanvil.
|
|
13617
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13582
13618
|
* @static
|
|
13583
13619
|
* @param {Object.<string,*>} object Plain object
|
|
13584
|
-
* @returns {sqlanvil.
|
|
13620
|
+
* @returns {sqlanvil.MysqlOptions} MysqlOptions
|
|
13585
13621
|
*/
|
|
13586
|
-
|
|
13587
|
-
if (object instanceof $root.sqlanvil.
|
|
13622
|
+
MysqlOptions.fromObject = function fromObject(object) {
|
|
13623
|
+
if (object instanceof $root.sqlanvil.MysqlOptions)
|
|
13588
13624
|
return object;
|
|
13589
|
-
let message = new $root.sqlanvil.
|
|
13590
|
-
if (object.
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
message.
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
message.vectors = [];
|
|
13605
|
-
for (let i = 0; i < object.vectors.length; ++i) {
|
|
13606
|
-
if (typeof object.vectors[i] !== "object")
|
|
13607
|
-
throw TypeError(".sqlanvil.SupabaseOptions.vectors: object expected");
|
|
13608
|
-
message.vectors[i] = $root.sqlanvil.SupabaseOptions.VectorConfig.fromObject(object.vectors[i]);
|
|
13625
|
+
let message = new $root.sqlanvil.MysqlOptions();
|
|
13626
|
+
if (object.engine != null)
|
|
13627
|
+
message.engine = String(object.engine);
|
|
13628
|
+
if (object.charset != null)
|
|
13629
|
+
message.charset = String(object.charset);
|
|
13630
|
+
if (object.collation != null)
|
|
13631
|
+
message.collation = String(object.collation);
|
|
13632
|
+
if (object.indexes) {
|
|
13633
|
+
if (!Array.isArray(object.indexes))
|
|
13634
|
+
throw TypeError(".sqlanvil.MysqlOptions.indexes: array expected");
|
|
13635
|
+
message.indexes = [];
|
|
13636
|
+
for (let i = 0; i < object.indexes.length; ++i) {
|
|
13637
|
+
if (typeof object.indexes[i] !== "object")
|
|
13638
|
+
throw TypeError(".sqlanvil.MysqlOptions.indexes: object expected");
|
|
13639
|
+
message.indexes[i] = $root.sqlanvil.MysqlOptions.Index.fromObject(object.indexes[i]);
|
|
13609
13640
|
}
|
|
13610
13641
|
}
|
|
13611
13642
|
return message;
|
|
13612
13643
|
};
|
|
13613
13644
|
|
|
13614
13645
|
/**
|
|
13615
|
-
* Creates a plain object from a
|
|
13646
|
+
* Creates a plain object from a MysqlOptions message. Also converts values to other types if specified.
|
|
13616
13647
|
* @function toObject
|
|
13617
|
-
* @memberof sqlanvil.
|
|
13648
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13618
13649
|
* @static
|
|
13619
|
-
* @param {sqlanvil.
|
|
13650
|
+
* @param {sqlanvil.MysqlOptions} message MysqlOptions
|
|
13620
13651
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13621
13652
|
* @returns {Object.<string,*>} Plain object
|
|
13622
13653
|
*/
|
|
13623
|
-
|
|
13654
|
+
MysqlOptions.toObject = function toObject(message, options) {
|
|
13624
13655
|
if (!options)
|
|
13625
13656
|
options = {};
|
|
13626
13657
|
let object = {};
|
|
13627
13658
|
if (options.arrays || options.defaults)
|
|
13628
|
-
object.
|
|
13659
|
+
object.indexes = [];
|
|
13629
13660
|
if (options.defaults) {
|
|
13630
|
-
object.
|
|
13631
|
-
object.
|
|
13632
|
-
object.
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
object.vectors = [];
|
|
13645
|
-
for (let j = 0; j < message.vectors.length; ++j)
|
|
13646
|
-
object.vectors[j] = $root.sqlanvil.SupabaseOptions.VectorConfig.toObject(message.vectors[j], options);
|
|
13661
|
+
object.engine = "";
|
|
13662
|
+
object.charset = "";
|
|
13663
|
+
object.collation = "";
|
|
13664
|
+
}
|
|
13665
|
+
if (message.engine != null && message.hasOwnProperty("engine"))
|
|
13666
|
+
object.engine = message.engine;
|
|
13667
|
+
if (message.charset != null && message.hasOwnProperty("charset"))
|
|
13668
|
+
object.charset = message.charset;
|
|
13669
|
+
if (message.collation != null && message.hasOwnProperty("collation"))
|
|
13670
|
+
object.collation = message.collation;
|
|
13671
|
+
if (message.indexes && message.indexes.length) {
|
|
13672
|
+
object.indexes = [];
|
|
13673
|
+
for (let j = 0; j < message.indexes.length; ++j)
|
|
13674
|
+
object.indexes[j] = $root.sqlanvil.MysqlOptions.Index.toObject(message.indexes[j], options);
|
|
13647
13675
|
}
|
|
13648
13676
|
return object;
|
|
13649
13677
|
};
|
|
13650
13678
|
|
|
13651
13679
|
/**
|
|
13652
|
-
* Converts this
|
|
13680
|
+
* Converts this MysqlOptions to JSON.
|
|
13653
13681
|
* @function toJSON
|
|
13654
|
-
* @memberof sqlanvil.
|
|
13682
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13655
13683
|
* @instance
|
|
13656
13684
|
* @returns {Object.<string,*>} JSON object
|
|
13657
13685
|
*/
|
|
13658
|
-
|
|
13686
|
+
MysqlOptions.prototype.toJSON = function toJSON() {
|
|
13659
13687
|
return this.constructor.toObject(this, $protobuf__namespace.util.toJSONOptions);
|
|
13660
13688
|
};
|
|
13661
13689
|
|
|
13662
13690
|
/**
|
|
13663
|
-
* Gets the default type url for
|
|
13691
|
+
* Gets the default type url for MysqlOptions
|
|
13664
13692
|
* @function getTypeUrl
|
|
13665
|
-
* @memberof sqlanvil.
|
|
13693
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13666
13694
|
* @static
|
|
13667
13695
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
13668
13696
|
* @returns {string} The default type url
|
|
13669
13697
|
*/
|
|
13670
|
-
|
|
13698
|
+
MysqlOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
13671
13699
|
if (typeUrlPrefix === undefined) {
|
|
13672
13700
|
typeUrlPrefix = "type.googleapis.com";
|
|
13673
13701
|
}
|
|
13674
|
-
return typeUrlPrefix + "/sqlanvil.
|
|
13702
|
+
return typeUrlPrefix + "/sqlanvil.MysqlOptions";
|
|
13675
13703
|
};
|
|
13676
13704
|
|
|
13677
|
-
|
|
13705
|
+
MysqlOptions.Index = (function() {
|
|
13678
13706
|
|
|
13679
13707
|
/**
|
|
13680
|
-
* Properties of
|
|
13681
|
-
* @memberof sqlanvil.
|
|
13682
|
-
* @interface
|
|
13683
|
-
* @property {string|null} [
|
|
13684
|
-
* @property {
|
|
13685
|
-
* @property {
|
|
13686
|
-
* @property {Object.<string,string>|null} [params] VectorConfig params
|
|
13708
|
+
* Properties of an Index.
|
|
13709
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13710
|
+
* @interface IIndex
|
|
13711
|
+
* @property {string|null} [name] Index name
|
|
13712
|
+
* @property {Array.<string>|null} [columns] Index columns
|
|
13713
|
+
* @property {boolean|null} [unique] Index unique
|
|
13687
13714
|
*/
|
|
13688
13715
|
|
|
13689
13716
|
/**
|
|
13690
|
-
* Constructs a new
|
|
13691
|
-
* @memberof sqlanvil.
|
|
13692
|
-
* @classdesc Represents
|
|
13693
|
-
* @implements
|
|
13717
|
+
* Constructs a new Index.
|
|
13718
|
+
* @memberof sqlanvil.MysqlOptions
|
|
13719
|
+
* @classdesc Represents an Index.
|
|
13720
|
+
* @implements IIndex
|
|
13694
13721
|
* @constructor
|
|
13695
|
-
* @param {sqlanvil.
|
|
13722
|
+
* @param {sqlanvil.MysqlOptions.IIndex=} [properties] Properties to set
|
|
13696
13723
|
*/
|
|
13697
|
-
function
|
|
13698
|
-
this.
|
|
13724
|
+
function Index(properties) {
|
|
13725
|
+
this.columns = [];
|
|
13699
13726
|
if (properties)
|
|
13700
13727
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13701
13728
|
if (properties[keys[i]] != null)
|
|
@@ -13703,139 +13730,108 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
13703
13730
|
}
|
|
13704
13731
|
|
|
13705
13732
|
/**
|
|
13706
|
-
*
|
|
13707
|
-
* @member {string}
|
|
13708
|
-
* @memberof sqlanvil.
|
|
13733
|
+
* Index name.
|
|
13734
|
+
* @member {string} name
|
|
13735
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13709
13736
|
* @instance
|
|
13710
13737
|
*/
|
|
13711
|
-
|
|
13738
|
+
Index.prototype.name = "";
|
|
13712
13739
|
|
|
13713
13740
|
/**
|
|
13714
|
-
*
|
|
13715
|
-
* @member {
|
|
13716
|
-
* @memberof sqlanvil.
|
|
13741
|
+
* Index columns.
|
|
13742
|
+
* @member {Array.<string>} columns
|
|
13743
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13717
13744
|
* @instance
|
|
13718
13745
|
*/
|
|
13719
|
-
|
|
13746
|
+
Index.prototype.columns = $util.emptyArray;
|
|
13720
13747
|
|
|
13721
13748
|
/**
|
|
13722
|
-
*
|
|
13723
|
-
* @member {
|
|
13724
|
-
* @memberof sqlanvil.
|
|
13749
|
+
* Index unique.
|
|
13750
|
+
* @member {boolean} unique
|
|
13751
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13725
13752
|
* @instance
|
|
13726
13753
|
*/
|
|
13727
|
-
|
|
13754
|
+
Index.prototype.unique = false;
|
|
13728
13755
|
|
|
13729
13756
|
/**
|
|
13730
|
-
*
|
|
13731
|
-
* @
|
|
13732
|
-
* @memberof sqlanvil.
|
|
13733
|
-
* @
|
|
13757
|
+
* Creates a new Index instance using the specified properties.
|
|
13758
|
+
* @function create
|
|
13759
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13760
|
+
* @static
|
|
13761
|
+
* @param {sqlanvil.MysqlOptions.IIndex=} [properties] Properties to set
|
|
13762
|
+
* @returns {sqlanvil.MysqlOptions.Index} Index instance
|
|
13734
13763
|
*/
|
|
13735
|
-
|
|
13764
|
+
Index.create = function create(properties) {
|
|
13765
|
+
return new Index(properties);
|
|
13766
|
+
};
|
|
13736
13767
|
|
|
13737
13768
|
/**
|
|
13738
|
-
*
|
|
13739
|
-
* @function create
|
|
13740
|
-
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
13741
|
-
* @static
|
|
13742
|
-
* @param {sqlanvil.SupabaseOptions.IVectorConfig=} [properties] Properties to set
|
|
13743
|
-
* @returns {sqlanvil.SupabaseOptions.VectorConfig} VectorConfig instance
|
|
13744
|
-
*/
|
|
13745
|
-
VectorConfig.create = function create(properties) {
|
|
13746
|
-
return new VectorConfig(properties);
|
|
13747
|
-
};
|
|
13748
|
-
|
|
13749
|
-
/**
|
|
13750
|
-
* Encodes the specified VectorConfig message. Does not implicitly {@link sqlanvil.SupabaseOptions.VectorConfig.verify|verify} messages.
|
|
13769
|
+
* Encodes the specified Index message. Does not implicitly {@link sqlanvil.MysqlOptions.Index.verify|verify} messages.
|
|
13751
13770
|
* @function encode
|
|
13752
|
-
* @memberof sqlanvil.
|
|
13771
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13753
13772
|
* @static
|
|
13754
|
-
* @param {sqlanvil.
|
|
13773
|
+
* @param {sqlanvil.MysqlOptions.IIndex} message Index message or plain object to encode
|
|
13755
13774
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13756
13775
|
* @returns {$protobuf.Writer} Writer
|
|
13757
13776
|
*/
|
|
13758
|
-
|
|
13777
|
+
Index.encode = function encode(message, writer) {
|
|
13759
13778
|
if (!writer)
|
|
13760
13779
|
writer = $Writer.create();
|
|
13761
|
-
if (message.
|
|
13762
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
13763
|
-
if (message.
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
for (let keys = Object.keys(message.params), i = 0; i < keys.length; ++i)
|
|
13769
|
-
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim();
|
|
13780
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
13781
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
13782
|
+
if (message.columns != null && message.columns.length)
|
|
13783
|
+
for (let i = 0; i < message.columns.length; ++i)
|
|
13784
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.columns[i]);
|
|
13785
|
+
if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
|
|
13786
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unique);
|
|
13770
13787
|
return writer;
|
|
13771
13788
|
};
|
|
13772
13789
|
|
|
13773
13790
|
/**
|
|
13774
|
-
* Encodes the specified
|
|
13791
|
+
* Encodes the specified Index message, length delimited. Does not implicitly {@link sqlanvil.MysqlOptions.Index.verify|verify} messages.
|
|
13775
13792
|
* @function encodeDelimited
|
|
13776
|
-
* @memberof sqlanvil.
|
|
13793
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13777
13794
|
* @static
|
|
13778
|
-
* @param {sqlanvil.
|
|
13795
|
+
* @param {sqlanvil.MysqlOptions.IIndex} message Index message or plain object to encode
|
|
13779
13796
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13780
13797
|
* @returns {$protobuf.Writer} Writer
|
|
13781
13798
|
*/
|
|
13782
|
-
|
|
13799
|
+
Index.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13783
13800
|
return this.encode(message, writer).ldelim();
|
|
13784
13801
|
};
|
|
13785
13802
|
|
|
13786
13803
|
/**
|
|
13787
|
-
* Decodes
|
|
13804
|
+
* Decodes an Index message from the specified reader or buffer.
|
|
13788
13805
|
* @function decode
|
|
13789
|
-
* @memberof sqlanvil.
|
|
13806
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13790
13807
|
* @static
|
|
13791
13808
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13792
13809
|
* @param {number} [length] Message length if known beforehand
|
|
13793
|
-
* @returns {sqlanvil.
|
|
13810
|
+
* @returns {sqlanvil.MysqlOptions.Index} Index
|
|
13794
13811
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13795
13812
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13796
13813
|
*/
|
|
13797
|
-
|
|
13814
|
+
Index.decode = function decode(reader, length, error) {
|
|
13798
13815
|
if (!(reader instanceof $Reader))
|
|
13799
13816
|
reader = $Reader.create(reader);
|
|
13800
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.
|
|
13817
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.MysqlOptions.Index();
|
|
13801
13818
|
while (reader.pos < end) {
|
|
13802
13819
|
let tag = reader.uint32();
|
|
13803
13820
|
if (tag === error)
|
|
13804
13821
|
break;
|
|
13805
13822
|
switch (tag >>> 3) {
|
|
13806
13823
|
case 1: {
|
|
13807
|
-
message.
|
|
13824
|
+
message.name = reader.string();
|
|
13808
13825
|
break;
|
|
13809
13826
|
}
|
|
13810
13827
|
case 2: {
|
|
13811
|
-
message.
|
|
13828
|
+
if (!(message.columns && message.columns.length))
|
|
13829
|
+
message.columns = [];
|
|
13830
|
+
message.columns.push(reader.string());
|
|
13812
13831
|
break;
|
|
13813
13832
|
}
|
|
13814
13833
|
case 3: {
|
|
13815
|
-
message.
|
|
13816
|
-
break;
|
|
13817
|
-
}
|
|
13818
|
-
case 4: {
|
|
13819
|
-
if (message.params === $util.emptyObject)
|
|
13820
|
-
message.params = {};
|
|
13821
|
-
let end2 = reader.uint32() + reader.pos;
|
|
13822
|
-
key = "";
|
|
13823
|
-
value = "";
|
|
13824
|
-
while (reader.pos < end2) {
|
|
13825
|
-
let tag2 = reader.uint32();
|
|
13826
|
-
switch (tag2 >>> 3) {
|
|
13827
|
-
case 1:
|
|
13828
|
-
key = reader.string();
|
|
13829
|
-
break;
|
|
13830
|
-
case 2:
|
|
13831
|
-
value = reader.string();
|
|
13832
|
-
break;
|
|
13833
|
-
default:
|
|
13834
|
-
reader.skipType(tag2 & 7);
|
|
13835
|
-
break;
|
|
13836
|
-
}
|
|
13837
|
-
}
|
|
13838
|
-
message.params[key] = value;
|
|
13834
|
+
message.unique = reader.bool();
|
|
13839
13835
|
break;
|
|
13840
13836
|
}
|
|
13841
13837
|
default:
|
|
@@ -13847,200 +13843,160 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
13847
13843
|
};
|
|
13848
13844
|
|
|
13849
13845
|
/**
|
|
13850
|
-
* Decodes
|
|
13846
|
+
* Decodes an Index message from the specified reader or buffer, length delimited.
|
|
13851
13847
|
* @function decodeDelimited
|
|
13852
|
-
* @memberof sqlanvil.
|
|
13848
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13853
13849
|
* @static
|
|
13854
13850
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13855
|
-
* @returns {sqlanvil.
|
|
13851
|
+
* @returns {sqlanvil.MysqlOptions.Index} Index
|
|
13856
13852
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13857
13853
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13858
13854
|
*/
|
|
13859
|
-
|
|
13855
|
+
Index.decodeDelimited = function decodeDelimited(reader) {
|
|
13860
13856
|
if (!(reader instanceof $Reader))
|
|
13861
13857
|
reader = new $Reader(reader);
|
|
13862
13858
|
return this.decode(reader, reader.uint32());
|
|
13863
13859
|
};
|
|
13864
13860
|
|
|
13865
13861
|
/**
|
|
13866
|
-
* Verifies
|
|
13862
|
+
* Verifies an Index message.
|
|
13867
13863
|
* @function verify
|
|
13868
|
-
* @memberof sqlanvil.
|
|
13864
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13869
13865
|
* @static
|
|
13870
13866
|
* @param {Object.<string,*>} message Plain object to verify
|
|
13871
13867
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13872
13868
|
*/
|
|
13873
|
-
|
|
13869
|
+
Index.verify = function verify(message) {
|
|
13874
13870
|
if (typeof message !== "object" || message === null)
|
|
13875
13871
|
return "object expected";
|
|
13876
|
-
if (message.
|
|
13877
|
-
if (!$util.isString(message.
|
|
13878
|
-
return "
|
|
13879
|
-
if (message.
|
|
13880
|
-
if (
|
|
13881
|
-
return "
|
|
13882
|
-
|
|
13883
|
-
|
|
13884
|
-
|
|
13885
|
-
return "indexType: enum value expected";
|
|
13886
|
-
case 0:
|
|
13887
|
-
case 1:
|
|
13888
|
-
break;
|
|
13889
|
-
}
|
|
13890
|
-
if (message.params != null && message.hasOwnProperty("params")) {
|
|
13891
|
-
if (!$util.isObject(message.params))
|
|
13892
|
-
return "params: object expected";
|
|
13893
|
-
let key = Object.keys(message.params);
|
|
13894
|
-
for (let i = 0; i < key.length; ++i)
|
|
13895
|
-
if (!$util.isString(message.params[key[i]]))
|
|
13896
|
-
return "params: string{k:string} expected";
|
|
13872
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
13873
|
+
if (!$util.isString(message.name))
|
|
13874
|
+
return "name: string expected";
|
|
13875
|
+
if (message.columns != null && message.hasOwnProperty("columns")) {
|
|
13876
|
+
if (!Array.isArray(message.columns))
|
|
13877
|
+
return "columns: array expected";
|
|
13878
|
+
for (let i = 0; i < message.columns.length; ++i)
|
|
13879
|
+
if (!$util.isString(message.columns[i]))
|
|
13880
|
+
return "columns: string[] expected";
|
|
13897
13881
|
}
|
|
13882
|
+
if (message.unique != null && message.hasOwnProperty("unique"))
|
|
13883
|
+
if (typeof message.unique !== "boolean")
|
|
13884
|
+
return "unique: boolean expected";
|
|
13898
13885
|
return null;
|
|
13899
13886
|
};
|
|
13900
13887
|
|
|
13901
13888
|
/**
|
|
13902
|
-
* Creates
|
|
13889
|
+
* Creates an Index message from a plain object. Also converts values to their respective internal types.
|
|
13903
13890
|
* @function fromObject
|
|
13904
|
-
* @memberof sqlanvil.
|
|
13891
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13905
13892
|
* @static
|
|
13906
13893
|
* @param {Object.<string,*>} object Plain object
|
|
13907
|
-
* @returns {sqlanvil.
|
|
13894
|
+
* @returns {sqlanvil.MysqlOptions.Index} Index
|
|
13908
13895
|
*/
|
|
13909
|
-
|
|
13910
|
-
if (object instanceof $root.sqlanvil.
|
|
13896
|
+
Index.fromObject = function fromObject(object) {
|
|
13897
|
+
if (object instanceof $root.sqlanvil.MysqlOptions.Index)
|
|
13911
13898
|
return object;
|
|
13912
|
-
let message = new $root.sqlanvil.
|
|
13913
|
-
if (object.
|
|
13914
|
-
message.
|
|
13915
|
-
if (object.
|
|
13916
|
-
|
|
13917
|
-
|
|
13918
|
-
|
|
13919
|
-
|
|
13920
|
-
message.
|
|
13921
|
-
break;
|
|
13922
|
-
}
|
|
13923
|
-
break;
|
|
13924
|
-
case "IVFFLAT":
|
|
13925
|
-
case 0:
|
|
13926
|
-
message.indexType = 0;
|
|
13927
|
-
break;
|
|
13928
|
-
case "HNSW":
|
|
13929
|
-
case 1:
|
|
13930
|
-
message.indexType = 1;
|
|
13931
|
-
break;
|
|
13932
|
-
}
|
|
13933
|
-
if (object.params) {
|
|
13934
|
-
if (typeof object.params !== "object")
|
|
13935
|
-
throw TypeError(".sqlanvil.SupabaseOptions.VectorConfig.params: object expected");
|
|
13936
|
-
message.params = {};
|
|
13937
|
-
for (let keys = Object.keys(object.params), i = 0; i < keys.length; ++i)
|
|
13938
|
-
message.params[keys[i]] = String(object.params[keys[i]]);
|
|
13899
|
+
let message = new $root.sqlanvil.MysqlOptions.Index();
|
|
13900
|
+
if (object.name != null)
|
|
13901
|
+
message.name = String(object.name);
|
|
13902
|
+
if (object.columns) {
|
|
13903
|
+
if (!Array.isArray(object.columns))
|
|
13904
|
+
throw TypeError(".sqlanvil.MysqlOptions.Index.columns: array expected");
|
|
13905
|
+
message.columns = [];
|
|
13906
|
+
for (let i = 0; i < object.columns.length; ++i)
|
|
13907
|
+
message.columns[i] = String(object.columns[i]);
|
|
13939
13908
|
}
|
|
13909
|
+
if (object.unique != null)
|
|
13910
|
+
message.unique = Boolean(object.unique);
|
|
13940
13911
|
return message;
|
|
13941
13912
|
};
|
|
13942
13913
|
|
|
13943
13914
|
/**
|
|
13944
|
-
* Creates a plain object from
|
|
13915
|
+
* Creates a plain object from an Index message. Also converts values to other types if specified.
|
|
13945
13916
|
* @function toObject
|
|
13946
|
-
* @memberof sqlanvil.
|
|
13917
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13947
13918
|
* @static
|
|
13948
|
-
* @param {sqlanvil.
|
|
13919
|
+
* @param {sqlanvil.MysqlOptions.Index} message Index
|
|
13949
13920
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13950
13921
|
* @returns {Object.<string,*>} Plain object
|
|
13951
13922
|
*/
|
|
13952
|
-
|
|
13923
|
+
Index.toObject = function toObject(message, options) {
|
|
13953
13924
|
if (!options)
|
|
13954
13925
|
options = {};
|
|
13955
13926
|
let object = {};
|
|
13956
|
-
if (options.
|
|
13957
|
-
object.
|
|
13927
|
+
if (options.arrays || options.defaults)
|
|
13928
|
+
object.columns = [];
|
|
13958
13929
|
if (options.defaults) {
|
|
13959
|
-
object.
|
|
13960
|
-
object.
|
|
13961
|
-
object.indexType = options.enums === String ? "IVFFLAT" : 0;
|
|
13930
|
+
object.name = "";
|
|
13931
|
+
object.unique = false;
|
|
13962
13932
|
}
|
|
13963
|
-
if (message.
|
|
13964
|
-
object.
|
|
13965
|
-
if (message.
|
|
13966
|
-
object.
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
let keys2;
|
|
13970
|
-
if (message.params && (keys2 = Object.keys(message.params)).length) {
|
|
13971
|
-
object.params = {};
|
|
13972
|
-
for (let j = 0; j < keys2.length; ++j)
|
|
13973
|
-
object.params[keys2[j]] = message.params[keys2[j]];
|
|
13933
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
13934
|
+
object.name = message.name;
|
|
13935
|
+
if (message.columns && message.columns.length) {
|
|
13936
|
+
object.columns = [];
|
|
13937
|
+
for (let j = 0; j < message.columns.length; ++j)
|
|
13938
|
+
object.columns[j] = message.columns[j];
|
|
13974
13939
|
}
|
|
13940
|
+
if (message.unique != null && message.hasOwnProperty("unique"))
|
|
13941
|
+
object.unique = message.unique;
|
|
13975
13942
|
return object;
|
|
13976
13943
|
};
|
|
13977
13944
|
|
|
13978
13945
|
/**
|
|
13979
|
-
* Converts this
|
|
13946
|
+
* Converts this Index to JSON.
|
|
13980
13947
|
* @function toJSON
|
|
13981
|
-
* @memberof sqlanvil.
|
|
13948
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13982
13949
|
* @instance
|
|
13983
13950
|
* @returns {Object.<string,*>} JSON object
|
|
13984
13951
|
*/
|
|
13985
|
-
|
|
13952
|
+
Index.prototype.toJSON = function toJSON() {
|
|
13986
13953
|
return this.constructor.toObject(this, $protobuf__namespace.util.toJSONOptions);
|
|
13987
13954
|
};
|
|
13988
13955
|
|
|
13989
13956
|
/**
|
|
13990
|
-
* Gets the default type url for
|
|
13957
|
+
* Gets the default type url for Index
|
|
13991
13958
|
* @function getTypeUrl
|
|
13992
|
-
* @memberof sqlanvil.
|
|
13959
|
+
* @memberof sqlanvil.MysqlOptions.Index
|
|
13993
13960
|
* @static
|
|
13994
13961
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
13995
13962
|
* @returns {string} The default type url
|
|
13996
13963
|
*/
|
|
13997
|
-
|
|
13964
|
+
Index.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
13998
13965
|
if (typeUrlPrefix === undefined) {
|
|
13999
13966
|
typeUrlPrefix = "type.googleapis.com";
|
|
14000
13967
|
}
|
|
14001
|
-
return typeUrlPrefix + "/sqlanvil.
|
|
13968
|
+
return typeUrlPrefix + "/sqlanvil.MysqlOptions.Index";
|
|
14002
13969
|
};
|
|
14003
13970
|
|
|
14004
|
-
|
|
14005
|
-
* IndexType enum.
|
|
14006
|
-
* @name sqlanvil.SupabaseOptions.VectorConfig.IndexType
|
|
14007
|
-
* @enum {number}
|
|
14008
|
-
* @property {number} IVFFLAT=0 IVFFLAT value
|
|
14009
|
-
* @property {number} HNSW=1 HNSW value
|
|
14010
|
-
*/
|
|
14011
|
-
VectorConfig.IndexType = (function() {
|
|
14012
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
14013
|
-
values[valuesById[0] = "IVFFLAT"] = 0;
|
|
14014
|
-
values[valuesById[1] = "HNSW"] = 1;
|
|
14015
|
-
return values;
|
|
14016
|
-
})();
|
|
14017
|
-
|
|
14018
|
-
return VectorConfig;
|
|
13971
|
+
return Index;
|
|
14019
13972
|
})();
|
|
14020
13973
|
|
|
14021
|
-
return
|
|
13974
|
+
return MysqlOptions;
|
|
14022
13975
|
})();
|
|
14023
13976
|
|
|
14024
|
-
sqlanvil.
|
|
13977
|
+
sqlanvil.SupabaseOptions = (function() {
|
|
14025
13978
|
|
|
14026
13979
|
/**
|
|
14027
|
-
* Properties of a
|
|
13980
|
+
* Properties of a SupabaseOptions.
|
|
14028
13981
|
* @memberof sqlanvil
|
|
14029
|
-
* @interface
|
|
14030
|
-
* @property {
|
|
14031
|
-
* @property {
|
|
14032
|
-
* @property {
|
|
13982
|
+
* @interface ISupabaseOptions
|
|
13983
|
+
* @property {sqlanvil.IPostgresOptions|null} [postgres] SupabaseOptions postgres
|
|
13984
|
+
* @property {boolean|null} [publishToRealtime] SupabaseOptions publishToRealtime
|
|
13985
|
+
* @property {boolean|null} [enableRls] SupabaseOptions enableRls
|
|
13986
|
+
* @property {string|null} [ownerRole] SupabaseOptions ownerRole
|
|
13987
|
+
* @property {Array.<sqlanvil.SupabaseOptions.IVectorConfig>|null} [vectors] SupabaseOptions vectors
|
|
14033
13988
|
*/
|
|
14034
13989
|
|
|
14035
13990
|
/**
|
|
14036
|
-
* Constructs a new
|
|
13991
|
+
* Constructs a new SupabaseOptions.
|
|
14037
13992
|
* @memberof sqlanvil
|
|
14038
|
-
* @classdesc Represents a
|
|
14039
|
-
* @implements
|
|
13993
|
+
* @classdesc Represents a SupabaseOptions.
|
|
13994
|
+
* @implements ISupabaseOptions
|
|
14040
13995
|
* @constructor
|
|
14041
|
-
* @param {sqlanvil.
|
|
13996
|
+
* @param {sqlanvil.ISupabaseOptions=} [properties] Properties to set
|
|
14042
13997
|
*/
|
|
14043
|
-
function
|
|
13998
|
+
function SupabaseOptions(properties) {
|
|
13999
|
+
this.vectors = [];
|
|
14044
14000
|
if (properties)
|
|
14045
14001
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14046
14002
|
if (properties[keys[i]] != null)
|
|
@@ -14048,105 +14004,136 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14048
14004
|
}
|
|
14049
14005
|
|
|
14050
14006
|
/**
|
|
14051
|
-
*
|
|
14052
|
-
* @member {
|
|
14053
|
-
* @memberof sqlanvil.
|
|
14007
|
+
* SupabaseOptions postgres.
|
|
14008
|
+
* @member {sqlanvil.IPostgresOptions|null|undefined} postgres
|
|
14009
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14054
14010
|
* @instance
|
|
14055
14011
|
*/
|
|
14056
|
-
|
|
14012
|
+
SupabaseOptions.prototype.postgres = null;
|
|
14057
14013
|
|
|
14058
14014
|
/**
|
|
14059
|
-
*
|
|
14060
|
-
* @member {
|
|
14061
|
-
* @memberof sqlanvil.
|
|
14015
|
+
* SupabaseOptions publishToRealtime.
|
|
14016
|
+
* @member {boolean} publishToRealtime
|
|
14017
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14062
14018
|
* @instance
|
|
14063
14019
|
*/
|
|
14064
|
-
|
|
14020
|
+
SupabaseOptions.prototype.publishToRealtime = false;
|
|
14065
14021
|
|
|
14066
14022
|
/**
|
|
14067
|
-
*
|
|
14068
|
-
* @member {
|
|
14069
|
-
* @memberof sqlanvil.
|
|
14023
|
+
* SupabaseOptions enableRls.
|
|
14024
|
+
* @member {boolean} enableRls
|
|
14025
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14070
14026
|
* @instance
|
|
14071
14027
|
*/
|
|
14072
|
-
|
|
14028
|
+
SupabaseOptions.prototype.enableRls = false;
|
|
14073
14029
|
|
|
14074
14030
|
/**
|
|
14075
|
-
*
|
|
14031
|
+
* SupabaseOptions ownerRole.
|
|
14032
|
+
* @member {string} ownerRole
|
|
14033
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14034
|
+
* @instance
|
|
14035
|
+
*/
|
|
14036
|
+
SupabaseOptions.prototype.ownerRole = "";
|
|
14037
|
+
|
|
14038
|
+
/**
|
|
14039
|
+
* SupabaseOptions vectors.
|
|
14040
|
+
* @member {Array.<sqlanvil.SupabaseOptions.IVectorConfig>} vectors
|
|
14041
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14042
|
+
* @instance
|
|
14043
|
+
*/
|
|
14044
|
+
SupabaseOptions.prototype.vectors = $util.emptyArray;
|
|
14045
|
+
|
|
14046
|
+
/**
|
|
14047
|
+
* Creates a new SupabaseOptions instance using the specified properties.
|
|
14076
14048
|
* @function create
|
|
14077
|
-
* @memberof sqlanvil.
|
|
14049
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14078
14050
|
* @static
|
|
14079
|
-
* @param {sqlanvil.
|
|
14080
|
-
* @returns {sqlanvil.
|
|
14051
|
+
* @param {sqlanvil.ISupabaseOptions=} [properties] Properties to set
|
|
14052
|
+
* @returns {sqlanvil.SupabaseOptions} SupabaseOptions instance
|
|
14081
14053
|
*/
|
|
14082
|
-
|
|
14083
|
-
return new
|
|
14054
|
+
SupabaseOptions.create = function create(properties) {
|
|
14055
|
+
return new SupabaseOptions(properties);
|
|
14084
14056
|
};
|
|
14085
14057
|
|
|
14086
14058
|
/**
|
|
14087
|
-
* Encodes the specified
|
|
14059
|
+
* Encodes the specified SupabaseOptions message. Does not implicitly {@link sqlanvil.SupabaseOptions.verify|verify} messages.
|
|
14088
14060
|
* @function encode
|
|
14089
|
-
* @memberof sqlanvil.
|
|
14061
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14090
14062
|
* @static
|
|
14091
|
-
* @param {sqlanvil.
|
|
14063
|
+
* @param {sqlanvil.ISupabaseOptions} message SupabaseOptions message or plain object to encode
|
|
14092
14064
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14093
14065
|
* @returns {$protobuf.Writer} Writer
|
|
14094
14066
|
*/
|
|
14095
|
-
|
|
14067
|
+
SupabaseOptions.encode = function encode(message, writer) {
|
|
14096
14068
|
if (!writer)
|
|
14097
14069
|
writer = $Writer.create();
|
|
14098
|
-
if (message.
|
|
14099
|
-
writer.uint32(/* id 1, wireType 2 =*/10).
|
|
14100
|
-
if (message.
|
|
14101
|
-
writer.uint32(/* id 2, wireType
|
|
14102
|
-
if (message.
|
|
14103
|
-
writer.uint32(/* id 3, wireType
|
|
14070
|
+
if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres"))
|
|
14071
|
+
$root.sqlanvil.PostgresOptions.encode(message.postgres, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14072
|
+
if (message.publishToRealtime != null && Object.hasOwnProperty.call(message, "publishToRealtime"))
|
|
14073
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.publishToRealtime);
|
|
14074
|
+
if (message.enableRls != null && Object.hasOwnProperty.call(message, "enableRls"))
|
|
14075
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enableRls);
|
|
14076
|
+
if (message.ownerRole != null && Object.hasOwnProperty.call(message, "ownerRole"))
|
|
14077
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.ownerRole);
|
|
14078
|
+
if (message.vectors != null && message.vectors.length)
|
|
14079
|
+
for (let i = 0; i < message.vectors.length; ++i)
|
|
14080
|
+
$root.sqlanvil.SupabaseOptions.VectorConfig.encode(message.vectors[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
14104
14081
|
return writer;
|
|
14105
14082
|
};
|
|
14106
14083
|
|
|
14107
14084
|
/**
|
|
14108
|
-
* Encodes the specified
|
|
14085
|
+
* Encodes the specified SupabaseOptions message, length delimited. Does not implicitly {@link sqlanvil.SupabaseOptions.verify|verify} messages.
|
|
14109
14086
|
* @function encodeDelimited
|
|
14110
|
-
* @memberof sqlanvil.
|
|
14087
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14111
14088
|
* @static
|
|
14112
|
-
* @param {sqlanvil.
|
|
14089
|
+
* @param {sqlanvil.ISupabaseOptions} message SupabaseOptions message or plain object to encode
|
|
14113
14090
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14114
14091
|
* @returns {$protobuf.Writer} Writer
|
|
14115
14092
|
*/
|
|
14116
|
-
|
|
14093
|
+
SupabaseOptions.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14117
14094
|
return this.encode(message, writer).ldelim();
|
|
14118
14095
|
};
|
|
14119
14096
|
|
|
14120
14097
|
/**
|
|
14121
|
-
* Decodes a
|
|
14098
|
+
* Decodes a SupabaseOptions message from the specified reader or buffer.
|
|
14122
14099
|
* @function decode
|
|
14123
|
-
* @memberof sqlanvil.
|
|
14100
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14124
14101
|
* @static
|
|
14125
14102
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14126
14103
|
* @param {number} [length] Message length if known beforehand
|
|
14127
|
-
* @returns {sqlanvil.
|
|
14104
|
+
* @returns {sqlanvil.SupabaseOptions} SupabaseOptions
|
|
14128
14105
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14129
14106
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14130
14107
|
*/
|
|
14131
|
-
|
|
14108
|
+
SupabaseOptions.decode = function decode(reader, length, error) {
|
|
14132
14109
|
if (!(reader instanceof $Reader))
|
|
14133
14110
|
reader = $Reader.create(reader);
|
|
14134
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.
|
|
14111
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.SupabaseOptions();
|
|
14135
14112
|
while (reader.pos < end) {
|
|
14136
14113
|
let tag = reader.uint32();
|
|
14137
14114
|
if (tag === error)
|
|
14138
14115
|
break;
|
|
14139
14116
|
switch (tag >>> 3) {
|
|
14140
14117
|
case 1: {
|
|
14141
|
-
message.
|
|
14118
|
+
message.postgres = $root.sqlanvil.PostgresOptions.decode(reader, reader.uint32());
|
|
14142
14119
|
break;
|
|
14143
14120
|
}
|
|
14144
14121
|
case 2: {
|
|
14145
|
-
message.
|
|
14122
|
+
message.publishToRealtime = reader.bool();
|
|
14146
14123
|
break;
|
|
14147
14124
|
}
|
|
14148
14125
|
case 3: {
|
|
14149
|
-
message.
|
|
14126
|
+
message.enableRls = reader.bool();
|
|
14127
|
+
break;
|
|
14128
|
+
}
|
|
14129
|
+
case 4: {
|
|
14130
|
+
message.ownerRole = reader.string();
|
|
14131
|
+
break;
|
|
14132
|
+
}
|
|
14133
|
+
case 5: {
|
|
14134
|
+
if (!(message.vectors && message.vectors.length))
|
|
14135
|
+
message.vectors = [];
|
|
14136
|
+
message.vectors.push($root.sqlanvil.SupabaseOptions.VectorConfig.decode(reader, reader.uint32()));
|
|
14150
14137
|
break;
|
|
14151
14138
|
}
|
|
14152
14139
|
default:
|
|
@@ -14158,127 +14145,762 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14158
14145
|
};
|
|
14159
14146
|
|
|
14160
14147
|
/**
|
|
14161
|
-
* Decodes a
|
|
14148
|
+
* Decodes a SupabaseOptions message from the specified reader or buffer, length delimited.
|
|
14162
14149
|
* @function decodeDelimited
|
|
14163
|
-
* @memberof sqlanvil.
|
|
14150
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14164
14151
|
* @static
|
|
14165
14152
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14166
|
-
* @returns {sqlanvil.
|
|
14153
|
+
* @returns {sqlanvil.SupabaseOptions} SupabaseOptions
|
|
14167
14154
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14168
14155
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14169
14156
|
*/
|
|
14170
|
-
|
|
14157
|
+
SupabaseOptions.decodeDelimited = function decodeDelimited(reader) {
|
|
14171
14158
|
if (!(reader instanceof $Reader))
|
|
14172
14159
|
reader = new $Reader(reader);
|
|
14173
14160
|
return this.decode(reader, reader.uint32());
|
|
14174
14161
|
};
|
|
14175
14162
|
|
|
14176
14163
|
/**
|
|
14177
|
-
* Verifies a
|
|
14164
|
+
* Verifies a SupabaseOptions message.
|
|
14178
14165
|
* @function verify
|
|
14179
|
-
* @memberof sqlanvil.
|
|
14166
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14180
14167
|
* @static
|
|
14181
14168
|
* @param {Object.<string,*>} message Plain object to verify
|
|
14182
14169
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14183
14170
|
*/
|
|
14184
|
-
|
|
14171
|
+
SupabaseOptions.verify = function verify(message) {
|
|
14185
14172
|
if (typeof message !== "object" || message === null)
|
|
14186
14173
|
return "object expected";
|
|
14187
|
-
if (message.
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
|
|
14174
|
+
if (message.postgres != null && message.hasOwnProperty("postgres")) {
|
|
14175
|
+
let error = $root.sqlanvil.PostgresOptions.verify(message.postgres);
|
|
14176
|
+
if (error)
|
|
14177
|
+
return "postgres." + error;
|
|
14178
|
+
}
|
|
14179
|
+
if (message.publishToRealtime != null && message.hasOwnProperty("publishToRealtime"))
|
|
14180
|
+
if (typeof message.publishToRealtime !== "boolean")
|
|
14181
|
+
return "publishToRealtime: boolean expected";
|
|
14182
|
+
if (message.enableRls != null && message.hasOwnProperty("enableRls"))
|
|
14183
|
+
if (typeof message.enableRls !== "boolean")
|
|
14184
|
+
return "enableRls: boolean expected";
|
|
14185
|
+
if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
|
|
14186
|
+
if (!$util.isString(message.ownerRole))
|
|
14187
|
+
return "ownerRole: string expected";
|
|
14188
|
+
if (message.vectors != null && message.hasOwnProperty("vectors")) {
|
|
14189
|
+
if (!Array.isArray(message.vectors))
|
|
14190
|
+
return "vectors: array expected";
|
|
14191
|
+
for (let i = 0; i < message.vectors.length; ++i) {
|
|
14192
|
+
let error = $root.sqlanvil.SupabaseOptions.VectorConfig.verify(message.vectors[i]);
|
|
14193
|
+
if (error)
|
|
14194
|
+
return "vectors." + error;
|
|
14195
|
+
}
|
|
14196
|
+
}
|
|
14196
14197
|
return null;
|
|
14197
14198
|
};
|
|
14198
14199
|
|
|
14199
14200
|
/**
|
|
14200
|
-
* Creates a
|
|
14201
|
+
* Creates a SupabaseOptions message from a plain object. Also converts values to their respective internal types.
|
|
14201
14202
|
* @function fromObject
|
|
14202
|
-
* @memberof sqlanvil.
|
|
14203
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14203
14204
|
* @static
|
|
14204
14205
|
* @param {Object.<string,*>} object Plain object
|
|
14205
|
-
* @returns {sqlanvil.
|
|
14206
|
+
* @returns {sqlanvil.SupabaseOptions} SupabaseOptions
|
|
14206
14207
|
*/
|
|
14207
|
-
|
|
14208
|
-
if (object instanceof $root.sqlanvil.
|
|
14208
|
+
SupabaseOptions.fromObject = function fromObject(object) {
|
|
14209
|
+
if (object instanceof $root.sqlanvil.SupabaseOptions)
|
|
14209
14210
|
return object;
|
|
14210
|
-
let message = new $root.sqlanvil.
|
|
14211
|
-
if (object.
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
message.
|
|
14215
|
-
|
|
14216
|
-
|
|
14211
|
+
let message = new $root.sqlanvil.SupabaseOptions();
|
|
14212
|
+
if (object.postgres != null) {
|
|
14213
|
+
if (typeof object.postgres !== "object")
|
|
14214
|
+
throw TypeError(".sqlanvil.SupabaseOptions.postgres: object expected");
|
|
14215
|
+
message.postgres = $root.sqlanvil.PostgresOptions.fromObject(object.postgres);
|
|
14216
|
+
}
|
|
14217
|
+
if (object.publishToRealtime != null)
|
|
14218
|
+
message.publishToRealtime = Boolean(object.publishToRealtime);
|
|
14219
|
+
if (object.enableRls != null)
|
|
14220
|
+
message.enableRls = Boolean(object.enableRls);
|
|
14221
|
+
if (object.ownerRole != null)
|
|
14222
|
+
message.ownerRole = String(object.ownerRole);
|
|
14223
|
+
if (object.vectors) {
|
|
14224
|
+
if (!Array.isArray(object.vectors))
|
|
14225
|
+
throw TypeError(".sqlanvil.SupabaseOptions.vectors: array expected");
|
|
14226
|
+
message.vectors = [];
|
|
14227
|
+
for (let i = 0; i < object.vectors.length; ++i) {
|
|
14228
|
+
if (typeof object.vectors[i] !== "object")
|
|
14229
|
+
throw TypeError(".sqlanvil.SupabaseOptions.vectors: object expected");
|
|
14230
|
+
message.vectors[i] = $root.sqlanvil.SupabaseOptions.VectorConfig.fromObject(object.vectors[i]);
|
|
14231
|
+
}
|
|
14232
|
+
}
|
|
14217
14233
|
return message;
|
|
14218
14234
|
};
|
|
14219
14235
|
|
|
14220
14236
|
/**
|
|
14221
|
-
* Creates a plain object from a
|
|
14237
|
+
* Creates a plain object from a SupabaseOptions message. Also converts values to other types if specified.
|
|
14222
14238
|
* @function toObject
|
|
14223
|
-
* @memberof sqlanvil.
|
|
14239
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14224
14240
|
* @static
|
|
14225
|
-
* @param {sqlanvil.
|
|
14241
|
+
* @param {sqlanvil.SupabaseOptions} message SupabaseOptions
|
|
14226
14242
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14227
14243
|
* @returns {Object.<string,*>} Plain object
|
|
14228
14244
|
*/
|
|
14229
|
-
|
|
14245
|
+
SupabaseOptions.toObject = function toObject(message, options) {
|
|
14230
14246
|
if (!options)
|
|
14231
14247
|
options = {};
|
|
14232
14248
|
let object = {};
|
|
14249
|
+
if (options.arrays || options.defaults)
|
|
14250
|
+
object.vectors = [];
|
|
14233
14251
|
if (options.defaults) {
|
|
14234
|
-
object.
|
|
14235
|
-
object.
|
|
14236
|
-
object.
|
|
14252
|
+
object.postgres = null;
|
|
14253
|
+
object.publishToRealtime = false;
|
|
14254
|
+
object.enableRls = false;
|
|
14255
|
+
object.ownerRole = "";
|
|
14256
|
+
}
|
|
14257
|
+
if (message.postgres != null && message.hasOwnProperty("postgres"))
|
|
14258
|
+
object.postgres = $root.sqlanvil.PostgresOptions.toObject(message.postgres, options);
|
|
14259
|
+
if (message.publishToRealtime != null && message.hasOwnProperty("publishToRealtime"))
|
|
14260
|
+
object.publishToRealtime = message.publishToRealtime;
|
|
14261
|
+
if (message.enableRls != null && message.hasOwnProperty("enableRls"))
|
|
14262
|
+
object.enableRls = message.enableRls;
|
|
14263
|
+
if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
|
|
14264
|
+
object.ownerRole = message.ownerRole;
|
|
14265
|
+
if (message.vectors && message.vectors.length) {
|
|
14266
|
+
object.vectors = [];
|
|
14267
|
+
for (let j = 0; j < message.vectors.length; ++j)
|
|
14268
|
+
object.vectors[j] = $root.sqlanvil.SupabaseOptions.VectorConfig.toObject(message.vectors[j], options);
|
|
14237
14269
|
}
|
|
14238
|
-
if (message.project != null && message.hasOwnProperty("project"))
|
|
14239
|
-
object.project = message.project;
|
|
14240
|
-
if (message.location != null && message.hasOwnProperty("location"))
|
|
14241
|
-
object.location = message.location;
|
|
14242
|
-
if (message.defaultDataset != null && message.hasOwnProperty("defaultDataset"))
|
|
14243
|
-
object.defaultDataset = message.defaultDataset;
|
|
14244
14270
|
return object;
|
|
14245
14271
|
};
|
|
14246
14272
|
|
|
14247
14273
|
/**
|
|
14248
|
-
* Converts this
|
|
14274
|
+
* Converts this SupabaseOptions to JSON.
|
|
14249
14275
|
* @function toJSON
|
|
14250
|
-
* @memberof sqlanvil.
|
|
14276
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14251
14277
|
* @instance
|
|
14252
14278
|
* @returns {Object.<string,*>} JSON object
|
|
14253
14279
|
*/
|
|
14254
|
-
|
|
14280
|
+
SupabaseOptions.prototype.toJSON = function toJSON() {
|
|
14255
14281
|
return this.constructor.toObject(this, $protobuf__namespace.util.toJSONOptions);
|
|
14256
14282
|
};
|
|
14257
14283
|
|
|
14258
14284
|
/**
|
|
14259
|
-
* Gets the default type url for
|
|
14285
|
+
* Gets the default type url for SupabaseOptions
|
|
14260
14286
|
* @function getTypeUrl
|
|
14261
|
-
* @memberof sqlanvil.
|
|
14287
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14262
14288
|
* @static
|
|
14263
14289
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14264
14290
|
* @returns {string} The default type url
|
|
14265
14291
|
*/
|
|
14266
|
-
|
|
14292
|
+
SupabaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14267
14293
|
if (typeUrlPrefix === undefined) {
|
|
14268
14294
|
typeUrlPrefix = "type.googleapis.com";
|
|
14269
14295
|
}
|
|
14270
|
-
return typeUrlPrefix + "/sqlanvil.
|
|
14296
|
+
return typeUrlPrefix + "/sqlanvil.SupabaseOptions";
|
|
14271
14297
|
};
|
|
14272
14298
|
|
|
14273
|
-
|
|
14274
|
-
})();
|
|
14299
|
+
SupabaseOptions.VectorConfig = (function() {
|
|
14275
14300
|
|
|
14276
|
-
|
|
14301
|
+
/**
|
|
14302
|
+
* Properties of a VectorConfig.
|
|
14303
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14304
|
+
* @interface IVectorConfig
|
|
14305
|
+
* @property {string|null} [column] VectorConfig column
|
|
14306
|
+
* @property {number|null} [dimensions] VectorConfig dimensions
|
|
14307
|
+
* @property {sqlanvil.SupabaseOptions.VectorConfig.IndexType|null} [indexType] VectorConfig indexType
|
|
14308
|
+
* @property {Object.<string,string>|null} [params] VectorConfig params
|
|
14309
|
+
*/
|
|
14277
14310
|
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14311
|
+
/**
|
|
14312
|
+
* Constructs a new VectorConfig.
|
|
14313
|
+
* @memberof sqlanvil.SupabaseOptions
|
|
14314
|
+
* @classdesc Represents a VectorConfig.
|
|
14315
|
+
* @implements IVectorConfig
|
|
14316
|
+
* @constructor
|
|
14317
|
+
* @param {sqlanvil.SupabaseOptions.IVectorConfig=} [properties] Properties to set
|
|
14318
|
+
*/
|
|
14319
|
+
function VectorConfig(properties) {
|
|
14320
|
+
this.params = {};
|
|
14321
|
+
if (properties)
|
|
14322
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14323
|
+
if (properties[keys[i]] != null)
|
|
14324
|
+
this[keys[i]] = properties[keys[i]];
|
|
14325
|
+
}
|
|
14326
|
+
|
|
14327
|
+
/**
|
|
14328
|
+
* VectorConfig column.
|
|
14329
|
+
* @member {string} column
|
|
14330
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14331
|
+
* @instance
|
|
14332
|
+
*/
|
|
14333
|
+
VectorConfig.prototype.column = "";
|
|
14334
|
+
|
|
14335
|
+
/**
|
|
14336
|
+
* VectorConfig dimensions.
|
|
14337
|
+
* @member {number} dimensions
|
|
14338
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14339
|
+
* @instance
|
|
14340
|
+
*/
|
|
14341
|
+
VectorConfig.prototype.dimensions = 0;
|
|
14342
|
+
|
|
14343
|
+
/**
|
|
14344
|
+
* VectorConfig indexType.
|
|
14345
|
+
* @member {sqlanvil.SupabaseOptions.VectorConfig.IndexType} indexType
|
|
14346
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14347
|
+
* @instance
|
|
14348
|
+
*/
|
|
14349
|
+
VectorConfig.prototype.indexType = 0;
|
|
14350
|
+
|
|
14351
|
+
/**
|
|
14352
|
+
* VectorConfig params.
|
|
14353
|
+
* @member {Object.<string,string>} params
|
|
14354
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14355
|
+
* @instance
|
|
14356
|
+
*/
|
|
14357
|
+
VectorConfig.prototype.params = $util.emptyObject;
|
|
14358
|
+
|
|
14359
|
+
/**
|
|
14360
|
+
* Creates a new VectorConfig instance using the specified properties.
|
|
14361
|
+
* @function create
|
|
14362
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14363
|
+
* @static
|
|
14364
|
+
* @param {sqlanvil.SupabaseOptions.IVectorConfig=} [properties] Properties to set
|
|
14365
|
+
* @returns {sqlanvil.SupabaseOptions.VectorConfig} VectorConfig instance
|
|
14366
|
+
*/
|
|
14367
|
+
VectorConfig.create = function create(properties) {
|
|
14368
|
+
return new VectorConfig(properties);
|
|
14369
|
+
};
|
|
14370
|
+
|
|
14371
|
+
/**
|
|
14372
|
+
* Encodes the specified VectorConfig message. Does not implicitly {@link sqlanvil.SupabaseOptions.VectorConfig.verify|verify} messages.
|
|
14373
|
+
* @function encode
|
|
14374
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14375
|
+
* @static
|
|
14376
|
+
* @param {sqlanvil.SupabaseOptions.IVectorConfig} message VectorConfig message or plain object to encode
|
|
14377
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14378
|
+
* @returns {$protobuf.Writer} Writer
|
|
14379
|
+
*/
|
|
14380
|
+
VectorConfig.encode = function encode(message, writer) {
|
|
14381
|
+
if (!writer)
|
|
14382
|
+
writer = $Writer.create();
|
|
14383
|
+
if (message.column != null && Object.hasOwnProperty.call(message, "column"))
|
|
14384
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.column);
|
|
14385
|
+
if (message.dimensions != null && Object.hasOwnProperty.call(message, "dimensions"))
|
|
14386
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dimensions);
|
|
14387
|
+
if (message.indexType != null && Object.hasOwnProperty.call(message, "indexType"))
|
|
14388
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.indexType);
|
|
14389
|
+
if (message.params != null && Object.hasOwnProperty.call(message, "params"))
|
|
14390
|
+
for (let keys = Object.keys(message.params), i = 0; i < keys.length; ++i)
|
|
14391
|
+
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim();
|
|
14392
|
+
return writer;
|
|
14393
|
+
};
|
|
14394
|
+
|
|
14395
|
+
/**
|
|
14396
|
+
* Encodes the specified VectorConfig message, length delimited. Does not implicitly {@link sqlanvil.SupabaseOptions.VectorConfig.verify|verify} messages.
|
|
14397
|
+
* @function encodeDelimited
|
|
14398
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14399
|
+
* @static
|
|
14400
|
+
* @param {sqlanvil.SupabaseOptions.IVectorConfig} message VectorConfig message or plain object to encode
|
|
14401
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14402
|
+
* @returns {$protobuf.Writer} Writer
|
|
14403
|
+
*/
|
|
14404
|
+
VectorConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14405
|
+
return this.encode(message, writer).ldelim();
|
|
14406
|
+
};
|
|
14407
|
+
|
|
14408
|
+
/**
|
|
14409
|
+
* Decodes a VectorConfig message from the specified reader or buffer.
|
|
14410
|
+
* @function decode
|
|
14411
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14412
|
+
* @static
|
|
14413
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14414
|
+
* @param {number} [length] Message length if known beforehand
|
|
14415
|
+
* @returns {sqlanvil.SupabaseOptions.VectorConfig} VectorConfig
|
|
14416
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14417
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14418
|
+
*/
|
|
14419
|
+
VectorConfig.decode = function decode(reader, length, error) {
|
|
14420
|
+
if (!(reader instanceof $Reader))
|
|
14421
|
+
reader = $Reader.create(reader);
|
|
14422
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.SupabaseOptions.VectorConfig(), key, value;
|
|
14423
|
+
while (reader.pos < end) {
|
|
14424
|
+
let tag = reader.uint32();
|
|
14425
|
+
if (tag === error)
|
|
14426
|
+
break;
|
|
14427
|
+
switch (tag >>> 3) {
|
|
14428
|
+
case 1: {
|
|
14429
|
+
message.column = reader.string();
|
|
14430
|
+
break;
|
|
14431
|
+
}
|
|
14432
|
+
case 2: {
|
|
14433
|
+
message.dimensions = reader.uint32();
|
|
14434
|
+
break;
|
|
14435
|
+
}
|
|
14436
|
+
case 3: {
|
|
14437
|
+
message.indexType = reader.int32();
|
|
14438
|
+
break;
|
|
14439
|
+
}
|
|
14440
|
+
case 4: {
|
|
14441
|
+
if (message.params === $util.emptyObject)
|
|
14442
|
+
message.params = {};
|
|
14443
|
+
let end2 = reader.uint32() + reader.pos;
|
|
14444
|
+
key = "";
|
|
14445
|
+
value = "";
|
|
14446
|
+
while (reader.pos < end2) {
|
|
14447
|
+
let tag2 = reader.uint32();
|
|
14448
|
+
switch (tag2 >>> 3) {
|
|
14449
|
+
case 1:
|
|
14450
|
+
key = reader.string();
|
|
14451
|
+
break;
|
|
14452
|
+
case 2:
|
|
14453
|
+
value = reader.string();
|
|
14454
|
+
break;
|
|
14455
|
+
default:
|
|
14456
|
+
reader.skipType(tag2 & 7);
|
|
14457
|
+
break;
|
|
14458
|
+
}
|
|
14459
|
+
}
|
|
14460
|
+
message.params[key] = value;
|
|
14461
|
+
break;
|
|
14462
|
+
}
|
|
14463
|
+
default:
|
|
14464
|
+
reader.skipType(tag & 7);
|
|
14465
|
+
break;
|
|
14466
|
+
}
|
|
14467
|
+
}
|
|
14468
|
+
return message;
|
|
14469
|
+
};
|
|
14470
|
+
|
|
14471
|
+
/**
|
|
14472
|
+
* Decodes a VectorConfig message from the specified reader or buffer, length delimited.
|
|
14473
|
+
* @function decodeDelimited
|
|
14474
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14475
|
+
* @static
|
|
14476
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14477
|
+
* @returns {sqlanvil.SupabaseOptions.VectorConfig} VectorConfig
|
|
14478
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14479
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14480
|
+
*/
|
|
14481
|
+
VectorConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
14482
|
+
if (!(reader instanceof $Reader))
|
|
14483
|
+
reader = new $Reader(reader);
|
|
14484
|
+
return this.decode(reader, reader.uint32());
|
|
14485
|
+
};
|
|
14486
|
+
|
|
14487
|
+
/**
|
|
14488
|
+
* Verifies a VectorConfig message.
|
|
14489
|
+
* @function verify
|
|
14490
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14491
|
+
* @static
|
|
14492
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14493
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14494
|
+
*/
|
|
14495
|
+
VectorConfig.verify = function verify(message) {
|
|
14496
|
+
if (typeof message !== "object" || message === null)
|
|
14497
|
+
return "object expected";
|
|
14498
|
+
if (message.column != null && message.hasOwnProperty("column"))
|
|
14499
|
+
if (!$util.isString(message.column))
|
|
14500
|
+
return "column: string expected";
|
|
14501
|
+
if (message.dimensions != null && message.hasOwnProperty("dimensions"))
|
|
14502
|
+
if (!$util.isInteger(message.dimensions))
|
|
14503
|
+
return "dimensions: integer expected";
|
|
14504
|
+
if (message.indexType != null && message.hasOwnProperty("indexType"))
|
|
14505
|
+
switch (message.indexType) {
|
|
14506
|
+
default:
|
|
14507
|
+
return "indexType: enum value expected";
|
|
14508
|
+
case 0:
|
|
14509
|
+
case 1:
|
|
14510
|
+
break;
|
|
14511
|
+
}
|
|
14512
|
+
if (message.params != null && message.hasOwnProperty("params")) {
|
|
14513
|
+
if (!$util.isObject(message.params))
|
|
14514
|
+
return "params: object expected";
|
|
14515
|
+
let key = Object.keys(message.params);
|
|
14516
|
+
for (let i = 0; i < key.length; ++i)
|
|
14517
|
+
if (!$util.isString(message.params[key[i]]))
|
|
14518
|
+
return "params: string{k:string} expected";
|
|
14519
|
+
}
|
|
14520
|
+
return null;
|
|
14521
|
+
};
|
|
14522
|
+
|
|
14523
|
+
/**
|
|
14524
|
+
* Creates a VectorConfig message from a plain object. Also converts values to their respective internal types.
|
|
14525
|
+
* @function fromObject
|
|
14526
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14527
|
+
* @static
|
|
14528
|
+
* @param {Object.<string,*>} object Plain object
|
|
14529
|
+
* @returns {sqlanvil.SupabaseOptions.VectorConfig} VectorConfig
|
|
14530
|
+
*/
|
|
14531
|
+
VectorConfig.fromObject = function fromObject(object) {
|
|
14532
|
+
if (object instanceof $root.sqlanvil.SupabaseOptions.VectorConfig)
|
|
14533
|
+
return object;
|
|
14534
|
+
let message = new $root.sqlanvil.SupabaseOptions.VectorConfig();
|
|
14535
|
+
if (object.column != null)
|
|
14536
|
+
message.column = String(object.column);
|
|
14537
|
+
if (object.dimensions != null)
|
|
14538
|
+
message.dimensions = object.dimensions >>> 0;
|
|
14539
|
+
switch (object.indexType) {
|
|
14540
|
+
default:
|
|
14541
|
+
if (typeof object.indexType === "number") {
|
|
14542
|
+
message.indexType = object.indexType;
|
|
14543
|
+
break;
|
|
14544
|
+
}
|
|
14545
|
+
break;
|
|
14546
|
+
case "IVFFLAT":
|
|
14547
|
+
case 0:
|
|
14548
|
+
message.indexType = 0;
|
|
14549
|
+
break;
|
|
14550
|
+
case "HNSW":
|
|
14551
|
+
case 1:
|
|
14552
|
+
message.indexType = 1;
|
|
14553
|
+
break;
|
|
14554
|
+
}
|
|
14555
|
+
if (object.params) {
|
|
14556
|
+
if (typeof object.params !== "object")
|
|
14557
|
+
throw TypeError(".sqlanvil.SupabaseOptions.VectorConfig.params: object expected");
|
|
14558
|
+
message.params = {};
|
|
14559
|
+
for (let keys = Object.keys(object.params), i = 0; i < keys.length; ++i)
|
|
14560
|
+
message.params[keys[i]] = String(object.params[keys[i]]);
|
|
14561
|
+
}
|
|
14562
|
+
return message;
|
|
14563
|
+
};
|
|
14564
|
+
|
|
14565
|
+
/**
|
|
14566
|
+
* Creates a plain object from a VectorConfig message. Also converts values to other types if specified.
|
|
14567
|
+
* @function toObject
|
|
14568
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14569
|
+
* @static
|
|
14570
|
+
* @param {sqlanvil.SupabaseOptions.VectorConfig} message VectorConfig
|
|
14571
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14572
|
+
* @returns {Object.<string,*>} Plain object
|
|
14573
|
+
*/
|
|
14574
|
+
VectorConfig.toObject = function toObject(message, options) {
|
|
14575
|
+
if (!options)
|
|
14576
|
+
options = {};
|
|
14577
|
+
let object = {};
|
|
14578
|
+
if (options.objects || options.defaults)
|
|
14579
|
+
object.params = {};
|
|
14580
|
+
if (options.defaults) {
|
|
14581
|
+
object.column = "";
|
|
14582
|
+
object.dimensions = 0;
|
|
14583
|
+
object.indexType = options.enums === String ? "IVFFLAT" : 0;
|
|
14584
|
+
}
|
|
14585
|
+
if (message.column != null && message.hasOwnProperty("column"))
|
|
14586
|
+
object.column = message.column;
|
|
14587
|
+
if (message.dimensions != null && message.hasOwnProperty("dimensions"))
|
|
14588
|
+
object.dimensions = message.dimensions;
|
|
14589
|
+
if (message.indexType != null && message.hasOwnProperty("indexType"))
|
|
14590
|
+
object.indexType = options.enums === String ? $root.sqlanvil.SupabaseOptions.VectorConfig.IndexType[message.indexType] === undefined ? message.indexType : $root.sqlanvil.SupabaseOptions.VectorConfig.IndexType[message.indexType] : message.indexType;
|
|
14591
|
+
let keys2;
|
|
14592
|
+
if (message.params && (keys2 = Object.keys(message.params)).length) {
|
|
14593
|
+
object.params = {};
|
|
14594
|
+
for (let j = 0; j < keys2.length; ++j)
|
|
14595
|
+
object.params[keys2[j]] = message.params[keys2[j]];
|
|
14596
|
+
}
|
|
14597
|
+
return object;
|
|
14598
|
+
};
|
|
14599
|
+
|
|
14600
|
+
/**
|
|
14601
|
+
* Converts this VectorConfig to JSON.
|
|
14602
|
+
* @function toJSON
|
|
14603
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14604
|
+
* @instance
|
|
14605
|
+
* @returns {Object.<string,*>} JSON object
|
|
14606
|
+
*/
|
|
14607
|
+
VectorConfig.prototype.toJSON = function toJSON() {
|
|
14608
|
+
return this.constructor.toObject(this, $protobuf__namespace.util.toJSONOptions);
|
|
14609
|
+
};
|
|
14610
|
+
|
|
14611
|
+
/**
|
|
14612
|
+
* Gets the default type url for VectorConfig
|
|
14613
|
+
* @function getTypeUrl
|
|
14614
|
+
* @memberof sqlanvil.SupabaseOptions.VectorConfig
|
|
14615
|
+
* @static
|
|
14616
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14617
|
+
* @returns {string} The default type url
|
|
14618
|
+
*/
|
|
14619
|
+
VectorConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14620
|
+
if (typeUrlPrefix === undefined) {
|
|
14621
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
14622
|
+
}
|
|
14623
|
+
return typeUrlPrefix + "/sqlanvil.SupabaseOptions.VectorConfig";
|
|
14624
|
+
};
|
|
14625
|
+
|
|
14626
|
+
/**
|
|
14627
|
+
* IndexType enum.
|
|
14628
|
+
* @name sqlanvil.SupabaseOptions.VectorConfig.IndexType
|
|
14629
|
+
* @enum {number}
|
|
14630
|
+
* @property {number} IVFFLAT=0 IVFFLAT value
|
|
14631
|
+
* @property {number} HNSW=1 HNSW value
|
|
14632
|
+
*/
|
|
14633
|
+
VectorConfig.IndexType = (function() {
|
|
14634
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
14635
|
+
values[valuesById[0] = "IVFFLAT"] = 0;
|
|
14636
|
+
values[valuesById[1] = "HNSW"] = 1;
|
|
14637
|
+
return values;
|
|
14638
|
+
})();
|
|
14639
|
+
|
|
14640
|
+
return VectorConfig;
|
|
14641
|
+
})();
|
|
14642
|
+
|
|
14643
|
+
return SupabaseOptions;
|
|
14644
|
+
})();
|
|
14645
|
+
|
|
14646
|
+
sqlanvil.BigQueryConnection = (function() {
|
|
14647
|
+
|
|
14648
|
+
/**
|
|
14649
|
+
* Properties of a BigQueryConnection.
|
|
14650
|
+
* @memberof sqlanvil
|
|
14651
|
+
* @interface IBigQueryConnection
|
|
14652
|
+
* @property {string|null} [project] BigQueryConnection project
|
|
14653
|
+
* @property {string|null} [location] BigQueryConnection location
|
|
14654
|
+
* @property {string|null} [defaultDataset] BigQueryConnection defaultDataset
|
|
14655
|
+
*/
|
|
14656
|
+
|
|
14657
|
+
/**
|
|
14658
|
+
* Constructs a new BigQueryConnection.
|
|
14659
|
+
* @memberof sqlanvil
|
|
14660
|
+
* @classdesc Represents a BigQueryConnection.
|
|
14661
|
+
* @implements IBigQueryConnection
|
|
14662
|
+
* @constructor
|
|
14663
|
+
* @param {sqlanvil.IBigQueryConnection=} [properties] Properties to set
|
|
14664
|
+
*/
|
|
14665
|
+
function BigQueryConnection(properties) {
|
|
14666
|
+
if (properties)
|
|
14667
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14668
|
+
if (properties[keys[i]] != null)
|
|
14669
|
+
this[keys[i]] = properties[keys[i]];
|
|
14670
|
+
}
|
|
14671
|
+
|
|
14672
|
+
/**
|
|
14673
|
+
* BigQueryConnection project.
|
|
14674
|
+
* @member {string} project
|
|
14675
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14676
|
+
* @instance
|
|
14677
|
+
*/
|
|
14678
|
+
BigQueryConnection.prototype.project = "";
|
|
14679
|
+
|
|
14680
|
+
/**
|
|
14681
|
+
* BigQueryConnection location.
|
|
14682
|
+
* @member {string} location
|
|
14683
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14684
|
+
* @instance
|
|
14685
|
+
*/
|
|
14686
|
+
BigQueryConnection.prototype.location = "";
|
|
14687
|
+
|
|
14688
|
+
/**
|
|
14689
|
+
* BigQueryConnection defaultDataset.
|
|
14690
|
+
* @member {string} defaultDataset
|
|
14691
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14692
|
+
* @instance
|
|
14693
|
+
*/
|
|
14694
|
+
BigQueryConnection.prototype.defaultDataset = "";
|
|
14695
|
+
|
|
14696
|
+
/**
|
|
14697
|
+
* Creates a new BigQueryConnection instance using the specified properties.
|
|
14698
|
+
* @function create
|
|
14699
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14700
|
+
* @static
|
|
14701
|
+
* @param {sqlanvil.IBigQueryConnection=} [properties] Properties to set
|
|
14702
|
+
* @returns {sqlanvil.BigQueryConnection} BigQueryConnection instance
|
|
14703
|
+
*/
|
|
14704
|
+
BigQueryConnection.create = function create(properties) {
|
|
14705
|
+
return new BigQueryConnection(properties);
|
|
14706
|
+
};
|
|
14707
|
+
|
|
14708
|
+
/**
|
|
14709
|
+
* Encodes the specified BigQueryConnection message. Does not implicitly {@link sqlanvil.BigQueryConnection.verify|verify} messages.
|
|
14710
|
+
* @function encode
|
|
14711
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14712
|
+
* @static
|
|
14713
|
+
* @param {sqlanvil.IBigQueryConnection} message BigQueryConnection message or plain object to encode
|
|
14714
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14715
|
+
* @returns {$protobuf.Writer} Writer
|
|
14716
|
+
*/
|
|
14717
|
+
BigQueryConnection.encode = function encode(message, writer) {
|
|
14718
|
+
if (!writer)
|
|
14719
|
+
writer = $Writer.create();
|
|
14720
|
+
if (message.project != null && Object.hasOwnProperty.call(message, "project"))
|
|
14721
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.project);
|
|
14722
|
+
if (message.location != null && Object.hasOwnProperty.call(message, "location"))
|
|
14723
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.location);
|
|
14724
|
+
if (message.defaultDataset != null && Object.hasOwnProperty.call(message, "defaultDataset"))
|
|
14725
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultDataset);
|
|
14726
|
+
return writer;
|
|
14727
|
+
};
|
|
14728
|
+
|
|
14729
|
+
/**
|
|
14730
|
+
* Encodes the specified BigQueryConnection message, length delimited. Does not implicitly {@link sqlanvil.BigQueryConnection.verify|verify} messages.
|
|
14731
|
+
* @function encodeDelimited
|
|
14732
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14733
|
+
* @static
|
|
14734
|
+
* @param {sqlanvil.IBigQueryConnection} message BigQueryConnection message or plain object to encode
|
|
14735
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14736
|
+
* @returns {$protobuf.Writer} Writer
|
|
14737
|
+
*/
|
|
14738
|
+
BigQueryConnection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14739
|
+
return this.encode(message, writer).ldelim();
|
|
14740
|
+
};
|
|
14741
|
+
|
|
14742
|
+
/**
|
|
14743
|
+
* Decodes a BigQueryConnection message from the specified reader or buffer.
|
|
14744
|
+
* @function decode
|
|
14745
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14746
|
+
* @static
|
|
14747
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14748
|
+
* @param {number} [length] Message length if known beforehand
|
|
14749
|
+
* @returns {sqlanvil.BigQueryConnection} BigQueryConnection
|
|
14750
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14751
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14752
|
+
*/
|
|
14753
|
+
BigQueryConnection.decode = function decode(reader, length, error) {
|
|
14754
|
+
if (!(reader instanceof $Reader))
|
|
14755
|
+
reader = $Reader.create(reader);
|
|
14756
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.BigQueryConnection();
|
|
14757
|
+
while (reader.pos < end) {
|
|
14758
|
+
let tag = reader.uint32();
|
|
14759
|
+
if (tag === error)
|
|
14760
|
+
break;
|
|
14761
|
+
switch (tag >>> 3) {
|
|
14762
|
+
case 1: {
|
|
14763
|
+
message.project = reader.string();
|
|
14764
|
+
break;
|
|
14765
|
+
}
|
|
14766
|
+
case 2: {
|
|
14767
|
+
message.location = reader.string();
|
|
14768
|
+
break;
|
|
14769
|
+
}
|
|
14770
|
+
case 3: {
|
|
14771
|
+
message.defaultDataset = reader.string();
|
|
14772
|
+
break;
|
|
14773
|
+
}
|
|
14774
|
+
default:
|
|
14775
|
+
reader.skipType(tag & 7);
|
|
14776
|
+
break;
|
|
14777
|
+
}
|
|
14778
|
+
}
|
|
14779
|
+
return message;
|
|
14780
|
+
};
|
|
14781
|
+
|
|
14782
|
+
/**
|
|
14783
|
+
* Decodes a BigQueryConnection message from the specified reader or buffer, length delimited.
|
|
14784
|
+
* @function decodeDelimited
|
|
14785
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14786
|
+
* @static
|
|
14787
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14788
|
+
* @returns {sqlanvil.BigQueryConnection} BigQueryConnection
|
|
14789
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14790
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14791
|
+
*/
|
|
14792
|
+
BigQueryConnection.decodeDelimited = function decodeDelimited(reader) {
|
|
14793
|
+
if (!(reader instanceof $Reader))
|
|
14794
|
+
reader = new $Reader(reader);
|
|
14795
|
+
return this.decode(reader, reader.uint32());
|
|
14796
|
+
};
|
|
14797
|
+
|
|
14798
|
+
/**
|
|
14799
|
+
* Verifies a BigQueryConnection message.
|
|
14800
|
+
* @function verify
|
|
14801
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14802
|
+
* @static
|
|
14803
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14804
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14805
|
+
*/
|
|
14806
|
+
BigQueryConnection.verify = function verify(message) {
|
|
14807
|
+
if (typeof message !== "object" || message === null)
|
|
14808
|
+
return "object expected";
|
|
14809
|
+
if (message.project != null && message.hasOwnProperty("project"))
|
|
14810
|
+
if (!$util.isString(message.project))
|
|
14811
|
+
return "project: string expected";
|
|
14812
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
14813
|
+
if (!$util.isString(message.location))
|
|
14814
|
+
return "location: string expected";
|
|
14815
|
+
if (message.defaultDataset != null && message.hasOwnProperty("defaultDataset"))
|
|
14816
|
+
if (!$util.isString(message.defaultDataset))
|
|
14817
|
+
return "defaultDataset: string expected";
|
|
14818
|
+
return null;
|
|
14819
|
+
};
|
|
14820
|
+
|
|
14821
|
+
/**
|
|
14822
|
+
* Creates a BigQueryConnection message from a plain object. Also converts values to their respective internal types.
|
|
14823
|
+
* @function fromObject
|
|
14824
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14825
|
+
* @static
|
|
14826
|
+
* @param {Object.<string,*>} object Plain object
|
|
14827
|
+
* @returns {sqlanvil.BigQueryConnection} BigQueryConnection
|
|
14828
|
+
*/
|
|
14829
|
+
BigQueryConnection.fromObject = function fromObject(object) {
|
|
14830
|
+
if (object instanceof $root.sqlanvil.BigQueryConnection)
|
|
14831
|
+
return object;
|
|
14832
|
+
let message = new $root.sqlanvil.BigQueryConnection();
|
|
14833
|
+
if (object.project != null)
|
|
14834
|
+
message.project = String(object.project);
|
|
14835
|
+
if (object.location != null)
|
|
14836
|
+
message.location = String(object.location);
|
|
14837
|
+
if (object.defaultDataset != null)
|
|
14838
|
+
message.defaultDataset = String(object.defaultDataset);
|
|
14839
|
+
return message;
|
|
14840
|
+
};
|
|
14841
|
+
|
|
14842
|
+
/**
|
|
14843
|
+
* Creates a plain object from a BigQueryConnection message. Also converts values to other types if specified.
|
|
14844
|
+
* @function toObject
|
|
14845
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14846
|
+
* @static
|
|
14847
|
+
* @param {sqlanvil.BigQueryConnection} message BigQueryConnection
|
|
14848
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14849
|
+
* @returns {Object.<string,*>} Plain object
|
|
14850
|
+
*/
|
|
14851
|
+
BigQueryConnection.toObject = function toObject(message, options) {
|
|
14852
|
+
if (!options)
|
|
14853
|
+
options = {};
|
|
14854
|
+
let object = {};
|
|
14855
|
+
if (options.defaults) {
|
|
14856
|
+
object.project = "";
|
|
14857
|
+
object.location = "";
|
|
14858
|
+
object.defaultDataset = "";
|
|
14859
|
+
}
|
|
14860
|
+
if (message.project != null && message.hasOwnProperty("project"))
|
|
14861
|
+
object.project = message.project;
|
|
14862
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
14863
|
+
object.location = message.location;
|
|
14864
|
+
if (message.defaultDataset != null && message.hasOwnProperty("defaultDataset"))
|
|
14865
|
+
object.defaultDataset = message.defaultDataset;
|
|
14866
|
+
return object;
|
|
14867
|
+
};
|
|
14868
|
+
|
|
14869
|
+
/**
|
|
14870
|
+
* Converts this BigQueryConnection to JSON.
|
|
14871
|
+
* @function toJSON
|
|
14872
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14873
|
+
* @instance
|
|
14874
|
+
* @returns {Object.<string,*>} JSON object
|
|
14875
|
+
*/
|
|
14876
|
+
BigQueryConnection.prototype.toJSON = function toJSON() {
|
|
14877
|
+
return this.constructor.toObject(this, $protobuf__namespace.util.toJSONOptions);
|
|
14878
|
+
};
|
|
14879
|
+
|
|
14880
|
+
/**
|
|
14881
|
+
* Gets the default type url for BigQueryConnection
|
|
14882
|
+
* @function getTypeUrl
|
|
14883
|
+
* @memberof sqlanvil.BigQueryConnection
|
|
14884
|
+
* @static
|
|
14885
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14886
|
+
* @returns {string} The default type url
|
|
14887
|
+
*/
|
|
14888
|
+
BigQueryConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14889
|
+
if (typeUrlPrefix === undefined) {
|
|
14890
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
14891
|
+
}
|
|
14892
|
+
return typeUrlPrefix + "/sqlanvil.BigQueryConnection";
|
|
14893
|
+
};
|
|
14894
|
+
|
|
14895
|
+
return BigQueryConnection;
|
|
14896
|
+
})();
|
|
14897
|
+
|
|
14898
|
+
sqlanvil.PostgresConnection = (function() {
|
|
14899
|
+
|
|
14900
|
+
/**
|
|
14901
|
+
* Properties of a PostgresConnection.
|
|
14902
|
+
* @memberof sqlanvil
|
|
14903
|
+
* @interface IPostgresConnection
|
|
14282
14904
|
* @property {string|null} [host] PostgresConnection host
|
|
14283
14905
|
* @property {number|null} [port] PostgresConnection port
|
|
14284
14906
|
* @property {string|null} [database] PostgresConnection database
|
|
@@ -14289,14 +14911,355 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14289
14911
|
*/
|
|
14290
14912
|
|
|
14291
14913
|
/**
|
|
14292
|
-
* Constructs a new PostgresConnection.
|
|
14914
|
+
* Constructs a new PostgresConnection.
|
|
14915
|
+
* @memberof sqlanvil
|
|
14916
|
+
* @classdesc Represents a PostgresConnection.
|
|
14917
|
+
* @implements IPostgresConnection
|
|
14918
|
+
* @constructor
|
|
14919
|
+
* @param {sqlanvil.IPostgresConnection=} [properties] Properties to set
|
|
14920
|
+
*/
|
|
14921
|
+
function PostgresConnection(properties) {
|
|
14922
|
+
if (properties)
|
|
14923
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14924
|
+
if (properties[keys[i]] != null)
|
|
14925
|
+
this[keys[i]] = properties[keys[i]];
|
|
14926
|
+
}
|
|
14927
|
+
|
|
14928
|
+
/**
|
|
14929
|
+
* PostgresConnection host.
|
|
14930
|
+
* @member {string} host
|
|
14931
|
+
* @memberof sqlanvil.PostgresConnection
|
|
14932
|
+
* @instance
|
|
14933
|
+
*/
|
|
14934
|
+
PostgresConnection.prototype.host = "";
|
|
14935
|
+
|
|
14936
|
+
/**
|
|
14937
|
+
* PostgresConnection port.
|
|
14938
|
+
* @member {number} port
|
|
14939
|
+
* @memberof sqlanvil.PostgresConnection
|
|
14940
|
+
* @instance
|
|
14941
|
+
*/
|
|
14942
|
+
PostgresConnection.prototype.port = 0;
|
|
14943
|
+
|
|
14944
|
+
/**
|
|
14945
|
+
* PostgresConnection database.
|
|
14946
|
+
* @member {string} database
|
|
14947
|
+
* @memberof sqlanvil.PostgresConnection
|
|
14948
|
+
* @instance
|
|
14949
|
+
*/
|
|
14950
|
+
PostgresConnection.prototype.database = "";
|
|
14951
|
+
|
|
14952
|
+
/**
|
|
14953
|
+
* PostgresConnection user.
|
|
14954
|
+
* @member {string} user
|
|
14955
|
+
* @memberof sqlanvil.PostgresConnection
|
|
14956
|
+
* @instance
|
|
14957
|
+
*/
|
|
14958
|
+
PostgresConnection.prototype.user = "";
|
|
14959
|
+
|
|
14960
|
+
/**
|
|
14961
|
+
* PostgresConnection password.
|
|
14962
|
+
* @member {string} password
|
|
14963
|
+
* @memberof sqlanvil.PostgresConnection
|
|
14964
|
+
* @instance
|
|
14965
|
+
*/
|
|
14966
|
+
PostgresConnection.prototype.password = "";
|
|
14967
|
+
|
|
14968
|
+
/**
|
|
14969
|
+
* PostgresConnection sslMode.
|
|
14970
|
+
* @member {string} sslMode
|
|
14971
|
+
* @memberof sqlanvil.PostgresConnection
|
|
14972
|
+
* @instance
|
|
14973
|
+
*/
|
|
14974
|
+
PostgresConnection.prototype.sslMode = "";
|
|
14975
|
+
|
|
14976
|
+
/**
|
|
14977
|
+
* PostgresConnection defaultSchema.
|
|
14978
|
+
* @member {string} defaultSchema
|
|
14979
|
+
* @memberof sqlanvil.PostgresConnection
|
|
14980
|
+
* @instance
|
|
14981
|
+
*/
|
|
14982
|
+
PostgresConnection.prototype.defaultSchema = "";
|
|
14983
|
+
|
|
14984
|
+
/**
|
|
14985
|
+
* Creates a new PostgresConnection instance using the specified properties.
|
|
14986
|
+
* @function create
|
|
14987
|
+
* @memberof sqlanvil.PostgresConnection
|
|
14988
|
+
* @static
|
|
14989
|
+
* @param {sqlanvil.IPostgresConnection=} [properties] Properties to set
|
|
14990
|
+
* @returns {sqlanvil.PostgresConnection} PostgresConnection instance
|
|
14991
|
+
*/
|
|
14992
|
+
PostgresConnection.create = function create(properties) {
|
|
14993
|
+
return new PostgresConnection(properties);
|
|
14994
|
+
};
|
|
14995
|
+
|
|
14996
|
+
/**
|
|
14997
|
+
* Encodes the specified PostgresConnection message. Does not implicitly {@link sqlanvil.PostgresConnection.verify|verify} messages.
|
|
14998
|
+
* @function encode
|
|
14999
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15000
|
+
* @static
|
|
15001
|
+
* @param {sqlanvil.IPostgresConnection} message PostgresConnection message or plain object to encode
|
|
15002
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15003
|
+
* @returns {$protobuf.Writer} Writer
|
|
15004
|
+
*/
|
|
15005
|
+
PostgresConnection.encode = function encode(message, writer) {
|
|
15006
|
+
if (!writer)
|
|
15007
|
+
writer = $Writer.create();
|
|
15008
|
+
if (message.host != null && Object.hasOwnProperty.call(message, "host"))
|
|
15009
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.host);
|
|
15010
|
+
if (message.port != null && Object.hasOwnProperty.call(message, "port"))
|
|
15011
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.port);
|
|
15012
|
+
if (message.database != null && Object.hasOwnProperty.call(message, "database"))
|
|
15013
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.database);
|
|
15014
|
+
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
15015
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.user);
|
|
15016
|
+
if (message.password != null && Object.hasOwnProperty.call(message, "password"))
|
|
15017
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.password);
|
|
15018
|
+
if (message.sslMode != null && Object.hasOwnProperty.call(message, "sslMode"))
|
|
15019
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.sslMode);
|
|
15020
|
+
if (message.defaultSchema != null && Object.hasOwnProperty.call(message, "defaultSchema"))
|
|
15021
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultSchema);
|
|
15022
|
+
return writer;
|
|
15023
|
+
};
|
|
15024
|
+
|
|
15025
|
+
/**
|
|
15026
|
+
* Encodes the specified PostgresConnection message, length delimited. Does not implicitly {@link sqlanvil.PostgresConnection.verify|verify} messages.
|
|
15027
|
+
* @function encodeDelimited
|
|
15028
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15029
|
+
* @static
|
|
15030
|
+
* @param {sqlanvil.IPostgresConnection} message PostgresConnection message or plain object to encode
|
|
15031
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15032
|
+
* @returns {$protobuf.Writer} Writer
|
|
15033
|
+
*/
|
|
15034
|
+
PostgresConnection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15035
|
+
return this.encode(message, writer).ldelim();
|
|
15036
|
+
};
|
|
15037
|
+
|
|
15038
|
+
/**
|
|
15039
|
+
* Decodes a PostgresConnection message from the specified reader or buffer.
|
|
15040
|
+
* @function decode
|
|
15041
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15042
|
+
* @static
|
|
15043
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15044
|
+
* @param {number} [length] Message length if known beforehand
|
|
15045
|
+
* @returns {sqlanvil.PostgresConnection} PostgresConnection
|
|
15046
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15047
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15048
|
+
*/
|
|
15049
|
+
PostgresConnection.decode = function decode(reader, length, error) {
|
|
15050
|
+
if (!(reader instanceof $Reader))
|
|
15051
|
+
reader = $Reader.create(reader);
|
|
15052
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.PostgresConnection();
|
|
15053
|
+
while (reader.pos < end) {
|
|
15054
|
+
let tag = reader.uint32();
|
|
15055
|
+
if (tag === error)
|
|
15056
|
+
break;
|
|
15057
|
+
switch (tag >>> 3) {
|
|
15058
|
+
case 1: {
|
|
15059
|
+
message.host = reader.string();
|
|
15060
|
+
break;
|
|
15061
|
+
}
|
|
15062
|
+
case 2: {
|
|
15063
|
+
message.port = reader.uint32();
|
|
15064
|
+
break;
|
|
15065
|
+
}
|
|
15066
|
+
case 3: {
|
|
15067
|
+
message.database = reader.string();
|
|
15068
|
+
break;
|
|
15069
|
+
}
|
|
15070
|
+
case 4: {
|
|
15071
|
+
message.user = reader.string();
|
|
15072
|
+
break;
|
|
15073
|
+
}
|
|
15074
|
+
case 5: {
|
|
15075
|
+
message.password = reader.string();
|
|
15076
|
+
break;
|
|
15077
|
+
}
|
|
15078
|
+
case 6: {
|
|
15079
|
+
message.sslMode = reader.string();
|
|
15080
|
+
break;
|
|
15081
|
+
}
|
|
15082
|
+
case 7: {
|
|
15083
|
+
message.defaultSchema = reader.string();
|
|
15084
|
+
break;
|
|
15085
|
+
}
|
|
15086
|
+
default:
|
|
15087
|
+
reader.skipType(tag & 7);
|
|
15088
|
+
break;
|
|
15089
|
+
}
|
|
15090
|
+
}
|
|
15091
|
+
return message;
|
|
15092
|
+
};
|
|
15093
|
+
|
|
15094
|
+
/**
|
|
15095
|
+
* Decodes a PostgresConnection message from the specified reader or buffer, length delimited.
|
|
15096
|
+
* @function decodeDelimited
|
|
15097
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15098
|
+
* @static
|
|
15099
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15100
|
+
* @returns {sqlanvil.PostgresConnection} PostgresConnection
|
|
15101
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15102
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15103
|
+
*/
|
|
15104
|
+
PostgresConnection.decodeDelimited = function decodeDelimited(reader) {
|
|
15105
|
+
if (!(reader instanceof $Reader))
|
|
15106
|
+
reader = new $Reader(reader);
|
|
15107
|
+
return this.decode(reader, reader.uint32());
|
|
15108
|
+
};
|
|
15109
|
+
|
|
15110
|
+
/**
|
|
15111
|
+
* Verifies a PostgresConnection message.
|
|
15112
|
+
* @function verify
|
|
15113
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15114
|
+
* @static
|
|
15115
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15116
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15117
|
+
*/
|
|
15118
|
+
PostgresConnection.verify = function verify(message) {
|
|
15119
|
+
if (typeof message !== "object" || message === null)
|
|
15120
|
+
return "object expected";
|
|
15121
|
+
if (message.host != null && message.hasOwnProperty("host"))
|
|
15122
|
+
if (!$util.isString(message.host))
|
|
15123
|
+
return "host: string expected";
|
|
15124
|
+
if (message.port != null && message.hasOwnProperty("port"))
|
|
15125
|
+
if (!$util.isInteger(message.port))
|
|
15126
|
+
return "port: integer expected";
|
|
15127
|
+
if (message.database != null && message.hasOwnProperty("database"))
|
|
15128
|
+
if (!$util.isString(message.database))
|
|
15129
|
+
return "database: string expected";
|
|
15130
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
15131
|
+
if (!$util.isString(message.user))
|
|
15132
|
+
return "user: string expected";
|
|
15133
|
+
if (message.password != null && message.hasOwnProperty("password"))
|
|
15134
|
+
if (!$util.isString(message.password))
|
|
15135
|
+
return "password: string expected";
|
|
15136
|
+
if (message.sslMode != null && message.hasOwnProperty("sslMode"))
|
|
15137
|
+
if (!$util.isString(message.sslMode))
|
|
15138
|
+
return "sslMode: string expected";
|
|
15139
|
+
if (message.defaultSchema != null && message.hasOwnProperty("defaultSchema"))
|
|
15140
|
+
if (!$util.isString(message.defaultSchema))
|
|
15141
|
+
return "defaultSchema: string expected";
|
|
15142
|
+
return null;
|
|
15143
|
+
};
|
|
15144
|
+
|
|
15145
|
+
/**
|
|
15146
|
+
* Creates a PostgresConnection message from a plain object. Also converts values to their respective internal types.
|
|
15147
|
+
* @function fromObject
|
|
15148
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15149
|
+
* @static
|
|
15150
|
+
* @param {Object.<string,*>} object Plain object
|
|
15151
|
+
* @returns {sqlanvil.PostgresConnection} PostgresConnection
|
|
15152
|
+
*/
|
|
15153
|
+
PostgresConnection.fromObject = function fromObject(object) {
|
|
15154
|
+
if (object instanceof $root.sqlanvil.PostgresConnection)
|
|
15155
|
+
return object;
|
|
15156
|
+
let message = new $root.sqlanvil.PostgresConnection();
|
|
15157
|
+
if (object.host != null)
|
|
15158
|
+
message.host = String(object.host);
|
|
15159
|
+
if (object.port != null)
|
|
15160
|
+
message.port = object.port >>> 0;
|
|
15161
|
+
if (object.database != null)
|
|
15162
|
+
message.database = String(object.database);
|
|
15163
|
+
if (object.user != null)
|
|
15164
|
+
message.user = String(object.user);
|
|
15165
|
+
if (object.password != null)
|
|
15166
|
+
message.password = String(object.password);
|
|
15167
|
+
if (object.sslMode != null)
|
|
15168
|
+
message.sslMode = String(object.sslMode);
|
|
15169
|
+
if (object.defaultSchema != null)
|
|
15170
|
+
message.defaultSchema = String(object.defaultSchema);
|
|
15171
|
+
return message;
|
|
15172
|
+
};
|
|
15173
|
+
|
|
15174
|
+
/**
|
|
15175
|
+
* Creates a plain object from a PostgresConnection message. Also converts values to other types if specified.
|
|
15176
|
+
* @function toObject
|
|
15177
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15178
|
+
* @static
|
|
15179
|
+
* @param {sqlanvil.PostgresConnection} message PostgresConnection
|
|
15180
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15181
|
+
* @returns {Object.<string,*>} Plain object
|
|
15182
|
+
*/
|
|
15183
|
+
PostgresConnection.toObject = function toObject(message, options) {
|
|
15184
|
+
if (!options)
|
|
15185
|
+
options = {};
|
|
15186
|
+
let object = {};
|
|
15187
|
+
if (options.defaults) {
|
|
15188
|
+
object.host = "";
|
|
15189
|
+
object.port = 0;
|
|
15190
|
+
object.database = "";
|
|
15191
|
+
object.user = "";
|
|
15192
|
+
object.password = "";
|
|
15193
|
+
object.sslMode = "";
|
|
15194
|
+
object.defaultSchema = "";
|
|
15195
|
+
}
|
|
15196
|
+
if (message.host != null && message.hasOwnProperty("host"))
|
|
15197
|
+
object.host = message.host;
|
|
15198
|
+
if (message.port != null && message.hasOwnProperty("port"))
|
|
15199
|
+
object.port = message.port;
|
|
15200
|
+
if (message.database != null && message.hasOwnProperty("database"))
|
|
15201
|
+
object.database = message.database;
|
|
15202
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
15203
|
+
object.user = message.user;
|
|
15204
|
+
if (message.password != null && message.hasOwnProperty("password"))
|
|
15205
|
+
object.password = message.password;
|
|
15206
|
+
if (message.sslMode != null && message.hasOwnProperty("sslMode"))
|
|
15207
|
+
object.sslMode = message.sslMode;
|
|
15208
|
+
if (message.defaultSchema != null && message.hasOwnProperty("defaultSchema"))
|
|
15209
|
+
object.defaultSchema = message.defaultSchema;
|
|
15210
|
+
return object;
|
|
15211
|
+
};
|
|
15212
|
+
|
|
15213
|
+
/**
|
|
15214
|
+
* Converts this PostgresConnection to JSON.
|
|
15215
|
+
* @function toJSON
|
|
15216
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15217
|
+
* @instance
|
|
15218
|
+
* @returns {Object.<string,*>} JSON object
|
|
15219
|
+
*/
|
|
15220
|
+
PostgresConnection.prototype.toJSON = function toJSON() {
|
|
15221
|
+
return this.constructor.toObject(this, $protobuf__namespace.util.toJSONOptions);
|
|
15222
|
+
};
|
|
15223
|
+
|
|
15224
|
+
/**
|
|
15225
|
+
* Gets the default type url for PostgresConnection
|
|
15226
|
+
* @function getTypeUrl
|
|
15227
|
+
* @memberof sqlanvil.PostgresConnection
|
|
15228
|
+
* @static
|
|
15229
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15230
|
+
* @returns {string} The default type url
|
|
15231
|
+
*/
|
|
15232
|
+
PostgresConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15233
|
+
if (typeUrlPrefix === undefined) {
|
|
15234
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
15235
|
+
}
|
|
15236
|
+
return typeUrlPrefix + "/sqlanvil.PostgresConnection";
|
|
15237
|
+
};
|
|
15238
|
+
|
|
15239
|
+
return PostgresConnection;
|
|
15240
|
+
})();
|
|
15241
|
+
|
|
15242
|
+
sqlanvil.SupabaseConnection = (function() {
|
|
15243
|
+
|
|
15244
|
+
/**
|
|
15245
|
+
* Properties of a SupabaseConnection.
|
|
15246
|
+
* @memberof sqlanvil
|
|
15247
|
+
* @interface ISupabaseConnection
|
|
15248
|
+
* @property {string|null} [projectRef] SupabaseConnection projectRef
|
|
15249
|
+
* @property {string|null} [serviceRoleKey] SupabaseConnection serviceRoleKey
|
|
15250
|
+
* @property {string|null} [defaultSchema] SupabaseConnection defaultSchema
|
|
15251
|
+
* @property {string|null} [connectionString] SupabaseConnection connectionString
|
|
15252
|
+
*/
|
|
15253
|
+
|
|
15254
|
+
/**
|
|
15255
|
+
* Constructs a new SupabaseConnection.
|
|
14293
15256
|
* @memberof sqlanvil
|
|
14294
|
-
* @classdesc Represents a
|
|
14295
|
-
* @implements
|
|
15257
|
+
* @classdesc Represents a SupabaseConnection.
|
|
15258
|
+
* @implements ISupabaseConnection
|
|
14296
15259
|
* @constructor
|
|
14297
|
-
* @param {sqlanvil.
|
|
15260
|
+
* @param {sqlanvil.ISupabaseConnection=} [properties] Properties to set
|
|
14298
15261
|
*/
|
|
14299
|
-
function
|
|
15262
|
+
function SupabaseConnection(properties) {
|
|
14300
15263
|
if (properties)
|
|
14301
15264
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14302
15265
|
if (properties[keys[i]] != null)
|
|
@@ -14304,161 +15267,119 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14304
15267
|
}
|
|
14305
15268
|
|
|
14306
15269
|
/**
|
|
14307
|
-
*
|
|
14308
|
-
* @member {string}
|
|
14309
|
-
* @memberof sqlanvil.
|
|
14310
|
-
* @instance
|
|
14311
|
-
*/
|
|
14312
|
-
PostgresConnection.prototype.host = "";
|
|
14313
|
-
|
|
14314
|
-
/**
|
|
14315
|
-
* PostgresConnection port.
|
|
14316
|
-
* @member {number} port
|
|
14317
|
-
* @memberof sqlanvil.PostgresConnection
|
|
14318
|
-
* @instance
|
|
14319
|
-
*/
|
|
14320
|
-
PostgresConnection.prototype.port = 0;
|
|
14321
|
-
|
|
14322
|
-
/**
|
|
14323
|
-
* PostgresConnection database.
|
|
14324
|
-
* @member {string} database
|
|
14325
|
-
* @memberof sqlanvil.PostgresConnection
|
|
14326
|
-
* @instance
|
|
14327
|
-
*/
|
|
14328
|
-
PostgresConnection.prototype.database = "";
|
|
14329
|
-
|
|
14330
|
-
/**
|
|
14331
|
-
* PostgresConnection user.
|
|
14332
|
-
* @member {string} user
|
|
14333
|
-
* @memberof sqlanvil.PostgresConnection
|
|
15270
|
+
* SupabaseConnection projectRef.
|
|
15271
|
+
* @member {string} projectRef
|
|
15272
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14334
15273
|
* @instance
|
|
14335
15274
|
*/
|
|
14336
|
-
|
|
15275
|
+
SupabaseConnection.prototype.projectRef = "";
|
|
14337
15276
|
|
|
14338
15277
|
/**
|
|
14339
|
-
*
|
|
14340
|
-
* @member {string}
|
|
14341
|
-
* @memberof sqlanvil.
|
|
15278
|
+
* SupabaseConnection serviceRoleKey.
|
|
15279
|
+
* @member {string} serviceRoleKey
|
|
15280
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14342
15281
|
* @instance
|
|
14343
15282
|
*/
|
|
14344
|
-
|
|
15283
|
+
SupabaseConnection.prototype.serviceRoleKey = "";
|
|
14345
15284
|
|
|
14346
15285
|
/**
|
|
14347
|
-
*
|
|
14348
|
-
* @member {string}
|
|
14349
|
-
* @memberof sqlanvil.
|
|
15286
|
+
* SupabaseConnection defaultSchema.
|
|
15287
|
+
* @member {string} defaultSchema
|
|
15288
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14350
15289
|
* @instance
|
|
14351
15290
|
*/
|
|
14352
|
-
|
|
15291
|
+
SupabaseConnection.prototype.defaultSchema = "";
|
|
14353
15292
|
|
|
14354
15293
|
/**
|
|
14355
|
-
*
|
|
14356
|
-
* @member {string}
|
|
14357
|
-
* @memberof sqlanvil.
|
|
15294
|
+
* SupabaseConnection connectionString.
|
|
15295
|
+
* @member {string} connectionString
|
|
15296
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14358
15297
|
* @instance
|
|
14359
15298
|
*/
|
|
14360
|
-
|
|
15299
|
+
SupabaseConnection.prototype.connectionString = "";
|
|
14361
15300
|
|
|
14362
15301
|
/**
|
|
14363
|
-
* Creates a new
|
|
15302
|
+
* Creates a new SupabaseConnection instance using the specified properties.
|
|
14364
15303
|
* @function create
|
|
14365
|
-
* @memberof sqlanvil.
|
|
15304
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14366
15305
|
* @static
|
|
14367
|
-
* @param {sqlanvil.
|
|
14368
|
-
* @returns {sqlanvil.
|
|
15306
|
+
* @param {sqlanvil.ISupabaseConnection=} [properties] Properties to set
|
|
15307
|
+
* @returns {sqlanvil.SupabaseConnection} SupabaseConnection instance
|
|
14369
15308
|
*/
|
|
14370
|
-
|
|
14371
|
-
return new
|
|
15309
|
+
SupabaseConnection.create = function create(properties) {
|
|
15310
|
+
return new SupabaseConnection(properties);
|
|
14372
15311
|
};
|
|
14373
15312
|
|
|
14374
15313
|
/**
|
|
14375
|
-
* Encodes the specified
|
|
15314
|
+
* Encodes the specified SupabaseConnection message. Does not implicitly {@link sqlanvil.SupabaseConnection.verify|verify} messages.
|
|
14376
15315
|
* @function encode
|
|
14377
|
-
* @memberof sqlanvil.
|
|
15316
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14378
15317
|
* @static
|
|
14379
|
-
* @param {sqlanvil.
|
|
15318
|
+
* @param {sqlanvil.ISupabaseConnection} message SupabaseConnection message or plain object to encode
|
|
14380
15319
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14381
15320
|
* @returns {$protobuf.Writer} Writer
|
|
14382
15321
|
*/
|
|
14383
|
-
|
|
15322
|
+
SupabaseConnection.encode = function encode(message, writer) {
|
|
14384
15323
|
if (!writer)
|
|
14385
15324
|
writer = $Writer.create();
|
|
14386
|
-
if (message.
|
|
14387
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
14388
|
-
if (message.
|
|
14389
|
-
writer.uint32(/* id 2, wireType
|
|
14390
|
-
if (message.database != null && Object.hasOwnProperty.call(message, "database"))
|
|
14391
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.database);
|
|
14392
|
-
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
14393
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.user);
|
|
14394
|
-
if (message.password != null && Object.hasOwnProperty.call(message, "password"))
|
|
14395
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.password);
|
|
14396
|
-
if (message.sslMode != null && Object.hasOwnProperty.call(message, "sslMode"))
|
|
14397
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.sslMode);
|
|
15325
|
+
if (message.projectRef != null && Object.hasOwnProperty.call(message, "projectRef"))
|
|
15326
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectRef);
|
|
15327
|
+
if (message.serviceRoleKey != null && Object.hasOwnProperty.call(message, "serviceRoleKey"))
|
|
15328
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceRoleKey);
|
|
14398
15329
|
if (message.defaultSchema != null && Object.hasOwnProperty.call(message, "defaultSchema"))
|
|
14399
|
-
writer.uint32(/* id
|
|
15330
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultSchema);
|
|
15331
|
+
if (message.connectionString != null && Object.hasOwnProperty.call(message, "connectionString"))
|
|
15332
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.connectionString);
|
|
14400
15333
|
return writer;
|
|
14401
15334
|
};
|
|
14402
15335
|
|
|
14403
15336
|
/**
|
|
14404
|
-
* Encodes the specified
|
|
15337
|
+
* Encodes the specified SupabaseConnection message, length delimited. Does not implicitly {@link sqlanvil.SupabaseConnection.verify|verify} messages.
|
|
14405
15338
|
* @function encodeDelimited
|
|
14406
|
-
* @memberof sqlanvil.
|
|
15339
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14407
15340
|
* @static
|
|
14408
|
-
* @param {sqlanvil.
|
|
15341
|
+
* @param {sqlanvil.ISupabaseConnection} message SupabaseConnection message or plain object to encode
|
|
14409
15342
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14410
15343
|
* @returns {$protobuf.Writer} Writer
|
|
14411
15344
|
*/
|
|
14412
|
-
|
|
15345
|
+
SupabaseConnection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14413
15346
|
return this.encode(message, writer).ldelim();
|
|
14414
15347
|
};
|
|
14415
15348
|
|
|
14416
15349
|
/**
|
|
14417
|
-
* Decodes a
|
|
15350
|
+
* Decodes a SupabaseConnection message from the specified reader or buffer.
|
|
14418
15351
|
* @function decode
|
|
14419
|
-
* @memberof sqlanvil.
|
|
15352
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14420
15353
|
* @static
|
|
14421
15354
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14422
15355
|
* @param {number} [length] Message length if known beforehand
|
|
14423
|
-
* @returns {sqlanvil.
|
|
15356
|
+
* @returns {sqlanvil.SupabaseConnection} SupabaseConnection
|
|
14424
15357
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14425
15358
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14426
15359
|
*/
|
|
14427
|
-
|
|
15360
|
+
SupabaseConnection.decode = function decode(reader, length, error) {
|
|
14428
15361
|
if (!(reader instanceof $Reader))
|
|
14429
15362
|
reader = $Reader.create(reader);
|
|
14430
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.
|
|
15363
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.SupabaseConnection();
|
|
14431
15364
|
while (reader.pos < end) {
|
|
14432
15365
|
let tag = reader.uint32();
|
|
14433
15366
|
if (tag === error)
|
|
14434
15367
|
break;
|
|
14435
15368
|
switch (tag >>> 3) {
|
|
14436
15369
|
case 1: {
|
|
14437
|
-
message.
|
|
15370
|
+
message.projectRef = reader.string();
|
|
14438
15371
|
break;
|
|
14439
15372
|
}
|
|
14440
15373
|
case 2: {
|
|
14441
|
-
message.
|
|
15374
|
+
message.serviceRoleKey = reader.string();
|
|
14442
15375
|
break;
|
|
14443
15376
|
}
|
|
14444
15377
|
case 3: {
|
|
14445
|
-
message.
|
|
15378
|
+
message.defaultSchema = reader.string();
|
|
14446
15379
|
break;
|
|
14447
15380
|
}
|
|
14448
15381
|
case 4: {
|
|
14449
|
-
message.
|
|
14450
|
-
break;
|
|
14451
|
-
}
|
|
14452
|
-
case 5: {
|
|
14453
|
-
message.password = reader.string();
|
|
14454
|
-
break;
|
|
14455
|
-
}
|
|
14456
|
-
case 6: {
|
|
14457
|
-
message.sslMode = reader.string();
|
|
14458
|
-
break;
|
|
14459
|
-
}
|
|
14460
|
-
case 7: {
|
|
14461
|
-
message.defaultSchema = reader.string();
|
|
15382
|
+
message.connectionString = reader.string();
|
|
14462
15383
|
break;
|
|
14463
15384
|
}
|
|
14464
15385
|
default:
|
|
@@ -14470,174 +15391,152 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14470
15391
|
};
|
|
14471
15392
|
|
|
14472
15393
|
/**
|
|
14473
|
-
* Decodes a
|
|
15394
|
+
* Decodes a SupabaseConnection message from the specified reader or buffer, length delimited.
|
|
14474
15395
|
* @function decodeDelimited
|
|
14475
|
-
* @memberof sqlanvil.
|
|
15396
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14476
15397
|
* @static
|
|
14477
15398
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14478
|
-
* @returns {sqlanvil.
|
|
15399
|
+
* @returns {sqlanvil.SupabaseConnection} SupabaseConnection
|
|
14479
15400
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14480
15401
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14481
15402
|
*/
|
|
14482
|
-
|
|
15403
|
+
SupabaseConnection.decodeDelimited = function decodeDelimited(reader) {
|
|
14483
15404
|
if (!(reader instanceof $Reader))
|
|
14484
15405
|
reader = new $Reader(reader);
|
|
14485
15406
|
return this.decode(reader, reader.uint32());
|
|
14486
15407
|
};
|
|
14487
15408
|
|
|
14488
15409
|
/**
|
|
14489
|
-
* Verifies a
|
|
15410
|
+
* Verifies a SupabaseConnection message.
|
|
14490
15411
|
* @function verify
|
|
14491
|
-
* @memberof sqlanvil.
|
|
15412
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14492
15413
|
* @static
|
|
14493
15414
|
* @param {Object.<string,*>} message Plain object to verify
|
|
14494
15415
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14495
15416
|
*/
|
|
14496
|
-
|
|
15417
|
+
SupabaseConnection.verify = function verify(message) {
|
|
14497
15418
|
if (typeof message !== "object" || message === null)
|
|
14498
15419
|
return "object expected";
|
|
14499
|
-
if (message.
|
|
14500
|
-
if (!$util.isString(message.
|
|
14501
|
-
return "
|
|
14502
|
-
if (message.
|
|
14503
|
-
if (!$util.
|
|
14504
|
-
return "
|
|
14505
|
-
if (message.database != null && message.hasOwnProperty("database"))
|
|
14506
|
-
if (!$util.isString(message.database))
|
|
14507
|
-
return "database: string expected";
|
|
14508
|
-
if (message.user != null && message.hasOwnProperty("user"))
|
|
14509
|
-
if (!$util.isString(message.user))
|
|
14510
|
-
return "user: string expected";
|
|
14511
|
-
if (message.password != null && message.hasOwnProperty("password"))
|
|
14512
|
-
if (!$util.isString(message.password))
|
|
14513
|
-
return "password: string expected";
|
|
14514
|
-
if (message.sslMode != null && message.hasOwnProperty("sslMode"))
|
|
14515
|
-
if (!$util.isString(message.sslMode))
|
|
14516
|
-
return "sslMode: string expected";
|
|
15420
|
+
if (message.projectRef != null && message.hasOwnProperty("projectRef"))
|
|
15421
|
+
if (!$util.isString(message.projectRef))
|
|
15422
|
+
return "projectRef: string expected";
|
|
15423
|
+
if (message.serviceRoleKey != null && message.hasOwnProperty("serviceRoleKey"))
|
|
15424
|
+
if (!$util.isString(message.serviceRoleKey))
|
|
15425
|
+
return "serviceRoleKey: string expected";
|
|
14517
15426
|
if (message.defaultSchema != null && message.hasOwnProperty("defaultSchema"))
|
|
14518
15427
|
if (!$util.isString(message.defaultSchema))
|
|
14519
15428
|
return "defaultSchema: string expected";
|
|
15429
|
+
if (message.connectionString != null && message.hasOwnProperty("connectionString"))
|
|
15430
|
+
if (!$util.isString(message.connectionString))
|
|
15431
|
+
return "connectionString: string expected";
|
|
14520
15432
|
return null;
|
|
14521
15433
|
};
|
|
14522
15434
|
|
|
14523
15435
|
/**
|
|
14524
|
-
* Creates a
|
|
15436
|
+
* Creates a SupabaseConnection message from a plain object. Also converts values to their respective internal types.
|
|
14525
15437
|
* @function fromObject
|
|
14526
|
-
* @memberof sqlanvil.
|
|
15438
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14527
15439
|
* @static
|
|
14528
15440
|
* @param {Object.<string,*>} object Plain object
|
|
14529
|
-
* @returns {sqlanvil.
|
|
15441
|
+
* @returns {sqlanvil.SupabaseConnection} SupabaseConnection
|
|
14530
15442
|
*/
|
|
14531
|
-
|
|
14532
|
-
if (object instanceof $root.sqlanvil.
|
|
15443
|
+
SupabaseConnection.fromObject = function fromObject(object) {
|
|
15444
|
+
if (object instanceof $root.sqlanvil.SupabaseConnection)
|
|
14533
15445
|
return object;
|
|
14534
|
-
let message = new $root.sqlanvil.
|
|
14535
|
-
if (object.
|
|
14536
|
-
message.
|
|
14537
|
-
if (object.
|
|
14538
|
-
message.
|
|
14539
|
-
if (object.database != null)
|
|
14540
|
-
message.database = String(object.database);
|
|
14541
|
-
if (object.user != null)
|
|
14542
|
-
message.user = String(object.user);
|
|
14543
|
-
if (object.password != null)
|
|
14544
|
-
message.password = String(object.password);
|
|
14545
|
-
if (object.sslMode != null)
|
|
14546
|
-
message.sslMode = String(object.sslMode);
|
|
15446
|
+
let message = new $root.sqlanvil.SupabaseConnection();
|
|
15447
|
+
if (object.projectRef != null)
|
|
15448
|
+
message.projectRef = String(object.projectRef);
|
|
15449
|
+
if (object.serviceRoleKey != null)
|
|
15450
|
+
message.serviceRoleKey = String(object.serviceRoleKey);
|
|
14547
15451
|
if (object.defaultSchema != null)
|
|
14548
15452
|
message.defaultSchema = String(object.defaultSchema);
|
|
15453
|
+
if (object.connectionString != null)
|
|
15454
|
+
message.connectionString = String(object.connectionString);
|
|
14549
15455
|
return message;
|
|
14550
15456
|
};
|
|
14551
15457
|
|
|
14552
15458
|
/**
|
|
14553
|
-
* Creates a plain object from a
|
|
15459
|
+
* Creates a plain object from a SupabaseConnection message. Also converts values to other types if specified.
|
|
14554
15460
|
* @function toObject
|
|
14555
|
-
* @memberof sqlanvil.
|
|
15461
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14556
15462
|
* @static
|
|
14557
|
-
* @param {sqlanvil.
|
|
15463
|
+
* @param {sqlanvil.SupabaseConnection} message SupabaseConnection
|
|
14558
15464
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14559
15465
|
* @returns {Object.<string,*>} Plain object
|
|
14560
15466
|
*/
|
|
14561
|
-
|
|
15467
|
+
SupabaseConnection.toObject = function toObject(message, options) {
|
|
14562
15468
|
if (!options)
|
|
14563
15469
|
options = {};
|
|
14564
15470
|
let object = {};
|
|
14565
15471
|
if (options.defaults) {
|
|
14566
|
-
object.
|
|
14567
|
-
object.
|
|
14568
|
-
object.
|
|
14569
|
-
object.
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
object.
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
object.host = message.host;
|
|
14576
|
-
if (message.port != null && message.hasOwnProperty("port"))
|
|
14577
|
-
object.port = message.port;
|
|
14578
|
-
if (message.database != null && message.hasOwnProperty("database"))
|
|
14579
|
-
object.database = message.database;
|
|
14580
|
-
if (message.user != null && message.hasOwnProperty("user"))
|
|
14581
|
-
object.user = message.user;
|
|
14582
|
-
if (message.password != null && message.hasOwnProperty("password"))
|
|
14583
|
-
object.password = message.password;
|
|
14584
|
-
if (message.sslMode != null && message.hasOwnProperty("sslMode"))
|
|
14585
|
-
object.sslMode = message.sslMode;
|
|
15472
|
+
object.projectRef = "";
|
|
15473
|
+
object.serviceRoleKey = "";
|
|
15474
|
+
object.defaultSchema = "";
|
|
15475
|
+
object.connectionString = "";
|
|
15476
|
+
}
|
|
15477
|
+
if (message.projectRef != null && message.hasOwnProperty("projectRef"))
|
|
15478
|
+
object.projectRef = message.projectRef;
|
|
15479
|
+
if (message.serviceRoleKey != null && message.hasOwnProperty("serviceRoleKey"))
|
|
15480
|
+
object.serviceRoleKey = message.serviceRoleKey;
|
|
14586
15481
|
if (message.defaultSchema != null && message.hasOwnProperty("defaultSchema"))
|
|
14587
15482
|
object.defaultSchema = message.defaultSchema;
|
|
15483
|
+
if (message.connectionString != null && message.hasOwnProperty("connectionString"))
|
|
15484
|
+
object.connectionString = message.connectionString;
|
|
14588
15485
|
return object;
|
|
14589
15486
|
};
|
|
14590
15487
|
|
|
14591
15488
|
/**
|
|
14592
|
-
* Converts this
|
|
15489
|
+
* Converts this SupabaseConnection to JSON.
|
|
14593
15490
|
* @function toJSON
|
|
14594
|
-
* @memberof sqlanvil.
|
|
15491
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14595
15492
|
* @instance
|
|
14596
15493
|
* @returns {Object.<string,*>} JSON object
|
|
14597
15494
|
*/
|
|
14598
|
-
|
|
15495
|
+
SupabaseConnection.prototype.toJSON = function toJSON() {
|
|
14599
15496
|
return this.constructor.toObject(this, $protobuf__namespace.util.toJSONOptions);
|
|
14600
15497
|
};
|
|
14601
15498
|
|
|
14602
15499
|
/**
|
|
14603
|
-
* Gets the default type url for
|
|
15500
|
+
* Gets the default type url for SupabaseConnection
|
|
14604
15501
|
* @function getTypeUrl
|
|
14605
|
-
* @memberof sqlanvil.
|
|
15502
|
+
* @memberof sqlanvil.SupabaseConnection
|
|
14606
15503
|
* @static
|
|
14607
15504
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14608
15505
|
* @returns {string} The default type url
|
|
14609
15506
|
*/
|
|
14610
|
-
|
|
15507
|
+
SupabaseConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14611
15508
|
if (typeUrlPrefix === undefined) {
|
|
14612
15509
|
typeUrlPrefix = "type.googleapis.com";
|
|
14613
15510
|
}
|
|
14614
|
-
return typeUrlPrefix + "/sqlanvil.
|
|
15511
|
+
return typeUrlPrefix + "/sqlanvil.SupabaseConnection";
|
|
14615
15512
|
};
|
|
14616
15513
|
|
|
14617
|
-
return
|
|
15514
|
+
return SupabaseConnection;
|
|
14618
15515
|
})();
|
|
14619
15516
|
|
|
14620
|
-
sqlanvil.
|
|
15517
|
+
sqlanvil.MysqlConnection = (function() {
|
|
14621
15518
|
|
|
14622
15519
|
/**
|
|
14623
|
-
* Properties of a
|
|
15520
|
+
* Properties of a MysqlConnection.
|
|
14624
15521
|
* @memberof sqlanvil
|
|
14625
|
-
* @interface
|
|
14626
|
-
* @property {string|null} [
|
|
14627
|
-
* @property {
|
|
14628
|
-
* @property {string|null} [
|
|
14629
|
-
* @property {string|null} [
|
|
15522
|
+
* @interface IMysqlConnection
|
|
15523
|
+
* @property {string|null} [host] MysqlConnection host
|
|
15524
|
+
* @property {number|null} [port] MysqlConnection port
|
|
15525
|
+
* @property {string|null} [database] MysqlConnection database
|
|
15526
|
+
* @property {string|null} [user] MysqlConnection user
|
|
15527
|
+
* @property {string|null} [password] MysqlConnection password
|
|
15528
|
+
* @property {string|null} [sslMode] MysqlConnection sslMode
|
|
14630
15529
|
*/
|
|
14631
15530
|
|
|
14632
15531
|
/**
|
|
14633
|
-
* Constructs a new
|
|
15532
|
+
* Constructs a new MysqlConnection.
|
|
14634
15533
|
* @memberof sqlanvil
|
|
14635
|
-
* @classdesc Represents a
|
|
14636
|
-
* @implements
|
|
15534
|
+
* @classdesc Represents a MysqlConnection.
|
|
15535
|
+
* @implements IMysqlConnection
|
|
14637
15536
|
* @constructor
|
|
14638
|
-
* @param {sqlanvil.
|
|
15537
|
+
* @param {sqlanvil.IMysqlConnection=} [properties] Properties to set
|
|
14639
15538
|
*/
|
|
14640
|
-
function
|
|
15539
|
+
function MysqlConnection(properties) {
|
|
14641
15540
|
if (properties)
|
|
14642
15541
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14643
15542
|
if (properties[keys[i]] != null)
|
|
@@ -14645,119 +15544,147 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14645
15544
|
}
|
|
14646
15545
|
|
|
14647
15546
|
/**
|
|
14648
|
-
*
|
|
14649
|
-
* @member {string}
|
|
14650
|
-
* @memberof sqlanvil.
|
|
15547
|
+
* MysqlConnection host.
|
|
15548
|
+
* @member {string} host
|
|
15549
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14651
15550
|
* @instance
|
|
14652
15551
|
*/
|
|
14653
|
-
|
|
15552
|
+
MysqlConnection.prototype.host = "";
|
|
14654
15553
|
|
|
14655
15554
|
/**
|
|
14656
|
-
*
|
|
14657
|
-
* @member {
|
|
14658
|
-
* @memberof sqlanvil.
|
|
15555
|
+
* MysqlConnection port.
|
|
15556
|
+
* @member {number} port
|
|
15557
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14659
15558
|
* @instance
|
|
14660
15559
|
*/
|
|
14661
|
-
|
|
15560
|
+
MysqlConnection.prototype.port = 0;
|
|
14662
15561
|
|
|
14663
15562
|
/**
|
|
14664
|
-
*
|
|
14665
|
-
* @member {string}
|
|
14666
|
-
* @memberof sqlanvil.
|
|
15563
|
+
* MysqlConnection database.
|
|
15564
|
+
* @member {string} database
|
|
15565
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14667
15566
|
* @instance
|
|
14668
15567
|
*/
|
|
14669
|
-
|
|
15568
|
+
MysqlConnection.prototype.database = "";
|
|
14670
15569
|
|
|
14671
15570
|
/**
|
|
14672
|
-
*
|
|
14673
|
-
* @member {string}
|
|
14674
|
-
* @memberof sqlanvil.
|
|
15571
|
+
* MysqlConnection user.
|
|
15572
|
+
* @member {string} user
|
|
15573
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14675
15574
|
* @instance
|
|
14676
15575
|
*/
|
|
14677
|
-
|
|
15576
|
+
MysqlConnection.prototype.user = "";
|
|
14678
15577
|
|
|
14679
15578
|
/**
|
|
14680
|
-
*
|
|
15579
|
+
* MysqlConnection password.
|
|
15580
|
+
* @member {string} password
|
|
15581
|
+
* @memberof sqlanvil.MysqlConnection
|
|
15582
|
+
* @instance
|
|
15583
|
+
*/
|
|
15584
|
+
MysqlConnection.prototype.password = "";
|
|
15585
|
+
|
|
15586
|
+
/**
|
|
15587
|
+
* MysqlConnection sslMode.
|
|
15588
|
+
* @member {string} sslMode
|
|
15589
|
+
* @memberof sqlanvil.MysqlConnection
|
|
15590
|
+
* @instance
|
|
15591
|
+
*/
|
|
15592
|
+
MysqlConnection.prototype.sslMode = "";
|
|
15593
|
+
|
|
15594
|
+
/**
|
|
15595
|
+
* Creates a new MysqlConnection instance using the specified properties.
|
|
14681
15596
|
* @function create
|
|
14682
|
-
* @memberof sqlanvil.
|
|
15597
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14683
15598
|
* @static
|
|
14684
|
-
* @param {sqlanvil.
|
|
14685
|
-
* @returns {sqlanvil.
|
|
15599
|
+
* @param {sqlanvil.IMysqlConnection=} [properties] Properties to set
|
|
15600
|
+
* @returns {sqlanvil.MysqlConnection} MysqlConnection instance
|
|
14686
15601
|
*/
|
|
14687
|
-
|
|
14688
|
-
return new
|
|
15602
|
+
MysqlConnection.create = function create(properties) {
|
|
15603
|
+
return new MysqlConnection(properties);
|
|
14689
15604
|
};
|
|
14690
15605
|
|
|
14691
15606
|
/**
|
|
14692
|
-
* Encodes the specified
|
|
15607
|
+
* Encodes the specified MysqlConnection message. Does not implicitly {@link sqlanvil.MysqlConnection.verify|verify} messages.
|
|
14693
15608
|
* @function encode
|
|
14694
|
-
* @memberof sqlanvil.
|
|
15609
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14695
15610
|
* @static
|
|
14696
|
-
* @param {sqlanvil.
|
|
15611
|
+
* @param {sqlanvil.IMysqlConnection} message MysqlConnection message or plain object to encode
|
|
14697
15612
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14698
15613
|
* @returns {$protobuf.Writer} Writer
|
|
14699
15614
|
*/
|
|
14700
|
-
|
|
15615
|
+
MysqlConnection.encode = function encode(message, writer) {
|
|
14701
15616
|
if (!writer)
|
|
14702
15617
|
writer = $Writer.create();
|
|
14703
|
-
if (message.
|
|
14704
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
14705
|
-
if (message.
|
|
14706
|
-
writer.uint32(/* id 2, wireType
|
|
14707
|
-
if (message.
|
|
14708
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.
|
|
14709
|
-
if (message.
|
|
14710
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.
|
|
15618
|
+
if (message.host != null && Object.hasOwnProperty.call(message, "host"))
|
|
15619
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.host);
|
|
15620
|
+
if (message.port != null && Object.hasOwnProperty.call(message, "port"))
|
|
15621
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.port);
|
|
15622
|
+
if (message.database != null && Object.hasOwnProperty.call(message, "database"))
|
|
15623
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.database);
|
|
15624
|
+
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
15625
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.user);
|
|
15626
|
+
if (message.password != null && Object.hasOwnProperty.call(message, "password"))
|
|
15627
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.password);
|
|
15628
|
+
if (message.sslMode != null && Object.hasOwnProperty.call(message, "sslMode"))
|
|
15629
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.sslMode);
|
|
14711
15630
|
return writer;
|
|
14712
15631
|
};
|
|
14713
15632
|
|
|
14714
15633
|
/**
|
|
14715
|
-
* Encodes the specified
|
|
15634
|
+
* Encodes the specified MysqlConnection message, length delimited. Does not implicitly {@link sqlanvil.MysqlConnection.verify|verify} messages.
|
|
14716
15635
|
* @function encodeDelimited
|
|
14717
|
-
* @memberof sqlanvil.
|
|
15636
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14718
15637
|
* @static
|
|
14719
|
-
* @param {sqlanvil.
|
|
15638
|
+
* @param {sqlanvil.IMysqlConnection} message MysqlConnection message or plain object to encode
|
|
14720
15639
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14721
15640
|
* @returns {$protobuf.Writer} Writer
|
|
14722
15641
|
*/
|
|
14723
|
-
|
|
15642
|
+
MysqlConnection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14724
15643
|
return this.encode(message, writer).ldelim();
|
|
14725
15644
|
};
|
|
14726
15645
|
|
|
14727
15646
|
/**
|
|
14728
|
-
* Decodes a
|
|
15647
|
+
* Decodes a MysqlConnection message from the specified reader or buffer.
|
|
14729
15648
|
* @function decode
|
|
14730
|
-
* @memberof sqlanvil.
|
|
15649
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14731
15650
|
* @static
|
|
14732
15651
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14733
15652
|
* @param {number} [length] Message length if known beforehand
|
|
14734
|
-
* @returns {sqlanvil.
|
|
15653
|
+
* @returns {sqlanvil.MysqlConnection} MysqlConnection
|
|
14735
15654
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14736
15655
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14737
15656
|
*/
|
|
14738
|
-
|
|
15657
|
+
MysqlConnection.decode = function decode(reader, length, error) {
|
|
14739
15658
|
if (!(reader instanceof $Reader))
|
|
14740
15659
|
reader = $Reader.create(reader);
|
|
14741
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.
|
|
15660
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sqlanvil.MysqlConnection();
|
|
14742
15661
|
while (reader.pos < end) {
|
|
14743
15662
|
let tag = reader.uint32();
|
|
14744
15663
|
if (tag === error)
|
|
14745
15664
|
break;
|
|
14746
15665
|
switch (tag >>> 3) {
|
|
14747
15666
|
case 1: {
|
|
14748
|
-
message.
|
|
15667
|
+
message.host = reader.string();
|
|
14749
15668
|
break;
|
|
14750
15669
|
}
|
|
14751
15670
|
case 2: {
|
|
14752
|
-
message.
|
|
15671
|
+
message.port = reader.uint32();
|
|
14753
15672
|
break;
|
|
14754
15673
|
}
|
|
14755
15674
|
case 3: {
|
|
14756
|
-
message.
|
|
15675
|
+
message.database = reader.string();
|
|
14757
15676
|
break;
|
|
14758
15677
|
}
|
|
14759
15678
|
case 4: {
|
|
14760
|
-
message.
|
|
15679
|
+
message.user = reader.string();
|
|
15680
|
+
break;
|
|
15681
|
+
}
|
|
15682
|
+
case 5: {
|
|
15683
|
+
message.password = reader.string();
|
|
15684
|
+
break;
|
|
15685
|
+
}
|
|
15686
|
+
case 6: {
|
|
15687
|
+
message.sslMode = reader.string();
|
|
14761
15688
|
break;
|
|
14762
15689
|
}
|
|
14763
15690
|
default:
|
|
@@ -14769,127 +15696,143 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14769
15696
|
};
|
|
14770
15697
|
|
|
14771
15698
|
/**
|
|
14772
|
-
* Decodes a
|
|
15699
|
+
* Decodes a MysqlConnection message from the specified reader or buffer, length delimited.
|
|
14773
15700
|
* @function decodeDelimited
|
|
14774
|
-
* @memberof sqlanvil.
|
|
15701
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14775
15702
|
* @static
|
|
14776
15703
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14777
|
-
* @returns {sqlanvil.
|
|
15704
|
+
* @returns {sqlanvil.MysqlConnection} MysqlConnection
|
|
14778
15705
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14779
15706
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14780
15707
|
*/
|
|
14781
|
-
|
|
15708
|
+
MysqlConnection.decodeDelimited = function decodeDelimited(reader) {
|
|
14782
15709
|
if (!(reader instanceof $Reader))
|
|
14783
15710
|
reader = new $Reader(reader);
|
|
14784
15711
|
return this.decode(reader, reader.uint32());
|
|
14785
15712
|
};
|
|
14786
15713
|
|
|
14787
15714
|
/**
|
|
14788
|
-
* Verifies a
|
|
15715
|
+
* Verifies a MysqlConnection message.
|
|
14789
15716
|
* @function verify
|
|
14790
|
-
* @memberof sqlanvil.
|
|
15717
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14791
15718
|
* @static
|
|
14792
15719
|
* @param {Object.<string,*>} message Plain object to verify
|
|
14793
15720
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14794
15721
|
*/
|
|
14795
|
-
|
|
15722
|
+
MysqlConnection.verify = function verify(message) {
|
|
14796
15723
|
if (typeof message !== "object" || message === null)
|
|
14797
15724
|
return "object expected";
|
|
14798
|
-
if (message.
|
|
14799
|
-
if (!$util.isString(message.
|
|
14800
|
-
return "
|
|
14801
|
-
if (message.
|
|
14802
|
-
if (!$util.
|
|
14803
|
-
return "
|
|
14804
|
-
if (message.
|
|
14805
|
-
if (!$util.isString(message.
|
|
14806
|
-
return "
|
|
14807
|
-
if (message.
|
|
14808
|
-
if (!$util.isString(message.
|
|
14809
|
-
return "
|
|
15725
|
+
if (message.host != null && message.hasOwnProperty("host"))
|
|
15726
|
+
if (!$util.isString(message.host))
|
|
15727
|
+
return "host: string expected";
|
|
15728
|
+
if (message.port != null && message.hasOwnProperty("port"))
|
|
15729
|
+
if (!$util.isInteger(message.port))
|
|
15730
|
+
return "port: integer expected";
|
|
15731
|
+
if (message.database != null && message.hasOwnProperty("database"))
|
|
15732
|
+
if (!$util.isString(message.database))
|
|
15733
|
+
return "database: string expected";
|
|
15734
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
15735
|
+
if (!$util.isString(message.user))
|
|
15736
|
+
return "user: string expected";
|
|
15737
|
+
if (message.password != null && message.hasOwnProperty("password"))
|
|
15738
|
+
if (!$util.isString(message.password))
|
|
15739
|
+
return "password: string expected";
|
|
15740
|
+
if (message.sslMode != null && message.hasOwnProperty("sslMode"))
|
|
15741
|
+
if (!$util.isString(message.sslMode))
|
|
15742
|
+
return "sslMode: string expected";
|
|
14810
15743
|
return null;
|
|
14811
15744
|
};
|
|
14812
15745
|
|
|
14813
15746
|
/**
|
|
14814
|
-
* Creates a
|
|
15747
|
+
* Creates a MysqlConnection message from a plain object. Also converts values to their respective internal types.
|
|
14815
15748
|
* @function fromObject
|
|
14816
|
-
* @memberof sqlanvil.
|
|
15749
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14817
15750
|
* @static
|
|
14818
15751
|
* @param {Object.<string,*>} object Plain object
|
|
14819
|
-
* @returns {sqlanvil.
|
|
15752
|
+
* @returns {sqlanvil.MysqlConnection} MysqlConnection
|
|
14820
15753
|
*/
|
|
14821
|
-
|
|
14822
|
-
if (object instanceof $root.sqlanvil.
|
|
15754
|
+
MysqlConnection.fromObject = function fromObject(object) {
|
|
15755
|
+
if (object instanceof $root.sqlanvil.MysqlConnection)
|
|
14823
15756
|
return object;
|
|
14824
|
-
let message = new $root.sqlanvil.
|
|
14825
|
-
if (object.
|
|
14826
|
-
message.
|
|
14827
|
-
if (object.
|
|
14828
|
-
message.
|
|
14829
|
-
if (object.
|
|
14830
|
-
message.
|
|
14831
|
-
if (object.
|
|
14832
|
-
message.
|
|
15757
|
+
let message = new $root.sqlanvil.MysqlConnection();
|
|
15758
|
+
if (object.host != null)
|
|
15759
|
+
message.host = String(object.host);
|
|
15760
|
+
if (object.port != null)
|
|
15761
|
+
message.port = object.port >>> 0;
|
|
15762
|
+
if (object.database != null)
|
|
15763
|
+
message.database = String(object.database);
|
|
15764
|
+
if (object.user != null)
|
|
15765
|
+
message.user = String(object.user);
|
|
15766
|
+
if (object.password != null)
|
|
15767
|
+
message.password = String(object.password);
|
|
15768
|
+
if (object.sslMode != null)
|
|
15769
|
+
message.sslMode = String(object.sslMode);
|
|
14833
15770
|
return message;
|
|
14834
15771
|
};
|
|
14835
15772
|
|
|
14836
15773
|
/**
|
|
14837
|
-
* Creates a plain object from a
|
|
15774
|
+
* Creates a plain object from a MysqlConnection message. Also converts values to other types if specified.
|
|
14838
15775
|
* @function toObject
|
|
14839
|
-
* @memberof sqlanvil.
|
|
15776
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14840
15777
|
* @static
|
|
14841
|
-
* @param {sqlanvil.
|
|
15778
|
+
* @param {sqlanvil.MysqlConnection} message MysqlConnection
|
|
14842
15779
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14843
15780
|
* @returns {Object.<string,*>} Plain object
|
|
14844
15781
|
*/
|
|
14845
|
-
|
|
15782
|
+
MysqlConnection.toObject = function toObject(message, options) {
|
|
14846
15783
|
if (!options)
|
|
14847
15784
|
options = {};
|
|
14848
15785
|
let object = {};
|
|
14849
15786
|
if (options.defaults) {
|
|
14850
|
-
object.
|
|
14851
|
-
object.
|
|
14852
|
-
object.
|
|
14853
|
-
object.
|
|
15787
|
+
object.host = "";
|
|
15788
|
+
object.port = 0;
|
|
15789
|
+
object.database = "";
|
|
15790
|
+
object.user = "";
|
|
15791
|
+
object.password = "";
|
|
15792
|
+
object.sslMode = "";
|
|
14854
15793
|
}
|
|
14855
|
-
if (message.
|
|
14856
|
-
object.
|
|
14857
|
-
if (message.
|
|
14858
|
-
object.
|
|
14859
|
-
if (message.
|
|
14860
|
-
object.
|
|
14861
|
-
if (message.
|
|
14862
|
-
object.
|
|
15794
|
+
if (message.host != null && message.hasOwnProperty("host"))
|
|
15795
|
+
object.host = message.host;
|
|
15796
|
+
if (message.port != null && message.hasOwnProperty("port"))
|
|
15797
|
+
object.port = message.port;
|
|
15798
|
+
if (message.database != null && message.hasOwnProperty("database"))
|
|
15799
|
+
object.database = message.database;
|
|
15800
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
15801
|
+
object.user = message.user;
|
|
15802
|
+
if (message.password != null && message.hasOwnProperty("password"))
|
|
15803
|
+
object.password = message.password;
|
|
15804
|
+
if (message.sslMode != null && message.hasOwnProperty("sslMode"))
|
|
15805
|
+
object.sslMode = message.sslMode;
|
|
14863
15806
|
return object;
|
|
14864
15807
|
};
|
|
14865
15808
|
|
|
14866
15809
|
/**
|
|
14867
|
-
* Converts this
|
|
15810
|
+
* Converts this MysqlConnection to JSON.
|
|
14868
15811
|
* @function toJSON
|
|
14869
|
-
* @memberof sqlanvil.
|
|
15812
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14870
15813
|
* @instance
|
|
14871
15814
|
* @returns {Object.<string,*>} JSON object
|
|
14872
15815
|
*/
|
|
14873
|
-
|
|
15816
|
+
MysqlConnection.prototype.toJSON = function toJSON() {
|
|
14874
15817
|
return this.constructor.toObject(this, $protobuf__namespace.util.toJSONOptions);
|
|
14875
15818
|
};
|
|
14876
15819
|
|
|
14877
15820
|
/**
|
|
14878
|
-
* Gets the default type url for
|
|
15821
|
+
* Gets the default type url for MysqlConnection
|
|
14879
15822
|
* @function getTypeUrl
|
|
14880
|
-
* @memberof sqlanvil.
|
|
15823
|
+
* @memberof sqlanvil.MysqlConnection
|
|
14881
15824
|
* @static
|
|
14882
15825
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14883
15826
|
* @returns {string} The default type url
|
|
14884
15827
|
*/
|
|
14885
|
-
|
|
15828
|
+
MysqlConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14886
15829
|
if (typeUrlPrefix === undefined) {
|
|
14887
15830
|
typeUrlPrefix = "type.googleapis.com";
|
|
14888
15831
|
}
|
|
14889
|
-
return typeUrlPrefix + "/sqlanvil.
|
|
15832
|
+
return typeUrlPrefix + "/sqlanvil.MysqlConnection";
|
|
14890
15833
|
};
|
|
14891
15834
|
|
|
14892
|
-
return
|
|
15835
|
+
return MysqlConnection;
|
|
14893
15836
|
})();
|
|
14894
15837
|
|
|
14895
15838
|
sqlanvil.WarehouseConfig = (function() {
|
|
@@ -14901,6 +15844,7 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14901
15844
|
* @property {sqlanvil.IBigQueryConnection|null} [bigquery] WarehouseConfig bigquery
|
|
14902
15845
|
* @property {sqlanvil.IPostgresConnection|null} [postgres] WarehouseConfig postgres
|
|
14903
15846
|
* @property {sqlanvil.ISupabaseConnection|null} [supabase] WarehouseConfig supabase
|
|
15847
|
+
* @property {sqlanvil.IMysqlConnection|null} [mysql] WarehouseConfig mysql
|
|
14904
15848
|
*/
|
|
14905
15849
|
|
|
14906
15850
|
/**
|
|
@@ -14942,17 +15886,25 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14942
15886
|
*/
|
|
14943
15887
|
WarehouseConfig.prototype.supabase = null;
|
|
14944
15888
|
|
|
15889
|
+
/**
|
|
15890
|
+
* WarehouseConfig mysql.
|
|
15891
|
+
* @member {sqlanvil.IMysqlConnection|null|undefined} mysql
|
|
15892
|
+
* @memberof sqlanvil.WarehouseConfig
|
|
15893
|
+
* @instance
|
|
15894
|
+
*/
|
|
15895
|
+
WarehouseConfig.prototype.mysql = null;
|
|
15896
|
+
|
|
14945
15897
|
// OneOf field names bound to virtual getters and setters
|
|
14946
15898
|
let $oneOfFields;
|
|
14947
15899
|
|
|
14948
15900
|
/**
|
|
14949
15901
|
* WarehouseConfig connection.
|
|
14950
|
-
* @member {"bigquery"|"postgres"|"supabase"|undefined} connection
|
|
15902
|
+
* @member {"bigquery"|"postgres"|"supabase"|"mysql"|undefined} connection
|
|
14951
15903
|
* @memberof sqlanvil.WarehouseConfig
|
|
14952
15904
|
* @instance
|
|
14953
15905
|
*/
|
|
14954
15906
|
Object.defineProperty(WarehouseConfig.prototype, "connection", {
|
|
14955
|
-
get: $util.oneOfGetter($oneOfFields = ["bigquery", "postgres", "supabase"]),
|
|
15907
|
+
get: $util.oneOfGetter($oneOfFields = ["bigquery", "postgres", "supabase", "mysql"]),
|
|
14956
15908
|
set: $util.oneOfSetter($oneOfFields)
|
|
14957
15909
|
});
|
|
14958
15910
|
|
|
@@ -14986,6 +15938,8 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
14986
15938
|
$root.sqlanvil.PostgresConnection.encode(message.postgres, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14987
15939
|
if (message.supabase != null && Object.hasOwnProperty.call(message, "supabase"))
|
|
14988
15940
|
$root.sqlanvil.SupabaseConnection.encode(message.supabase, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
15941
|
+
if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql"))
|
|
15942
|
+
$root.sqlanvil.MysqlConnection.encode(message.mysql, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
14989
15943
|
return writer;
|
|
14990
15944
|
};
|
|
14991
15945
|
|
|
@@ -15034,6 +15988,10 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
15034
15988
|
message.supabase = $root.sqlanvil.SupabaseConnection.decode(reader, reader.uint32());
|
|
15035
15989
|
break;
|
|
15036
15990
|
}
|
|
15991
|
+
case 4: {
|
|
15992
|
+
message.mysql = $root.sqlanvil.MysqlConnection.decode(reader, reader.uint32());
|
|
15993
|
+
break;
|
|
15994
|
+
}
|
|
15037
15995
|
default:
|
|
15038
15996
|
reader.skipType(tag & 7);
|
|
15039
15997
|
break;
|
|
@@ -15098,6 +16056,16 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
15098
16056
|
return "supabase." + error;
|
|
15099
16057
|
}
|
|
15100
16058
|
}
|
|
16059
|
+
if (message.mysql != null && message.hasOwnProperty("mysql")) {
|
|
16060
|
+
if (properties.connection === 1)
|
|
16061
|
+
return "connection: multiple values";
|
|
16062
|
+
properties.connection = 1;
|
|
16063
|
+
{
|
|
16064
|
+
let error = $root.sqlanvil.MysqlConnection.verify(message.mysql);
|
|
16065
|
+
if (error)
|
|
16066
|
+
return "mysql." + error;
|
|
16067
|
+
}
|
|
16068
|
+
}
|
|
15101
16069
|
return null;
|
|
15102
16070
|
};
|
|
15103
16071
|
|
|
@@ -15128,6 +16096,11 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
15128
16096
|
throw TypeError(".sqlanvil.WarehouseConfig.supabase: object expected");
|
|
15129
16097
|
message.supabase = $root.sqlanvil.SupabaseConnection.fromObject(object.supabase);
|
|
15130
16098
|
}
|
|
16099
|
+
if (object.mysql != null) {
|
|
16100
|
+
if (typeof object.mysql !== "object")
|
|
16101
|
+
throw TypeError(".sqlanvil.WarehouseConfig.mysql: object expected");
|
|
16102
|
+
message.mysql = $root.sqlanvil.MysqlConnection.fromObject(object.mysql);
|
|
16103
|
+
}
|
|
15131
16104
|
return message;
|
|
15132
16105
|
};
|
|
15133
16106
|
|
|
@@ -15159,6 +16132,11 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
15159
16132
|
if (options.oneofs)
|
|
15160
16133
|
object.connection = "supabase";
|
|
15161
16134
|
}
|
|
16135
|
+
if (message.mysql != null && message.hasOwnProperty("mysql")) {
|
|
16136
|
+
object.mysql = $root.sqlanvil.MysqlConnection.toObject(message.mysql, options);
|
|
16137
|
+
if (options.oneofs)
|
|
16138
|
+
object.connection = "mysql";
|
|
16139
|
+
}
|
|
15162
16140
|
return object;
|
|
15163
16141
|
};
|
|
15164
16142
|
|
|
@@ -18995,6 +19973,7 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
18995
19973
|
* @property {sqlanvil.IBigQueryOptions|null} [bigquery] Table bigquery
|
|
18996
19974
|
* @property {sqlanvil.IPostgresOptions|null} [postgres] Table postgres
|
|
18997
19975
|
* @property {sqlanvil.ISupabaseOptions|null} [supabase] Table supabase
|
|
19976
|
+
* @property {sqlanvil.IMysqlOptions|null} [mysql] Table mysql
|
|
18998
19977
|
* @property {string|null} [fileName] Table fileName
|
|
18999
19978
|
*/
|
|
19000
19979
|
|
|
@@ -19212,6 +20191,14 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
19212
20191
|
*/
|
|
19213
20192
|
Table.prototype.supabase = null;
|
|
19214
20193
|
|
|
20194
|
+
/**
|
|
20195
|
+
* Table mysql.
|
|
20196
|
+
* @member {sqlanvil.IMysqlOptions|null|undefined} mysql
|
|
20197
|
+
* @memberof sqlanvil.Table
|
|
20198
|
+
* @instance
|
|
20199
|
+
*/
|
|
20200
|
+
Table.prototype.mysql = null;
|
|
20201
|
+
|
|
19215
20202
|
/**
|
|
19216
20203
|
* Table fileName.
|
|
19217
20204
|
* @member {string} fileName
|
|
@@ -19301,6 +20288,8 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
19301
20288
|
$root.sqlanvil.PostgresOptions.encode(message.postgres, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim();
|
|
19302
20289
|
if (message.supabase != null && Object.hasOwnProperty.call(message, "supabase"))
|
|
19303
20290
|
$root.sqlanvil.SupabaseOptions.encode(message.supabase, writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim();
|
|
20291
|
+
if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql"))
|
|
20292
|
+
$root.sqlanvil.MysqlOptions.encode(message.mysql, writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim();
|
|
19304
20293
|
return writer;
|
|
19305
20294
|
};
|
|
19306
20295
|
|
|
@@ -19447,6 +20436,10 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
19447
20436
|
message.supabase = $root.sqlanvil.SupabaseOptions.decode(reader, reader.uint32());
|
|
19448
20437
|
break;
|
|
19449
20438
|
}
|
|
20439
|
+
case 41: {
|
|
20440
|
+
message.mysql = $root.sqlanvil.MysqlOptions.decode(reader, reader.uint32());
|
|
20441
|
+
break;
|
|
20442
|
+
}
|
|
19450
20443
|
case 18: {
|
|
19451
20444
|
message.fileName = reader.string();
|
|
19452
20445
|
break;
|
|
@@ -19620,6 +20613,11 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
19620
20613
|
if (error)
|
|
19621
20614
|
return "supabase." + error;
|
|
19622
20615
|
}
|
|
20616
|
+
if (message.mysql != null && message.hasOwnProperty("mysql")) {
|
|
20617
|
+
let error = $root.sqlanvil.MysqlOptions.verify(message.mysql);
|
|
20618
|
+
if (error)
|
|
20619
|
+
return "mysql." + error;
|
|
20620
|
+
}
|
|
19623
20621
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
19624
20622
|
if (!$util.isString(message.fileName))
|
|
19625
20623
|
return "fileName: string expected";
|
|
@@ -19804,6 +20802,11 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
19804
20802
|
throw TypeError(".sqlanvil.Table.supabase: object expected");
|
|
19805
20803
|
message.supabase = $root.sqlanvil.SupabaseOptions.fromObject(object.supabase);
|
|
19806
20804
|
}
|
|
20805
|
+
if (object.mysql != null) {
|
|
20806
|
+
if (typeof object.mysql !== "object")
|
|
20807
|
+
throw TypeError(".sqlanvil.Table.mysql: object expected");
|
|
20808
|
+
message.mysql = $root.sqlanvil.MysqlOptions.fromObject(object.mysql);
|
|
20809
|
+
}
|
|
19807
20810
|
if (object.fileName != null)
|
|
19808
20811
|
message.fileName = String(object.fileName);
|
|
19809
20812
|
return message;
|
|
@@ -19850,6 +20853,7 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
19850
20853
|
object.jitCode = "";
|
|
19851
20854
|
object.postgres = null;
|
|
19852
20855
|
object.supabase = null;
|
|
20856
|
+
object.mysql = null;
|
|
19853
20857
|
}
|
|
19854
20858
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
19855
20859
|
object.type = message.type;
|
|
@@ -19922,6 +20926,8 @@ const sqlanvil = $root.sqlanvil = (() => {
|
|
|
19922
20926
|
object.postgres = $root.sqlanvil.PostgresOptions.toObject(message.postgres, options);
|
|
19923
20927
|
if (message.supabase != null && message.hasOwnProperty("supabase"))
|
|
19924
20928
|
object.supabase = $root.sqlanvil.SupabaseOptions.toObject(message.supabase, options);
|
|
20929
|
+
if (message.mysql != null && message.hasOwnProperty("mysql"))
|
|
20930
|
+
object.mysql = $root.sqlanvil.MysqlOptions.toObject(message.mysql, options);
|
|
19925
20931
|
return object;
|
|
19926
20932
|
};
|
|
19927
20933
|
|