@useairfoil/flight 0.4.0 → 0.4.2
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/dist/chunk-Bp6m_JJh.js +13 -0
- package/dist/index.d.ts +81 -52
- package/dist/index.js +105 -93
- package/dist/index.js.map +1 -1
- package/dist/proto/Flight.proto +4 -11
- package/package.json +5 -12
- package/src/arrow-flight-client.ts +168 -0
- package/src/arrow-flight-sql-client.ts +147 -0
- package/src/arrow-utils.ts +2 -1
- package/src/flight-client-error.ts +27 -0
- package/src/index.ts +11 -3
- package/src/proto/Flight.ts +97 -215
- package/src/proto/FlightSql.ts +291 -537
- package/src/proto/any.ts +9 -16
- package/src/proto/google/protobuf/descriptor.ts +12 -1
- package/src/proto/google/protobuf/timestamp.ts +17 -25
- package/src/proto/typeRegistry.ts +7 -11
- package/src/record-batch-decoder.ts +15 -5
- package/src/record-batch-with-metadata.ts +6 -0
- package/src/arrow-flight-sql.ts +0 -98
- package/src/arrow-flight.ts +0 -126
package/src/proto/FlightSql.ts
CHANGED
|
@@ -1340,9 +1340,7 @@ export enum SupportedAnsi92SqlGrammarLevel {
|
|
|
1340
1340
|
UNRECOGNIZED = -1,
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
-
export function supportedAnsi92SqlGrammarLevelFromJSON(
|
|
1344
|
-
object: any,
|
|
1345
|
-
): SupportedAnsi92SqlGrammarLevel {
|
|
1343
|
+
export function supportedAnsi92SqlGrammarLevelFromJSON(object: any): SupportedAnsi92SqlGrammarLevel {
|
|
1346
1344
|
switch (object) {
|
|
1347
1345
|
case 0:
|
|
1348
1346
|
case "ANSI92_ENTRY_SQL":
|
|
@@ -1360,9 +1358,7 @@ export function supportedAnsi92SqlGrammarLevelFromJSON(
|
|
|
1360
1358
|
}
|
|
1361
1359
|
}
|
|
1362
1360
|
|
|
1363
|
-
export function supportedAnsi92SqlGrammarLevelToJSON(
|
|
1364
|
-
object: SupportedAnsi92SqlGrammarLevel,
|
|
1365
|
-
): string {
|
|
1361
|
+
export function supportedAnsi92SqlGrammarLevelToJSON(object: SupportedAnsi92SqlGrammarLevel): string {
|
|
1366
1362
|
switch (object) {
|
|
1367
1363
|
case SupportedAnsi92SqlGrammarLevel.ANSI92_ENTRY_SQL:
|
|
1368
1364
|
return "ANSI92_ENTRY_SQL";
|
|
@@ -1493,9 +1489,7 @@ export enum SqlSupportedPositionedCommands {
|
|
|
1493
1489
|
UNRECOGNIZED = -1,
|
|
1494
1490
|
}
|
|
1495
1491
|
|
|
1496
|
-
export function sqlSupportedPositionedCommandsFromJSON(
|
|
1497
|
-
object: any,
|
|
1498
|
-
): SqlSupportedPositionedCommands {
|
|
1492
|
+
export function sqlSupportedPositionedCommandsFromJSON(object: any): SqlSupportedPositionedCommands {
|
|
1499
1493
|
switch (object) {
|
|
1500
1494
|
case 0:
|
|
1501
1495
|
case "SQL_POSITIONED_DELETE":
|
|
@@ -1510,9 +1504,7 @@ export function sqlSupportedPositionedCommandsFromJSON(
|
|
|
1510
1504
|
}
|
|
1511
1505
|
}
|
|
1512
1506
|
|
|
1513
|
-
export function sqlSupportedPositionedCommandsToJSON(
|
|
1514
|
-
object: SqlSupportedPositionedCommands,
|
|
1515
|
-
): string {
|
|
1507
|
+
export function sqlSupportedPositionedCommandsToJSON(object: SqlSupportedPositionedCommands): string {
|
|
1516
1508
|
switch (object) {
|
|
1517
1509
|
case SqlSupportedPositionedCommands.SQL_POSITIONED_DELETE:
|
|
1518
1510
|
return "SQL_POSITIONED_DELETE";
|
|
@@ -1744,9 +1736,7 @@ export enum SqlSupportedResultSetConcurrency {
|
|
|
1744
1736
|
UNRECOGNIZED = -1,
|
|
1745
1737
|
}
|
|
1746
1738
|
|
|
1747
|
-
export function sqlSupportedResultSetConcurrencyFromJSON(
|
|
1748
|
-
object: any,
|
|
1749
|
-
): SqlSupportedResultSetConcurrency {
|
|
1739
|
+
export function sqlSupportedResultSetConcurrencyFromJSON(object: any): SqlSupportedResultSetConcurrency {
|
|
1750
1740
|
switch (object) {
|
|
1751
1741
|
case 0:
|
|
1752
1742
|
case "SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED":
|
|
@@ -1764,9 +1754,7 @@ export function sqlSupportedResultSetConcurrencyFromJSON(
|
|
|
1764
1754
|
}
|
|
1765
1755
|
}
|
|
1766
1756
|
|
|
1767
|
-
export function sqlSupportedResultSetConcurrencyToJSON(
|
|
1768
|
-
object: SqlSupportedResultSetConcurrency,
|
|
1769
|
-
): string {
|
|
1757
|
+
export function sqlSupportedResultSetConcurrencyToJSON(object: SqlSupportedResultSetConcurrency): string {
|
|
1770
1758
|
switch (object) {
|
|
1771
1759
|
case SqlSupportedResultSetConcurrency.SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED:
|
|
1772
1760
|
return "SQL_RESULT_SET_CONCURRENCY_UNSPECIFIED";
|
|
@@ -2596,7 +2584,9 @@ export interface CommandGetDbSchemas {
|
|
|
2596
2584
|
* An empty string retrieves those without a catalog.
|
|
2597
2585
|
* If omitted the catalog name should not be used to narrow the search.
|
|
2598
2586
|
*/
|
|
2599
|
-
readonly catalog?:
|
|
2587
|
+
readonly catalog?:
|
|
2588
|
+
| string
|
|
2589
|
+
| undefined;
|
|
2600
2590
|
/**
|
|
2601
2591
|
* Specifies a filter pattern for schemas to search for.
|
|
2602
2592
|
* When no db_schema_filter_pattern is provided, the pattern will not be used to narrow the search.
|
|
@@ -2642,7 +2632,9 @@ export interface CommandGetTables {
|
|
|
2642
2632
|
* An empty string retrieves those without a catalog.
|
|
2643
2633
|
* If omitted the catalog name should not be used to narrow the search.
|
|
2644
2634
|
*/
|
|
2645
|
-
readonly catalog?:
|
|
2635
|
+
readonly catalog?:
|
|
2636
|
+
| string
|
|
2637
|
+
| undefined;
|
|
2646
2638
|
/**
|
|
2647
2639
|
* Specifies a filter pattern for schemas to search for.
|
|
2648
2640
|
* When no db_schema_filter_pattern is provided, all schemas matching other filters are searched.
|
|
@@ -2650,7 +2642,9 @@ export interface CommandGetTables {
|
|
|
2650
2642
|
* - "%" means to match any substring with 0 or more characters.
|
|
2651
2643
|
* - "_" means to match any one character.
|
|
2652
2644
|
*/
|
|
2653
|
-
readonly dbSchemaFilterPattern?:
|
|
2645
|
+
readonly dbSchemaFilterPattern?:
|
|
2646
|
+
| string
|
|
2647
|
+
| undefined;
|
|
2654
2648
|
/**
|
|
2655
2649
|
* Specifies a filter pattern for tables to search for.
|
|
2656
2650
|
* When no table_name_filter_pattern is provided, all tables matching other filters are searched.
|
|
@@ -2658,7 +2652,9 @@ export interface CommandGetTables {
|
|
|
2658
2652
|
* - "%" means to match any substring with 0 or more characters.
|
|
2659
2653
|
* - "_" means to match any one character.
|
|
2660
2654
|
*/
|
|
2661
|
-
readonly tableNameFilterPattern?:
|
|
2655
|
+
readonly tableNameFilterPattern?:
|
|
2656
|
+
| string
|
|
2657
|
+
| undefined;
|
|
2662
2658
|
/**
|
|
2663
2659
|
* Specifies a filter of table types which must match.
|
|
2664
2660
|
* The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables.
|
|
@@ -2711,13 +2707,17 @@ export interface CommandGetPrimaryKeys {
|
|
|
2711
2707
|
* An empty string retrieves those without a catalog.
|
|
2712
2708
|
* If omitted the catalog name should not be used to narrow the search.
|
|
2713
2709
|
*/
|
|
2714
|
-
readonly catalog?:
|
|
2710
|
+
readonly catalog?:
|
|
2711
|
+
| string
|
|
2712
|
+
| undefined;
|
|
2715
2713
|
/**
|
|
2716
2714
|
* Specifies the schema to search for the table.
|
|
2717
2715
|
* An empty string retrieves those without a schema.
|
|
2718
2716
|
* If omitted the schema name should not be used to narrow the search.
|
|
2719
2717
|
*/
|
|
2720
|
-
readonly dbSchema?:
|
|
2718
|
+
readonly dbSchema?:
|
|
2719
|
+
| string
|
|
2720
|
+
| undefined;
|
|
2721
2721
|
/** Specifies the table to get the primary keys for. */
|
|
2722
2722
|
readonly table: string;
|
|
2723
2723
|
}
|
|
@@ -2755,13 +2755,17 @@ export interface CommandGetExportedKeys {
|
|
|
2755
2755
|
* An empty string retrieves those without a catalog.
|
|
2756
2756
|
* If omitted the catalog name should not be used to narrow the search.
|
|
2757
2757
|
*/
|
|
2758
|
-
readonly catalog?:
|
|
2758
|
+
readonly catalog?:
|
|
2759
|
+
| string
|
|
2760
|
+
| undefined;
|
|
2759
2761
|
/**
|
|
2760
2762
|
* Specifies the schema to search for the foreign key table.
|
|
2761
2763
|
* An empty string retrieves those without a schema.
|
|
2762
2764
|
* If omitted the schema name should not be used to narrow the search.
|
|
2763
2765
|
*/
|
|
2764
|
-
readonly dbSchema?:
|
|
2766
|
+
readonly dbSchema?:
|
|
2767
|
+
| string
|
|
2768
|
+
| undefined;
|
|
2765
2769
|
/** Specifies the foreign key table to get the foreign keys for. */
|
|
2766
2770
|
readonly table: string;
|
|
2767
2771
|
}
|
|
@@ -2803,13 +2807,17 @@ export interface CommandGetImportedKeys {
|
|
|
2803
2807
|
* An empty string retrieves those without a catalog.
|
|
2804
2808
|
* If omitted the catalog name should not be used to narrow the search.
|
|
2805
2809
|
*/
|
|
2806
|
-
readonly catalog?:
|
|
2810
|
+
readonly catalog?:
|
|
2811
|
+
| string
|
|
2812
|
+
| undefined;
|
|
2807
2813
|
/**
|
|
2808
2814
|
* Specifies the schema to search for the primary key table.
|
|
2809
2815
|
* An empty string retrieves those without a schema.
|
|
2810
2816
|
* If omitted the schema name should not be used to narrow the search.
|
|
2811
2817
|
*/
|
|
2812
|
-
readonly dbSchema?:
|
|
2818
|
+
readonly dbSchema?:
|
|
2819
|
+
| string
|
|
2820
|
+
| undefined;
|
|
2813
2821
|
/** Specifies the primary key table to get the foreign keys for. */
|
|
2814
2822
|
readonly table: string;
|
|
2815
2823
|
}
|
|
@@ -2853,13 +2861,17 @@ export interface CommandGetCrossReference {
|
|
|
2853
2861
|
* An empty string retrieves those without a catalog.
|
|
2854
2862
|
* If omitted the catalog name should not be used to narrow the search.
|
|
2855
2863
|
*/
|
|
2856
|
-
readonly pkCatalog?:
|
|
2864
|
+
readonly pkCatalog?:
|
|
2865
|
+
| string
|
|
2866
|
+
| undefined;
|
|
2857
2867
|
/**
|
|
2858
2868
|
* The Schema name where the parent table is.
|
|
2859
2869
|
* An empty string retrieves those without a schema.
|
|
2860
2870
|
* If omitted the schema name should not be used to narrow the search.
|
|
2861
2871
|
*/
|
|
2862
|
-
readonly pkDbSchema?:
|
|
2872
|
+
readonly pkDbSchema?:
|
|
2873
|
+
| string
|
|
2874
|
+
| undefined;
|
|
2863
2875
|
/** The parent table name. It cannot be null. */
|
|
2864
2876
|
readonly pkTable: string;
|
|
2865
2877
|
/**
|
|
@@ -2867,13 +2879,17 @@ export interface CommandGetCrossReference {
|
|
|
2867
2879
|
* An empty string retrieves those without a catalog.
|
|
2868
2880
|
* If omitted the catalog name should not be used to narrow the search.
|
|
2869
2881
|
*/
|
|
2870
|
-
readonly fkCatalog?:
|
|
2882
|
+
readonly fkCatalog?:
|
|
2883
|
+
| string
|
|
2884
|
+
| undefined;
|
|
2871
2885
|
/**
|
|
2872
2886
|
* The schema name where the foreign table is.
|
|
2873
2887
|
* An empty string retrieves those without a schema.
|
|
2874
2888
|
* If omitted the schema name should not be used to narrow the search.
|
|
2875
2889
|
*/
|
|
2876
|
-
readonly fkDbSchema?:
|
|
2890
|
+
readonly fkDbSchema?:
|
|
2891
|
+
| string
|
|
2892
|
+
| undefined;
|
|
2877
2893
|
/** The foreign table name. It cannot be null. */
|
|
2878
2894
|
readonly fkTable: string;
|
|
2879
2895
|
}
|
|
@@ -2912,7 +2928,9 @@ export interface SubstraitPlan {
|
|
|
2912
2928
|
export interface ActionCreatePreparedSubstraitPlanRequest {
|
|
2913
2929
|
$type: "arrow.flight.protocol.sql.ActionCreatePreparedSubstraitPlanRequest";
|
|
2914
2930
|
/** The serialized substrait.Plan to create a prepared statement for. */
|
|
2915
|
-
readonly plan:
|
|
2931
|
+
readonly plan:
|
|
2932
|
+
| SubstraitPlan
|
|
2933
|
+
| undefined;
|
|
2916
2934
|
/**
|
|
2917
2935
|
* Create/execute the prepared statement as part of this transaction (if
|
|
2918
2936
|
* unset, executions of the prepared statement will be auto-committed).
|
|
@@ -3099,9 +3117,7 @@ export enum ActionEndSavepointRequest_EndSavepoint {
|
|
|
3099
3117
|
UNRECOGNIZED = -1,
|
|
3100
3118
|
}
|
|
3101
3119
|
|
|
3102
|
-
export function actionEndSavepointRequest_EndSavepointFromJSON(
|
|
3103
|
-
object: any,
|
|
3104
|
-
): ActionEndSavepointRequest_EndSavepoint {
|
|
3120
|
+
export function actionEndSavepointRequest_EndSavepointFromJSON(object: any): ActionEndSavepointRequest_EndSavepoint {
|
|
3105
3121
|
switch (object) {
|
|
3106
3122
|
case 0:
|
|
3107
3123
|
case "END_SAVEPOINT_UNSPECIFIED":
|
|
@@ -3119,9 +3135,7 @@ export function actionEndSavepointRequest_EndSavepointFromJSON(
|
|
|
3119
3135
|
}
|
|
3120
3136
|
}
|
|
3121
3137
|
|
|
3122
|
-
export function actionEndSavepointRequest_EndSavepointToJSON(
|
|
3123
|
-
object: ActionEndSavepointRequest_EndSavepoint,
|
|
3124
|
-
): string {
|
|
3138
|
+
export function actionEndSavepointRequest_EndSavepointToJSON(object: ActionEndSavepointRequest_EndSavepoint): string {
|
|
3125
3139
|
switch (object) {
|
|
3126
3140
|
case ActionEndSavepointRequest_EndSavepoint.UNSPECIFIED:
|
|
3127
3141
|
return "END_SAVEPOINT_UNSPECIFIED";
|
|
@@ -3181,7 +3195,9 @@ export interface CommandStatementQuery {
|
|
|
3181
3195
|
export interface CommandStatementSubstraitPlan {
|
|
3182
3196
|
$type: "arrow.flight.protocol.sql.CommandStatementSubstraitPlan";
|
|
3183
3197
|
/** A serialized substrait.Plan */
|
|
3184
|
-
readonly plan:
|
|
3198
|
+
readonly plan:
|
|
3199
|
+
| SubstraitPlan
|
|
3200
|
+
| undefined;
|
|
3185
3201
|
/** Include the query as part of this transaction (if unset, the query is auto-committed). */
|
|
3186
3202
|
readonly transactionId?: Uint8Array | undefined;
|
|
3187
3203
|
}
|
|
@@ -3254,13 +3270,19 @@ export interface CommandPreparedStatementUpdate {
|
|
|
3254
3270
|
export interface CommandStatementIngest {
|
|
3255
3271
|
$type: "arrow.flight.protocol.sql.CommandStatementIngest";
|
|
3256
3272
|
/** The behavior for handling the table definition. */
|
|
3257
|
-
readonly tableDefinitionOptions:
|
|
3273
|
+
readonly tableDefinitionOptions:
|
|
3274
|
+
| CommandStatementIngest_TableDefinitionOptions
|
|
3275
|
+
| undefined;
|
|
3258
3276
|
/** The table to load data into. */
|
|
3259
3277
|
readonly table: string;
|
|
3260
3278
|
/** The db_schema of the destination table to load data into. If unset, a backend-specific default may be used. */
|
|
3261
|
-
readonly schema?:
|
|
3279
|
+
readonly schema?:
|
|
3280
|
+
| string
|
|
3281
|
+
| undefined;
|
|
3262
3282
|
/** The catalog of the destination table to load data into. If unset, a backend-specific default may be used. */
|
|
3263
|
-
readonly catalog?:
|
|
3283
|
+
readonly catalog?:
|
|
3284
|
+
| string
|
|
3285
|
+
| undefined;
|
|
3264
3286
|
/**
|
|
3265
3287
|
* Store ingested data in a temporary table.
|
|
3266
3288
|
* The effect of setting temporary is to place the table in a backend-defined namespace, and to drop the table at the end of the session.
|
|
@@ -3269,7 +3291,9 @@ export interface CommandStatementIngest {
|
|
|
3269
3291
|
*/
|
|
3270
3292
|
readonly temporary: boolean;
|
|
3271
3293
|
/** Perform the ingestion as part of this transaction. If specified, results should not be committed in the event of an error/cancellation. */
|
|
3272
|
-
readonly transactionId?:
|
|
3294
|
+
readonly transactionId?:
|
|
3295
|
+
| Uint8Array
|
|
3296
|
+
| undefined;
|
|
3273
3297
|
/** Backend-specific options. */
|
|
3274
3298
|
readonly options: { [key: string]: string };
|
|
3275
3299
|
}
|
|
@@ -3494,9 +3518,7 @@ export enum ActionCancelQueryResult_CancelResult {
|
|
|
3494
3518
|
UNRECOGNIZED = -1,
|
|
3495
3519
|
}
|
|
3496
3520
|
|
|
3497
|
-
export function actionCancelQueryResult_CancelResultFromJSON(
|
|
3498
|
-
object: any,
|
|
3499
|
-
): ActionCancelQueryResult_CancelResult {
|
|
3521
|
+
export function actionCancelQueryResult_CancelResultFromJSON(object: any): ActionCancelQueryResult_CancelResult {
|
|
3500
3522
|
switch (object) {
|
|
3501
3523
|
case 0:
|
|
3502
3524
|
case "CANCEL_RESULT_UNSPECIFIED":
|
|
@@ -3517,9 +3539,7 @@ export function actionCancelQueryResult_CancelResultFromJSON(
|
|
|
3517
3539
|
}
|
|
3518
3540
|
}
|
|
3519
3541
|
|
|
3520
|
-
export function actionCancelQueryResult_CancelResultToJSON(
|
|
3521
|
-
object: ActionCancelQueryResult_CancelResult,
|
|
3522
|
-
): string {
|
|
3542
|
+
export function actionCancelQueryResult_CancelResultToJSON(object: ActionCancelQueryResult_CancelResult): string {
|
|
3523
3543
|
switch (object) {
|
|
3524
3544
|
case ActionCancelQueryResult_CancelResult.UNSPECIFIED:
|
|
3525
3545
|
return "CANCEL_RESULT_UNSPECIFIED";
|
|
@@ -3539,10 +3559,7 @@ function createBaseCommandGetSqlInfo(): CommandGetSqlInfo {
|
|
|
3539
3559
|
return { $type: "arrow.flight.protocol.sql.CommandGetSqlInfo", info: [] };
|
|
3540
3560
|
}
|
|
3541
3561
|
|
|
3542
|
-
export const CommandGetSqlInfo: MessageFns<
|
|
3543
|
-
CommandGetSqlInfo,
|
|
3544
|
-
"arrow.flight.protocol.sql.CommandGetSqlInfo"
|
|
3545
|
-
> = {
|
|
3562
|
+
export const CommandGetSqlInfo: MessageFns<CommandGetSqlInfo, "arrow.flight.protocol.sql.CommandGetSqlInfo"> = {
|
|
3546
3563
|
$type: "arrow.flight.protocol.sql.CommandGetSqlInfo" as const,
|
|
3547
3564
|
|
|
3548
3565
|
encode(message: CommandGetSqlInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
@@ -3591,9 +3608,7 @@ export const CommandGetSqlInfo: MessageFns<
|
|
|
3591
3608
|
fromJSON(object: any): CommandGetSqlInfo {
|
|
3592
3609
|
return {
|
|
3593
3610
|
$type: CommandGetSqlInfo.$type,
|
|
3594
|
-
info: globalThis.Array.isArray(object?.info)
|
|
3595
|
-
? object.info.map((e: any) => globalThis.Number(e))
|
|
3596
|
-
: [],
|
|
3611
|
+
info: globalThis.Array.isArray(object?.info) ? object.info.map((e: any) => globalThis.Number(e)) : [],
|
|
3597
3612
|
};
|
|
3598
3613
|
},
|
|
3599
3614
|
|
|
@@ -3673,14 +3688,10 @@ export const CommandGetXdbcTypeInfo: MessageFns<
|
|
|
3673
3688
|
return obj;
|
|
3674
3689
|
},
|
|
3675
3690
|
|
|
3676
|
-
create<I extends Exact<DeepPartial<CommandGetXdbcTypeInfo>, I>>(
|
|
3677
|
-
base?: I,
|
|
3678
|
-
): CommandGetXdbcTypeInfo {
|
|
3691
|
+
create<I extends Exact<DeepPartial<CommandGetXdbcTypeInfo>, I>>(base?: I): CommandGetXdbcTypeInfo {
|
|
3679
3692
|
return CommandGetXdbcTypeInfo.fromPartial(base ?? ({} as any));
|
|
3680
3693
|
},
|
|
3681
|
-
fromPartial<I extends Exact<DeepPartial<CommandGetXdbcTypeInfo>, I>>(
|
|
3682
|
-
object: I,
|
|
3683
|
-
): CommandGetXdbcTypeInfo {
|
|
3694
|
+
fromPartial<I extends Exact<DeepPartial<CommandGetXdbcTypeInfo>, I>>(object: I): CommandGetXdbcTypeInfo {
|
|
3684
3695
|
const message = createBaseCommandGetXdbcTypeInfo() as any;
|
|
3685
3696
|
message.dataType = object.dataType ?? undefined;
|
|
3686
3697
|
return message;
|
|
@@ -3693,10 +3704,7 @@ function createBaseCommandGetCatalogs(): CommandGetCatalogs {
|
|
|
3693
3704
|
return { $type: "arrow.flight.protocol.sql.CommandGetCatalogs" };
|
|
3694
3705
|
}
|
|
3695
3706
|
|
|
3696
|
-
export const CommandGetCatalogs: MessageFns<
|
|
3697
|
-
CommandGetCatalogs,
|
|
3698
|
-
"arrow.flight.protocol.sql.CommandGetCatalogs"
|
|
3699
|
-
> = {
|
|
3707
|
+
export const CommandGetCatalogs: MessageFns<CommandGetCatalogs, "arrow.flight.protocol.sql.CommandGetCatalogs"> = {
|
|
3700
3708
|
$type: "arrow.flight.protocol.sql.CommandGetCatalogs" as const,
|
|
3701
3709
|
|
|
3702
3710
|
encode(_: CommandGetCatalogs, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
@@ -3747,10 +3755,7 @@ function createBaseCommandGetDbSchemas(): CommandGetDbSchemas {
|
|
|
3747
3755
|
};
|
|
3748
3756
|
}
|
|
3749
3757
|
|
|
3750
|
-
export const CommandGetDbSchemas: MessageFns<
|
|
3751
|
-
CommandGetDbSchemas,
|
|
3752
|
-
"arrow.flight.protocol.sql.CommandGetDbSchemas"
|
|
3753
|
-
> = {
|
|
3758
|
+
export const CommandGetDbSchemas: MessageFns<CommandGetDbSchemas, "arrow.flight.protocol.sql.CommandGetDbSchemas"> = {
|
|
3754
3759
|
$type: "arrow.flight.protocol.sql.CommandGetDbSchemas" as const,
|
|
3755
3760
|
|
|
3756
3761
|
encode(message: CommandGetDbSchemas, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
@@ -3819,9 +3824,7 @@ export const CommandGetDbSchemas: MessageFns<
|
|
|
3819
3824
|
create<I extends Exact<DeepPartial<CommandGetDbSchemas>, I>>(base?: I): CommandGetDbSchemas {
|
|
3820
3825
|
return CommandGetDbSchemas.fromPartial(base ?? ({} as any));
|
|
3821
3826
|
},
|
|
3822
|
-
fromPartial<I extends Exact<DeepPartial<CommandGetDbSchemas>, I>>(
|
|
3823
|
-
object: I,
|
|
3824
|
-
): CommandGetDbSchemas {
|
|
3827
|
+
fromPartial<I extends Exact<DeepPartial<CommandGetDbSchemas>, I>>(object: I): CommandGetDbSchemas {
|
|
3825
3828
|
const message = createBaseCommandGetDbSchemas() as any;
|
|
3826
3829
|
message.catalog = object.catalog ?? undefined;
|
|
3827
3830
|
message.dbSchemaFilterPattern = object.dbSchemaFilterPattern ?? undefined;
|
|
@@ -3842,10 +3845,7 @@ function createBaseCommandGetTables(): CommandGetTables {
|
|
|
3842
3845
|
};
|
|
3843
3846
|
}
|
|
3844
3847
|
|
|
3845
|
-
export const CommandGetTables: MessageFns<
|
|
3846
|
-
CommandGetTables,
|
|
3847
|
-
"arrow.flight.protocol.sql.CommandGetTables"
|
|
3848
|
-
> = {
|
|
3848
|
+
export const CommandGetTables: MessageFns<CommandGetTables, "arrow.flight.protocol.sql.CommandGetTables"> = {
|
|
3849
3849
|
$type: "arrow.flight.protocol.sql.CommandGetTables" as const,
|
|
3850
3850
|
|
|
3851
3851
|
encode(message: CommandGetTables, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
@@ -3980,49 +3980,47 @@ function createBaseCommandGetTableTypes(): CommandGetTableTypes {
|
|
|
3980
3980
|
return { $type: "arrow.flight.protocol.sql.CommandGetTableTypes" };
|
|
3981
3981
|
}
|
|
3982
3982
|
|
|
3983
|
-
export const CommandGetTableTypes: MessageFns<
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
> = {
|
|
3987
|
-
$type: "arrow.flight.protocol.sql.CommandGetTableTypes" as const,
|
|
3983
|
+
export const CommandGetTableTypes: MessageFns<CommandGetTableTypes, "arrow.flight.protocol.sql.CommandGetTableTypes"> =
|
|
3984
|
+
{
|
|
3985
|
+
$type: "arrow.flight.protocol.sql.CommandGetTableTypes" as const,
|
|
3988
3986
|
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3987
|
+
encode(_: CommandGetTableTypes, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3988
|
+
return writer;
|
|
3989
|
+
},
|
|
3992
3990
|
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
3991
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommandGetTableTypes {
|
|
3992
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3993
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3994
|
+
const message = createBaseCommandGetTableTypes() as any;
|
|
3995
|
+
while (reader.pos < end) {
|
|
3996
|
+
const tag = reader.uint32();
|
|
3997
|
+
switch (tag >>> 3) {
|
|
3998
|
+
}
|
|
3999
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4000
|
+
break;
|
|
4001
|
+
}
|
|
4002
|
+
reader.skip(tag & 7);
|
|
4003
4003
|
}
|
|
4004
|
-
|
|
4005
|
-
}
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
},
|
|
4025
|
-
};
|
|
4004
|
+
return message;
|
|
4005
|
+
},
|
|
4006
|
+
|
|
4007
|
+
fromJSON(_: any): CommandGetTableTypes {
|
|
4008
|
+
return { $type: CommandGetTableTypes.$type };
|
|
4009
|
+
},
|
|
4010
|
+
|
|
4011
|
+
toJSON(_: CommandGetTableTypes): unknown {
|
|
4012
|
+
const obj: any = {};
|
|
4013
|
+
return obj;
|
|
4014
|
+
},
|
|
4015
|
+
|
|
4016
|
+
create<I extends Exact<DeepPartial<CommandGetTableTypes>, I>>(base?: I): CommandGetTableTypes {
|
|
4017
|
+
return CommandGetTableTypes.fromPartial(base ?? ({} as any));
|
|
4018
|
+
},
|
|
4019
|
+
fromPartial<I extends Exact<DeepPartial<CommandGetTableTypes>, I>>(_: I): CommandGetTableTypes {
|
|
4020
|
+
const message = createBaseCommandGetTableTypes() as any;
|
|
4021
|
+
return message;
|
|
4022
|
+
},
|
|
4023
|
+
};
|
|
4026
4024
|
|
|
4027
4025
|
messageTypeRegistry.set(CommandGetTableTypes.$type, CommandGetTableTypes);
|
|
4028
4026
|
|
|
@@ -4120,9 +4118,7 @@ export const CommandGetPrimaryKeys: MessageFns<
|
|
|
4120
4118
|
create<I extends Exact<DeepPartial<CommandGetPrimaryKeys>, I>>(base?: I): CommandGetPrimaryKeys {
|
|
4121
4119
|
return CommandGetPrimaryKeys.fromPartial(base ?? ({} as any));
|
|
4122
4120
|
},
|
|
4123
|
-
fromPartial<I extends Exact<DeepPartial<CommandGetPrimaryKeys>, I>>(
|
|
4124
|
-
object: I,
|
|
4125
|
-
): CommandGetPrimaryKeys {
|
|
4121
|
+
fromPartial<I extends Exact<DeepPartial<CommandGetPrimaryKeys>, I>>(object: I): CommandGetPrimaryKeys {
|
|
4126
4122
|
const message = createBaseCommandGetPrimaryKeys() as any;
|
|
4127
4123
|
message.catalog = object.catalog ?? undefined;
|
|
4128
4124
|
message.dbSchema = object.dbSchema ?? undefined;
|
|
@@ -4224,14 +4220,10 @@ export const CommandGetExportedKeys: MessageFns<
|
|
|
4224
4220
|
return obj;
|
|
4225
4221
|
},
|
|
4226
4222
|
|
|
4227
|
-
create<I extends Exact<DeepPartial<CommandGetExportedKeys>, I>>(
|
|
4228
|
-
base?: I,
|
|
4229
|
-
): CommandGetExportedKeys {
|
|
4223
|
+
create<I extends Exact<DeepPartial<CommandGetExportedKeys>, I>>(base?: I): CommandGetExportedKeys {
|
|
4230
4224
|
return CommandGetExportedKeys.fromPartial(base ?? ({} as any));
|
|
4231
4225
|
},
|
|
4232
|
-
fromPartial<I extends Exact<DeepPartial<CommandGetExportedKeys>, I>>(
|
|
4233
|
-
object: I,
|
|
4234
|
-
): CommandGetExportedKeys {
|
|
4226
|
+
fromPartial<I extends Exact<DeepPartial<CommandGetExportedKeys>, I>>(object: I): CommandGetExportedKeys {
|
|
4235
4227
|
const message = createBaseCommandGetExportedKeys() as any;
|
|
4236
4228
|
message.catalog = object.catalog ?? undefined;
|
|
4237
4229
|
message.dbSchema = object.dbSchema ?? undefined;
|
|
@@ -4333,14 +4325,10 @@ export const CommandGetImportedKeys: MessageFns<
|
|
|
4333
4325
|
return obj;
|
|
4334
4326
|
},
|
|
4335
4327
|
|
|
4336
|
-
create<I extends Exact<DeepPartial<CommandGetImportedKeys>, I>>(
|
|
4337
|
-
base?: I,
|
|
4338
|
-
): CommandGetImportedKeys {
|
|
4328
|
+
create<I extends Exact<DeepPartial<CommandGetImportedKeys>, I>>(base?: I): CommandGetImportedKeys {
|
|
4339
4329
|
return CommandGetImportedKeys.fromPartial(base ?? ({} as any));
|
|
4340
4330
|
},
|
|
4341
|
-
fromPartial<I extends Exact<DeepPartial<CommandGetImportedKeys>, I>>(
|
|
4342
|
-
object: I,
|
|
4343
|
-
): CommandGetImportedKeys {
|
|
4331
|
+
fromPartial<I extends Exact<DeepPartial<CommandGetImportedKeys>, I>>(object: I): CommandGetImportedKeys {
|
|
4344
4332
|
const message = createBaseCommandGetImportedKeys() as any;
|
|
4345
4333
|
message.catalog = object.catalog ?? undefined;
|
|
4346
4334
|
message.dbSchema = object.dbSchema ?? undefined;
|
|
@@ -4369,10 +4357,7 @@ export const CommandGetCrossReference: MessageFns<
|
|
|
4369
4357
|
> = {
|
|
4370
4358
|
$type: "arrow.flight.protocol.sql.CommandGetCrossReference" as const,
|
|
4371
4359
|
|
|
4372
|
-
encode(
|
|
4373
|
-
message: CommandGetCrossReference,
|
|
4374
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
4375
|
-
): BinaryWriter {
|
|
4360
|
+
encode(message: CommandGetCrossReference, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
4376
4361
|
if (message.pkCatalog !== undefined) {
|
|
4377
4362
|
writer.uint32(10).string(message.pkCatalog);
|
|
4378
4363
|
}
|
|
@@ -4493,14 +4478,10 @@ export const CommandGetCrossReference: MessageFns<
|
|
|
4493
4478
|
return obj;
|
|
4494
4479
|
},
|
|
4495
4480
|
|
|
4496
|
-
create<I extends Exact<DeepPartial<CommandGetCrossReference>, I>>(
|
|
4497
|
-
base?: I,
|
|
4498
|
-
): CommandGetCrossReference {
|
|
4481
|
+
create<I extends Exact<DeepPartial<CommandGetCrossReference>, I>>(base?: I): CommandGetCrossReference {
|
|
4499
4482
|
return CommandGetCrossReference.fromPartial(base ?? ({} as any));
|
|
4500
4483
|
},
|
|
4501
|
-
fromPartial<I extends Exact<DeepPartial<CommandGetCrossReference>, I>>(
|
|
4502
|
-
object: I,
|
|
4503
|
-
): CommandGetCrossReference {
|
|
4484
|
+
fromPartial<I extends Exact<DeepPartial<CommandGetCrossReference>, I>>(object: I): CommandGetCrossReference {
|
|
4504
4485
|
const message = createBaseCommandGetCrossReference() as any;
|
|
4505
4486
|
message.pkCatalog = object.pkCatalog ?? undefined;
|
|
4506
4487
|
message.pkDbSchema = object.pkDbSchema ?? undefined;
|
|
@@ -4528,10 +4509,7 @@ export const ActionCreatePreparedStatementRequest: MessageFns<
|
|
|
4528
4509
|
> = {
|
|
4529
4510
|
$type: "arrow.flight.protocol.sql.ActionCreatePreparedStatementRequest" as const,
|
|
4530
4511
|
|
|
4531
|
-
encode(
|
|
4532
|
-
message: ActionCreatePreparedStatementRequest,
|
|
4533
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
4534
|
-
): BinaryWriter {
|
|
4512
|
+
encode(message: ActionCreatePreparedStatementRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
4535
4513
|
if (message.query !== "") {
|
|
4536
4514
|
writer.uint32(10).string(message.query);
|
|
4537
4515
|
}
|
|
@@ -4577,9 +4555,7 @@ export const ActionCreatePreparedStatementRequest: MessageFns<
|
|
|
4577
4555
|
return {
|
|
4578
4556
|
$type: ActionCreatePreparedStatementRequest.$type,
|
|
4579
4557
|
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
4580
|
-
transactionId: isSet(object.transactionId)
|
|
4581
|
-
? bytesFromBase64(object.transactionId)
|
|
4582
|
-
: undefined,
|
|
4558
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : undefined,
|
|
4583
4559
|
};
|
|
4584
4560
|
},
|
|
4585
4561
|
|
|
@@ -4609,10 +4585,7 @@ export const ActionCreatePreparedStatementRequest: MessageFns<
|
|
|
4609
4585
|
},
|
|
4610
4586
|
};
|
|
4611
4587
|
|
|
4612
|
-
messageTypeRegistry.set(
|
|
4613
|
-
ActionCreatePreparedStatementRequest.$type,
|
|
4614
|
-
ActionCreatePreparedStatementRequest,
|
|
4615
|
-
);
|
|
4588
|
+
messageTypeRegistry.set(ActionCreatePreparedStatementRequest.$type, ActionCreatePreparedStatementRequest);
|
|
4616
4589
|
|
|
4617
4590
|
function createBaseSubstraitPlan(): SubstraitPlan {
|
|
4618
4591
|
return { $type: "arrow.flight.protocol.sql.SubstraitPlan", plan: new Uint8Array(0), version: "" };
|
|
@@ -4709,10 +4682,7 @@ export const ActionCreatePreparedSubstraitPlanRequest: MessageFns<
|
|
|
4709
4682
|
> = {
|
|
4710
4683
|
$type: "arrow.flight.protocol.sql.ActionCreatePreparedSubstraitPlanRequest" as const,
|
|
4711
4684
|
|
|
4712
|
-
encode(
|
|
4713
|
-
message: ActionCreatePreparedSubstraitPlanRequest,
|
|
4714
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
4715
|
-
): BinaryWriter {
|
|
4685
|
+
encode(message: ActionCreatePreparedSubstraitPlanRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
4716
4686
|
if (message.plan !== undefined) {
|
|
4717
4687
|
SubstraitPlan.encode(message.plan, writer.uint32(10).fork()).join();
|
|
4718
4688
|
}
|
|
@@ -4722,10 +4692,7 @@ export const ActionCreatePreparedSubstraitPlanRequest: MessageFns<
|
|
|
4722
4692
|
return writer;
|
|
4723
4693
|
},
|
|
4724
4694
|
|
|
4725
|
-
decode(
|
|
4726
|
-
input: BinaryReader | Uint8Array,
|
|
4727
|
-
length?: number,
|
|
4728
|
-
): ActionCreatePreparedSubstraitPlanRequest {
|
|
4695
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ActionCreatePreparedSubstraitPlanRequest {
|
|
4729
4696
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4730
4697
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4731
4698
|
const message = createBaseActionCreatePreparedSubstraitPlanRequest() as any;
|
|
@@ -4761,9 +4728,7 @@ export const ActionCreatePreparedSubstraitPlanRequest: MessageFns<
|
|
|
4761
4728
|
return {
|
|
4762
4729
|
$type: ActionCreatePreparedSubstraitPlanRequest.$type,
|
|
4763
4730
|
plan: isSet(object.plan) ? SubstraitPlan.fromJSON(object.plan) : undefined,
|
|
4764
|
-
transactionId: isSet(object.transactionId)
|
|
4765
|
-
? bytesFromBase64(object.transactionId)
|
|
4766
|
-
: undefined,
|
|
4731
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : undefined,
|
|
4767
4732
|
};
|
|
4768
4733
|
},
|
|
4769
4734
|
|
|
@@ -4787,19 +4752,15 @@ export const ActionCreatePreparedSubstraitPlanRequest: MessageFns<
|
|
|
4787
4752
|
object: I,
|
|
4788
4753
|
): ActionCreatePreparedSubstraitPlanRequest {
|
|
4789
4754
|
const message = createBaseActionCreatePreparedSubstraitPlanRequest() as any;
|
|
4790
|
-
message.plan =
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
: undefined;
|
|
4755
|
+
message.plan = (object.plan !== undefined && object.plan !== null)
|
|
4756
|
+
? SubstraitPlan.fromPartial(object.plan)
|
|
4757
|
+
: undefined;
|
|
4794
4758
|
message.transactionId = object.transactionId ?? undefined;
|
|
4795
4759
|
return message;
|
|
4796
4760
|
},
|
|
4797
4761
|
};
|
|
4798
4762
|
|
|
4799
|
-
messageTypeRegistry.set(
|
|
4800
|
-
ActionCreatePreparedSubstraitPlanRequest.$type,
|
|
4801
|
-
ActionCreatePreparedSubstraitPlanRequest,
|
|
4802
|
-
);
|
|
4763
|
+
messageTypeRegistry.set(ActionCreatePreparedSubstraitPlanRequest.$type, ActionCreatePreparedSubstraitPlanRequest);
|
|
4803
4764
|
|
|
4804
4765
|
function createBaseActionCreatePreparedStatementResult(): ActionCreatePreparedStatementResult {
|
|
4805
4766
|
return {
|
|
@@ -4816,10 +4777,7 @@ export const ActionCreatePreparedStatementResult: MessageFns<
|
|
|
4816
4777
|
> = {
|
|
4817
4778
|
$type: "arrow.flight.protocol.sql.ActionCreatePreparedStatementResult" as const,
|
|
4818
4779
|
|
|
4819
|
-
encode(
|
|
4820
|
-
message: ActionCreatePreparedStatementResult,
|
|
4821
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
4822
|
-
): BinaryWriter {
|
|
4780
|
+
encode(message: ActionCreatePreparedStatementResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
4823
4781
|
if (message.preparedStatementHandle.length !== 0) {
|
|
4824
4782
|
writer.uint32(10).bytes(message.preparedStatementHandle);
|
|
4825
4783
|
}
|
|
@@ -4878,12 +4836,8 @@ export const ActionCreatePreparedStatementResult: MessageFns<
|
|
|
4878
4836
|
preparedStatementHandle: isSet(object.preparedStatementHandle)
|
|
4879
4837
|
? bytesFromBase64(object.preparedStatementHandle)
|
|
4880
4838
|
: new Uint8Array(0),
|
|
4881
|
-
datasetSchema: isSet(object.datasetSchema)
|
|
4882
|
-
|
|
4883
|
-
: new Uint8Array(0),
|
|
4884
|
-
parameterSchema: isSet(object.parameterSchema)
|
|
4885
|
-
? bytesFromBase64(object.parameterSchema)
|
|
4886
|
-
: new Uint8Array(0),
|
|
4839
|
+
datasetSchema: isSet(object.datasetSchema) ? bytesFromBase64(object.datasetSchema) : new Uint8Array(0),
|
|
4840
|
+
parameterSchema: isSet(object.parameterSchema) ? bytesFromBase64(object.parameterSchema) : new Uint8Array(0),
|
|
4887
4841
|
};
|
|
4888
4842
|
},
|
|
4889
4843
|
|
|
@@ -4917,10 +4871,7 @@ export const ActionCreatePreparedStatementResult: MessageFns<
|
|
|
4917
4871
|
},
|
|
4918
4872
|
};
|
|
4919
4873
|
|
|
4920
|
-
messageTypeRegistry.set(
|
|
4921
|
-
ActionCreatePreparedStatementResult.$type,
|
|
4922
|
-
ActionCreatePreparedStatementResult,
|
|
4923
|
-
);
|
|
4874
|
+
messageTypeRegistry.set(ActionCreatePreparedStatementResult.$type, ActionCreatePreparedStatementResult);
|
|
4924
4875
|
|
|
4925
4876
|
function createBaseActionClosePreparedStatementRequest(): ActionClosePreparedStatementRequest {
|
|
4926
4877
|
return {
|
|
@@ -4935,10 +4886,7 @@ export const ActionClosePreparedStatementRequest: MessageFns<
|
|
|
4935
4886
|
> = {
|
|
4936
4887
|
$type: "arrow.flight.protocol.sql.ActionClosePreparedStatementRequest" as const,
|
|
4937
4888
|
|
|
4938
|
-
encode(
|
|
4939
|
-
message: ActionClosePreparedStatementRequest,
|
|
4940
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
4941
|
-
): BinaryWriter {
|
|
4889
|
+
encode(message: ActionClosePreparedStatementRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
4942
4890
|
if (message.preparedStatementHandle.length !== 0) {
|
|
4943
4891
|
writer.uint32(10).bytes(message.preparedStatementHandle);
|
|
4944
4892
|
}
|
|
@@ -5000,10 +4948,7 @@ export const ActionClosePreparedStatementRequest: MessageFns<
|
|
|
5000
4948
|
},
|
|
5001
4949
|
};
|
|
5002
4950
|
|
|
5003
|
-
messageTypeRegistry.set(
|
|
5004
|
-
ActionClosePreparedStatementRequest.$type,
|
|
5005
|
-
ActionClosePreparedStatementRequest,
|
|
5006
|
-
);
|
|
4951
|
+
messageTypeRegistry.set(ActionClosePreparedStatementRequest.$type, ActionClosePreparedStatementRequest);
|
|
5007
4952
|
|
|
5008
4953
|
function createBaseActionBeginTransactionRequest(): ActionBeginTransactionRequest {
|
|
5009
4954
|
return { $type: "arrow.flight.protocol.sql.ActionBeginTransactionRequest" };
|
|
@@ -5015,10 +4960,7 @@ export const ActionBeginTransactionRequest: MessageFns<
|
|
|
5015
4960
|
> = {
|
|
5016
4961
|
$type: "arrow.flight.protocol.sql.ActionBeginTransactionRequest" as const,
|
|
5017
4962
|
|
|
5018
|
-
encode(
|
|
5019
|
-
_: ActionBeginTransactionRequest,
|
|
5020
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5021
|
-
): BinaryWriter {
|
|
4963
|
+
encode(_: ActionBeginTransactionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5022
4964
|
return writer;
|
|
5023
4965
|
},
|
|
5024
4966
|
|
|
@@ -5047,14 +4989,10 @@ export const ActionBeginTransactionRequest: MessageFns<
|
|
|
5047
4989
|
return obj;
|
|
5048
4990
|
},
|
|
5049
4991
|
|
|
5050
|
-
create<I extends Exact<DeepPartial<ActionBeginTransactionRequest>, I>>(
|
|
5051
|
-
base?: I,
|
|
5052
|
-
): ActionBeginTransactionRequest {
|
|
4992
|
+
create<I extends Exact<DeepPartial<ActionBeginTransactionRequest>, I>>(base?: I): ActionBeginTransactionRequest {
|
|
5053
4993
|
return ActionBeginTransactionRequest.fromPartial(base ?? ({} as any));
|
|
5054
4994
|
},
|
|
5055
|
-
fromPartial<I extends Exact<DeepPartial<ActionBeginTransactionRequest>, I>>(
|
|
5056
|
-
_: I,
|
|
5057
|
-
): ActionBeginTransactionRequest {
|
|
4995
|
+
fromPartial<I extends Exact<DeepPartial<ActionBeginTransactionRequest>, I>>(_: I): ActionBeginTransactionRequest {
|
|
5058
4996
|
const message = createBaseActionBeginTransactionRequest() as any;
|
|
5059
4997
|
return message;
|
|
5060
4998
|
},
|
|
@@ -5063,11 +5001,7 @@ export const ActionBeginTransactionRequest: MessageFns<
|
|
|
5063
5001
|
messageTypeRegistry.set(ActionBeginTransactionRequest.$type, ActionBeginTransactionRequest);
|
|
5064
5002
|
|
|
5065
5003
|
function createBaseActionBeginSavepointRequest(): ActionBeginSavepointRequest {
|
|
5066
|
-
return {
|
|
5067
|
-
$type: "arrow.flight.protocol.sql.ActionBeginSavepointRequest",
|
|
5068
|
-
transactionId: new Uint8Array(0),
|
|
5069
|
-
name: "",
|
|
5070
|
-
};
|
|
5004
|
+
return { $type: "arrow.flight.protocol.sql.ActionBeginSavepointRequest", transactionId: new Uint8Array(0), name: "" };
|
|
5071
5005
|
}
|
|
5072
5006
|
|
|
5073
5007
|
export const ActionBeginSavepointRequest: MessageFns<
|
|
@@ -5076,10 +5010,7 @@ export const ActionBeginSavepointRequest: MessageFns<
|
|
|
5076
5010
|
> = {
|
|
5077
5011
|
$type: "arrow.flight.protocol.sql.ActionBeginSavepointRequest" as const,
|
|
5078
5012
|
|
|
5079
|
-
encode(
|
|
5080
|
-
message: ActionBeginSavepointRequest,
|
|
5081
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5082
|
-
): BinaryWriter {
|
|
5013
|
+
encode(message: ActionBeginSavepointRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5083
5014
|
if (message.transactionId.length !== 0) {
|
|
5084
5015
|
writer.uint32(10).bytes(message.transactionId);
|
|
5085
5016
|
}
|
|
@@ -5124,9 +5055,7 @@ export const ActionBeginSavepointRequest: MessageFns<
|
|
|
5124
5055
|
fromJSON(object: any): ActionBeginSavepointRequest {
|
|
5125
5056
|
return {
|
|
5126
5057
|
$type: ActionBeginSavepointRequest.$type,
|
|
5127
|
-
transactionId: isSet(object.transactionId)
|
|
5128
|
-
? bytesFromBase64(object.transactionId)
|
|
5129
|
-
: new Uint8Array(0),
|
|
5058
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : new Uint8Array(0),
|
|
5130
5059
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
5131
5060
|
};
|
|
5132
5061
|
},
|
|
@@ -5142,14 +5071,10 @@ export const ActionBeginSavepointRequest: MessageFns<
|
|
|
5142
5071
|
return obj;
|
|
5143
5072
|
},
|
|
5144
5073
|
|
|
5145
|
-
create<I extends Exact<DeepPartial<ActionBeginSavepointRequest>, I>>(
|
|
5146
|
-
base?: I,
|
|
5147
|
-
): ActionBeginSavepointRequest {
|
|
5074
|
+
create<I extends Exact<DeepPartial<ActionBeginSavepointRequest>, I>>(base?: I): ActionBeginSavepointRequest {
|
|
5148
5075
|
return ActionBeginSavepointRequest.fromPartial(base ?? ({} as any));
|
|
5149
5076
|
},
|
|
5150
|
-
fromPartial<I extends Exact<DeepPartial<ActionBeginSavepointRequest>, I>>(
|
|
5151
|
-
object: I,
|
|
5152
|
-
): ActionBeginSavepointRequest {
|
|
5077
|
+
fromPartial<I extends Exact<DeepPartial<ActionBeginSavepointRequest>, I>>(object: I): ActionBeginSavepointRequest {
|
|
5153
5078
|
const message = createBaseActionBeginSavepointRequest() as any;
|
|
5154
5079
|
message.transactionId = object.transactionId ?? new Uint8Array(0);
|
|
5155
5080
|
message.name = object.name ?? "";
|
|
@@ -5160,10 +5085,7 @@ export const ActionBeginSavepointRequest: MessageFns<
|
|
|
5160
5085
|
messageTypeRegistry.set(ActionBeginSavepointRequest.$type, ActionBeginSavepointRequest);
|
|
5161
5086
|
|
|
5162
5087
|
function createBaseActionBeginTransactionResult(): ActionBeginTransactionResult {
|
|
5163
|
-
return {
|
|
5164
|
-
$type: "arrow.flight.protocol.sql.ActionBeginTransactionResult",
|
|
5165
|
-
transactionId: new Uint8Array(0),
|
|
5166
|
-
};
|
|
5088
|
+
return { $type: "arrow.flight.protocol.sql.ActionBeginTransactionResult", transactionId: new Uint8Array(0) };
|
|
5167
5089
|
}
|
|
5168
5090
|
|
|
5169
5091
|
export const ActionBeginTransactionResult: MessageFns<
|
|
@@ -5172,10 +5094,7 @@ export const ActionBeginTransactionResult: MessageFns<
|
|
|
5172
5094
|
> = {
|
|
5173
5095
|
$type: "arrow.flight.protocol.sql.ActionBeginTransactionResult" as const,
|
|
5174
5096
|
|
|
5175
|
-
encode(
|
|
5176
|
-
message: ActionBeginTransactionResult,
|
|
5177
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5178
|
-
): BinaryWriter {
|
|
5097
|
+
encode(message: ActionBeginTransactionResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5179
5098
|
if (message.transactionId.length !== 0) {
|
|
5180
5099
|
writer.uint32(10).bytes(message.transactionId);
|
|
5181
5100
|
}
|
|
@@ -5209,9 +5128,7 @@ export const ActionBeginTransactionResult: MessageFns<
|
|
|
5209
5128
|
fromJSON(object: any): ActionBeginTransactionResult {
|
|
5210
5129
|
return {
|
|
5211
5130
|
$type: ActionBeginTransactionResult.$type,
|
|
5212
|
-
transactionId: isSet(object.transactionId)
|
|
5213
|
-
? bytesFromBase64(object.transactionId)
|
|
5214
|
-
: new Uint8Array(0),
|
|
5131
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : new Uint8Array(0),
|
|
5215
5132
|
};
|
|
5216
5133
|
},
|
|
5217
5134
|
|
|
@@ -5223,14 +5140,10 @@ export const ActionBeginTransactionResult: MessageFns<
|
|
|
5223
5140
|
return obj;
|
|
5224
5141
|
},
|
|
5225
5142
|
|
|
5226
|
-
create<I extends Exact<DeepPartial<ActionBeginTransactionResult>, I>>(
|
|
5227
|
-
base?: I,
|
|
5228
|
-
): ActionBeginTransactionResult {
|
|
5143
|
+
create<I extends Exact<DeepPartial<ActionBeginTransactionResult>, I>>(base?: I): ActionBeginTransactionResult {
|
|
5229
5144
|
return ActionBeginTransactionResult.fromPartial(base ?? ({} as any));
|
|
5230
5145
|
},
|
|
5231
|
-
fromPartial<I extends Exact<DeepPartial<ActionBeginTransactionResult>, I>>(
|
|
5232
|
-
object: I,
|
|
5233
|
-
): ActionBeginTransactionResult {
|
|
5146
|
+
fromPartial<I extends Exact<DeepPartial<ActionBeginTransactionResult>, I>>(object: I): ActionBeginTransactionResult {
|
|
5234
5147
|
const message = createBaseActionBeginTransactionResult() as any;
|
|
5235
5148
|
message.transactionId = object.transactionId ?? new Uint8Array(0);
|
|
5236
5149
|
return message;
|
|
@@ -5240,10 +5153,7 @@ export const ActionBeginTransactionResult: MessageFns<
|
|
|
5240
5153
|
messageTypeRegistry.set(ActionBeginTransactionResult.$type, ActionBeginTransactionResult);
|
|
5241
5154
|
|
|
5242
5155
|
function createBaseActionBeginSavepointResult(): ActionBeginSavepointResult {
|
|
5243
|
-
return {
|
|
5244
|
-
$type: "arrow.flight.protocol.sql.ActionBeginSavepointResult",
|
|
5245
|
-
savepointId: new Uint8Array(0),
|
|
5246
|
-
};
|
|
5156
|
+
return { $type: "arrow.flight.protocol.sql.ActionBeginSavepointResult", savepointId: new Uint8Array(0) };
|
|
5247
5157
|
}
|
|
5248
5158
|
|
|
5249
5159
|
export const ActionBeginSavepointResult: MessageFns<
|
|
@@ -5252,10 +5162,7 @@ export const ActionBeginSavepointResult: MessageFns<
|
|
|
5252
5162
|
> = {
|
|
5253
5163
|
$type: "arrow.flight.protocol.sql.ActionBeginSavepointResult" as const,
|
|
5254
5164
|
|
|
5255
|
-
encode(
|
|
5256
|
-
message: ActionBeginSavepointResult,
|
|
5257
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5258
|
-
): BinaryWriter {
|
|
5165
|
+
encode(message: ActionBeginSavepointResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5259
5166
|
if (message.savepointId.length !== 0) {
|
|
5260
5167
|
writer.uint32(10).bytes(message.savepointId);
|
|
5261
5168
|
}
|
|
@@ -5289,9 +5196,7 @@ export const ActionBeginSavepointResult: MessageFns<
|
|
|
5289
5196
|
fromJSON(object: any): ActionBeginSavepointResult {
|
|
5290
5197
|
return {
|
|
5291
5198
|
$type: ActionBeginSavepointResult.$type,
|
|
5292
|
-
savepointId: isSet(object.savepointId)
|
|
5293
|
-
? bytesFromBase64(object.savepointId)
|
|
5294
|
-
: new Uint8Array(0),
|
|
5199
|
+
savepointId: isSet(object.savepointId) ? bytesFromBase64(object.savepointId) : new Uint8Array(0),
|
|
5295
5200
|
};
|
|
5296
5201
|
},
|
|
5297
5202
|
|
|
@@ -5303,14 +5208,10 @@ export const ActionBeginSavepointResult: MessageFns<
|
|
|
5303
5208
|
return obj;
|
|
5304
5209
|
},
|
|
5305
5210
|
|
|
5306
|
-
create<I extends Exact<DeepPartial<ActionBeginSavepointResult>, I>>(
|
|
5307
|
-
base?: I,
|
|
5308
|
-
): ActionBeginSavepointResult {
|
|
5211
|
+
create<I extends Exact<DeepPartial<ActionBeginSavepointResult>, I>>(base?: I): ActionBeginSavepointResult {
|
|
5309
5212
|
return ActionBeginSavepointResult.fromPartial(base ?? ({} as any));
|
|
5310
5213
|
},
|
|
5311
|
-
fromPartial<I extends Exact<DeepPartial<ActionBeginSavepointResult>, I>>(
|
|
5312
|
-
object: I,
|
|
5313
|
-
): ActionBeginSavepointResult {
|
|
5214
|
+
fromPartial<I extends Exact<DeepPartial<ActionBeginSavepointResult>, I>>(object: I): ActionBeginSavepointResult {
|
|
5314
5215
|
const message = createBaseActionBeginSavepointResult() as any;
|
|
5315
5216
|
message.savepointId = object.savepointId ?? new Uint8Array(0);
|
|
5316
5217
|
return message;
|
|
@@ -5333,10 +5234,7 @@ export const ActionEndTransactionRequest: MessageFns<
|
|
|
5333
5234
|
> = {
|
|
5334
5235
|
$type: "arrow.flight.protocol.sql.ActionEndTransactionRequest" as const,
|
|
5335
5236
|
|
|
5336
|
-
encode(
|
|
5337
|
-
message: ActionEndTransactionRequest,
|
|
5338
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5339
|
-
): BinaryWriter {
|
|
5237
|
+
encode(message: ActionEndTransactionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5340
5238
|
if (message.transactionId.length !== 0) {
|
|
5341
5239
|
writer.uint32(10).bytes(message.transactionId);
|
|
5342
5240
|
}
|
|
@@ -5381,12 +5279,8 @@ export const ActionEndTransactionRequest: MessageFns<
|
|
|
5381
5279
|
fromJSON(object: any): ActionEndTransactionRequest {
|
|
5382
5280
|
return {
|
|
5383
5281
|
$type: ActionEndTransactionRequest.$type,
|
|
5384
|
-
transactionId: isSet(object.transactionId)
|
|
5385
|
-
|
|
5386
|
-
: new Uint8Array(0),
|
|
5387
|
-
action: isSet(object.action)
|
|
5388
|
-
? actionEndTransactionRequest_EndTransactionFromJSON(object.action)
|
|
5389
|
-
: 0,
|
|
5282
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : new Uint8Array(0),
|
|
5283
|
+
action: isSet(object.action) ? actionEndTransactionRequest_EndTransactionFromJSON(object.action) : 0,
|
|
5390
5284
|
};
|
|
5391
5285
|
},
|
|
5392
5286
|
|
|
@@ -5401,14 +5295,10 @@ export const ActionEndTransactionRequest: MessageFns<
|
|
|
5401
5295
|
return obj;
|
|
5402
5296
|
},
|
|
5403
5297
|
|
|
5404
|
-
create<I extends Exact<DeepPartial<ActionEndTransactionRequest>, I>>(
|
|
5405
|
-
base?: I,
|
|
5406
|
-
): ActionEndTransactionRequest {
|
|
5298
|
+
create<I extends Exact<DeepPartial<ActionEndTransactionRequest>, I>>(base?: I): ActionEndTransactionRequest {
|
|
5407
5299
|
return ActionEndTransactionRequest.fromPartial(base ?? ({} as any));
|
|
5408
5300
|
},
|
|
5409
|
-
fromPartial<I extends Exact<DeepPartial<ActionEndTransactionRequest>, I>>(
|
|
5410
|
-
object: I,
|
|
5411
|
-
): ActionEndTransactionRequest {
|
|
5301
|
+
fromPartial<I extends Exact<DeepPartial<ActionEndTransactionRequest>, I>>(object: I): ActionEndTransactionRequest {
|
|
5412
5302
|
const message = createBaseActionEndTransactionRequest() as any;
|
|
5413
5303
|
message.transactionId = object.transactionId ?? new Uint8Array(0);
|
|
5414
5304
|
message.action = object.action ?? 0;
|
|
@@ -5419,11 +5309,7 @@ export const ActionEndTransactionRequest: MessageFns<
|
|
|
5419
5309
|
messageTypeRegistry.set(ActionEndTransactionRequest.$type, ActionEndTransactionRequest);
|
|
5420
5310
|
|
|
5421
5311
|
function createBaseActionEndSavepointRequest(): ActionEndSavepointRequest {
|
|
5422
|
-
return {
|
|
5423
|
-
$type: "arrow.flight.protocol.sql.ActionEndSavepointRequest",
|
|
5424
|
-
savepointId: new Uint8Array(0),
|
|
5425
|
-
action: 0,
|
|
5426
|
-
};
|
|
5312
|
+
return { $type: "arrow.flight.protocol.sql.ActionEndSavepointRequest", savepointId: new Uint8Array(0), action: 0 };
|
|
5427
5313
|
}
|
|
5428
5314
|
|
|
5429
5315
|
export const ActionEndSavepointRequest: MessageFns<
|
|
@@ -5432,10 +5318,7 @@ export const ActionEndSavepointRequest: MessageFns<
|
|
|
5432
5318
|
> = {
|
|
5433
5319
|
$type: "arrow.flight.protocol.sql.ActionEndSavepointRequest" as const,
|
|
5434
5320
|
|
|
5435
|
-
encode(
|
|
5436
|
-
message: ActionEndSavepointRequest,
|
|
5437
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5438
|
-
): BinaryWriter {
|
|
5321
|
+
encode(message: ActionEndSavepointRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5439
5322
|
if (message.savepointId.length !== 0) {
|
|
5440
5323
|
writer.uint32(10).bytes(message.savepointId);
|
|
5441
5324
|
}
|
|
@@ -5480,12 +5363,8 @@ export const ActionEndSavepointRequest: MessageFns<
|
|
|
5480
5363
|
fromJSON(object: any): ActionEndSavepointRequest {
|
|
5481
5364
|
return {
|
|
5482
5365
|
$type: ActionEndSavepointRequest.$type,
|
|
5483
|
-
savepointId: isSet(object.savepointId)
|
|
5484
|
-
|
|
5485
|
-
: new Uint8Array(0),
|
|
5486
|
-
action: isSet(object.action)
|
|
5487
|
-
? actionEndSavepointRequest_EndSavepointFromJSON(object.action)
|
|
5488
|
-
: 0,
|
|
5366
|
+
savepointId: isSet(object.savepointId) ? bytesFromBase64(object.savepointId) : new Uint8Array(0),
|
|
5367
|
+
action: isSet(object.action) ? actionEndSavepointRequest_EndSavepointFromJSON(object.action) : 0,
|
|
5489
5368
|
};
|
|
5490
5369
|
},
|
|
5491
5370
|
|
|
@@ -5500,14 +5379,10 @@ export const ActionEndSavepointRequest: MessageFns<
|
|
|
5500
5379
|
return obj;
|
|
5501
5380
|
},
|
|
5502
5381
|
|
|
5503
|
-
create<I extends Exact<DeepPartial<ActionEndSavepointRequest>, I>>(
|
|
5504
|
-
base?: I,
|
|
5505
|
-
): ActionEndSavepointRequest {
|
|
5382
|
+
create<I extends Exact<DeepPartial<ActionEndSavepointRequest>, I>>(base?: I): ActionEndSavepointRequest {
|
|
5506
5383
|
return ActionEndSavepointRequest.fromPartial(base ?? ({} as any));
|
|
5507
5384
|
},
|
|
5508
|
-
fromPartial<I extends Exact<DeepPartial<ActionEndSavepointRequest>, I>>(
|
|
5509
|
-
object: I,
|
|
5510
|
-
): ActionEndSavepointRequest {
|
|
5385
|
+
fromPartial<I extends Exact<DeepPartial<ActionEndSavepointRequest>, I>>(object: I): ActionEndSavepointRequest {
|
|
5511
5386
|
const message = createBaseActionEndSavepointRequest() as any;
|
|
5512
5387
|
message.savepointId = object.savepointId ?? new Uint8Array(0);
|
|
5513
5388
|
message.action = object.action ?? 0;
|
|
@@ -5518,11 +5393,7 @@ export const ActionEndSavepointRequest: MessageFns<
|
|
|
5518
5393
|
messageTypeRegistry.set(ActionEndSavepointRequest.$type, ActionEndSavepointRequest);
|
|
5519
5394
|
|
|
5520
5395
|
function createBaseCommandStatementQuery(): CommandStatementQuery {
|
|
5521
|
-
return {
|
|
5522
|
-
$type: "arrow.flight.protocol.sql.CommandStatementQuery",
|
|
5523
|
-
query: "",
|
|
5524
|
-
transactionId: undefined,
|
|
5525
|
-
};
|
|
5396
|
+
return { $type: "arrow.flight.protocol.sql.CommandStatementQuery", query: "", transactionId: undefined };
|
|
5526
5397
|
}
|
|
5527
5398
|
|
|
5528
5399
|
export const CommandStatementQuery: MessageFns<
|
|
@@ -5577,9 +5448,7 @@ export const CommandStatementQuery: MessageFns<
|
|
|
5577
5448
|
return {
|
|
5578
5449
|
$type: CommandStatementQuery.$type,
|
|
5579
5450
|
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
5580
|
-
transactionId: isSet(object.transactionId)
|
|
5581
|
-
? bytesFromBase64(object.transactionId)
|
|
5582
|
-
: undefined,
|
|
5451
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : undefined,
|
|
5583
5452
|
};
|
|
5584
5453
|
},
|
|
5585
5454
|
|
|
@@ -5597,9 +5466,7 @@ export const CommandStatementQuery: MessageFns<
|
|
|
5597
5466
|
create<I extends Exact<DeepPartial<CommandStatementQuery>, I>>(base?: I): CommandStatementQuery {
|
|
5598
5467
|
return CommandStatementQuery.fromPartial(base ?? ({} as any));
|
|
5599
5468
|
},
|
|
5600
|
-
fromPartial<I extends Exact<DeepPartial<CommandStatementQuery>, I>>(
|
|
5601
|
-
object: I,
|
|
5602
|
-
): CommandStatementQuery {
|
|
5469
|
+
fromPartial<I extends Exact<DeepPartial<CommandStatementQuery>, I>>(object: I): CommandStatementQuery {
|
|
5603
5470
|
const message = createBaseCommandStatementQuery() as any;
|
|
5604
5471
|
message.query = object.query ?? "";
|
|
5605
5472
|
message.transactionId = object.transactionId ?? undefined;
|
|
@@ -5623,10 +5490,7 @@ export const CommandStatementSubstraitPlan: MessageFns<
|
|
|
5623
5490
|
> = {
|
|
5624
5491
|
$type: "arrow.flight.protocol.sql.CommandStatementSubstraitPlan" as const,
|
|
5625
5492
|
|
|
5626
|
-
encode(
|
|
5627
|
-
message: CommandStatementSubstraitPlan,
|
|
5628
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5629
|
-
): BinaryWriter {
|
|
5493
|
+
encode(message: CommandStatementSubstraitPlan, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5630
5494
|
if (message.plan !== undefined) {
|
|
5631
5495
|
SubstraitPlan.encode(message.plan, writer.uint32(10).fork()).join();
|
|
5632
5496
|
}
|
|
@@ -5672,9 +5536,7 @@ export const CommandStatementSubstraitPlan: MessageFns<
|
|
|
5672
5536
|
return {
|
|
5673
5537
|
$type: CommandStatementSubstraitPlan.$type,
|
|
5674
5538
|
plan: isSet(object.plan) ? SubstraitPlan.fromJSON(object.plan) : undefined,
|
|
5675
|
-
transactionId: isSet(object.transactionId)
|
|
5676
|
-
? bytesFromBase64(object.transactionId)
|
|
5677
|
-
: undefined,
|
|
5539
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : undefined,
|
|
5678
5540
|
};
|
|
5679
5541
|
},
|
|
5680
5542
|
|
|
@@ -5689,19 +5551,16 @@ export const CommandStatementSubstraitPlan: MessageFns<
|
|
|
5689
5551
|
return obj;
|
|
5690
5552
|
},
|
|
5691
5553
|
|
|
5692
|
-
create<I extends Exact<DeepPartial<CommandStatementSubstraitPlan>, I>>(
|
|
5693
|
-
base?: I,
|
|
5694
|
-
): CommandStatementSubstraitPlan {
|
|
5554
|
+
create<I extends Exact<DeepPartial<CommandStatementSubstraitPlan>, I>>(base?: I): CommandStatementSubstraitPlan {
|
|
5695
5555
|
return CommandStatementSubstraitPlan.fromPartial(base ?? ({} as any));
|
|
5696
5556
|
},
|
|
5697
5557
|
fromPartial<I extends Exact<DeepPartial<CommandStatementSubstraitPlan>, I>>(
|
|
5698
5558
|
object: I,
|
|
5699
5559
|
): CommandStatementSubstraitPlan {
|
|
5700
5560
|
const message = createBaseCommandStatementSubstraitPlan() as any;
|
|
5701
|
-
message.plan =
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
: undefined;
|
|
5561
|
+
message.plan = (object.plan !== undefined && object.plan !== null)
|
|
5562
|
+
? SubstraitPlan.fromPartial(object.plan)
|
|
5563
|
+
: undefined;
|
|
5705
5564
|
message.transactionId = object.transactionId ?? undefined;
|
|
5706
5565
|
return message;
|
|
5707
5566
|
},
|
|
@@ -5710,77 +5569,68 @@ export const CommandStatementSubstraitPlan: MessageFns<
|
|
|
5710
5569
|
messageTypeRegistry.set(CommandStatementSubstraitPlan.$type, CommandStatementSubstraitPlan);
|
|
5711
5570
|
|
|
5712
5571
|
function createBaseTicketStatementQuery(): TicketStatementQuery {
|
|
5713
|
-
return {
|
|
5714
|
-
$type: "arrow.flight.protocol.sql.TicketStatementQuery",
|
|
5715
|
-
statementHandle: new Uint8Array(0),
|
|
5716
|
-
};
|
|
5572
|
+
return { $type: "arrow.flight.protocol.sql.TicketStatementQuery", statementHandle: new Uint8Array(0) };
|
|
5717
5573
|
}
|
|
5718
5574
|
|
|
5719
|
-
export const TicketStatementQuery: MessageFns<
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
> = {
|
|
5723
|
-
$type: "arrow.flight.protocol.sql.TicketStatementQuery" as const,
|
|
5575
|
+
export const TicketStatementQuery: MessageFns<TicketStatementQuery, "arrow.flight.protocol.sql.TicketStatementQuery"> =
|
|
5576
|
+
{
|
|
5577
|
+
$type: "arrow.flight.protocol.sql.TicketStatementQuery" as const,
|
|
5724
5578
|
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5579
|
+
encode(message: TicketStatementQuery, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5580
|
+
if (message.statementHandle.length !== 0) {
|
|
5581
|
+
writer.uint32(10).bytes(message.statementHandle);
|
|
5582
|
+
}
|
|
5583
|
+
return writer;
|
|
5584
|
+
},
|
|
5585
|
+
|
|
5586
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TicketStatementQuery {
|
|
5587
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5588
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5589
|
+
const message = createBaseTicketStatementQuery() as any;
|
|
5590
|
+
while (reader.pos < end) {
|
|
5591
|
+
const tag = reader.uint32();
|
|
5592
|
+
switch (tag >>> 3) {
|
|
5593
|
+
case 1: {
|
|
5594
|
+
if (tag !== 10) {
|
|
5595
|
+
break;
|
|
5596
|
+
}
|
|
5731
5597
|
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5735
|
-
const message = createBaseTicketStatementQuery() as any;
|
|
5736
|
-
while (reader.pos < end) {
|
|
5737
|
-
const tag = reader.uint32();
|
|
5738
|
-
switch (tag >>> 3) {
|
|
5739
|
-
case 1: {
|
|
5740
|
-
if (tag !== 10) {
|
|
5741
|
-
break;
|
|
5598
|
+
message.statementHandle = reader.bytes();
|
|
5599
|
+
continue;
|
|
5742
5600
|
}
|
|
5743
|
-
|
|
5744
|
-
message.statementHandle = reader.bytes();
|
|
5745
|
-
continue;
|
|
5746
5601
|
}
|
|
5602
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5603
|
+
break;
|
|
5604
|
+
}
|
|
5605
|
+
reader.skip(tag & 7);
|
|
5747
5606
|
}
|
|
5748
|
-
|
|
5749
|
-
|
|
5607
|
+
return message;
|
|
5608
|
+
},
|
|
5609
|
+
|
|
5610
|
+
fromJSON(object: any): TicketStatementQuery {
|
|
5611
|
+
return {
|
|
5612
|
+
$type: TicketStatementQuery.$type,
|
|
5613
|
+
statementHandle: isSet(object.statementHandle) ? bytesFromBase64(object.statementHandle) : new Uint8Array(0),
|
|
5614
|
+
};
|
|
5615
|
+
},
|
|
5616
|
+
|
|
5617
|
+
toJSON(message: TicketStatementQuery): unknown {
|
|
5618
|
+
const obj: any = {};
|
|
5619
|
+
if (message.statementHandle.length !== 0) {
|
|
5620
|
+
obj.statementHandle = base64FromBytes(message.statementHandle);
|
|
5750
5621
|
}
|
|
5751
|
-
|
|
5752
|
-
}
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
statementHandle
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
},
|
|
5764
|
-
|
|
5765
|
-
toJSON(message: TicketStatementQuery): unknown {
|
|
5766
|
-
const obj: any = {};
|
|
5767
|
-
if (message.statementHandle.length !== 0) {
|
|
5768
|
-
obj.statementHandle = base64FromBytes(message.statementHandle);
|
|
5769
|
-
}
|
|
5770
|
-
return obj;
|
|
5771
|
-
},
|
|
5772
|
-
|
|
5773
|
-
create<I extends Exact<DeepPartial<TicketStatementQuery>, I>>(base?: I): TicketStatementQuery {
|
|
5774
|
-
return TicketStatementQuery.fromPartial(base ?? ({} as any));
|
|
5775
|
-
},
|
|
5776
|
-
fromPartial<I extends Exact<DeepPartial<TicketStatementQuery>, I>>(
|
|
5777
|
-
object: I,
|
|
5778
|
-
): TicketStatementQuery {
|
|
5779
|
-
const message = createBaseTicketStatementQuery() as any;
|
|
5780
|
-
message.statementHandle = object.statementHandle ?? new Uint8Array(0);
|
|
5781
|
-
return message;
|
|
5782
|
-
},
|
|
5783
|
-
};
|
|
5622
|
+
return obj;
|
|
5623
|
+
},
|
|
5624
|
+
|
|
5625
|
+
create<I extends Exact<DeepPartial<TicketStatementQuery>, I>>(base?: I): TicketStatementQuery {
|
|
5626
|
+
return TicketStatementQuery.fromPartial(base ?? ({} as any));
|
|
5627
|
+
},
|
|
5628
|
+
fromPartial<I extends Exact<DeepPartial<TicketStatementQuery>, I>>(object: I): TicketStatementQuery {
|
|
5629
|
+
const message = createBaseTicketStatementQuery() as any;
|
|
5630
|
+
message.statementHandle = object.statementHandle ?? new Uint8Array(0);
|
|
5631
|
+
return message;
|
|
5632
|
+
},
|
|
5633
|
+
};
|
|
5784
5634
|
|
|
5785
5635
|
messageTypeRegistry.set(TicketStatementQuery.$type, TicketStatementQuery);
|
|
5786
5636
|
|
|
@@ -5797,10 +5647,7 @@ export const CommandPreparedStatementQuery: MessageFns<
|
|
|
5797
5647
|
> = {
|
|
5798
5648
|
$type: "arrow.flight.protocol.sql.CommandPreparedStatementQuery" as const,
|
|
5799
5649
|
|
|
5800
|
-
encode(
|
|
5801
|
-
message: CommandPreparedStatementQuery,
|
|
5802
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5803
|
-
): BinaryWriter {
|
|
5650
|
+
encode(message: CommandPreparedStatementQuery, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5804
5651
|
if (message.preparedStatementHandle.length !== 0) {
|
|
5805
5652
|
writer.uint32(10).bytes(message.preparedStatementHandle);
|
|
5806
5653
|
}
|
|
@@ -5848,9 +5695,7 @@ export const CommandPreparedStatementQuery: MessageFns<
|
|
|
5848
5695
|
return obj;
|
|
5849
5696
|
},
|
|
5850
5697
|
|
|
5851
|
-
create<I extends Exact<DeepPartial<CommandPreparedStatementQuery>, I>>(
|
|
5852
|
-
base?: I,
|
|
5853
|
-
): CommandPreparedStatementQuery {
|
|
5698
|
+
create<I extends Exact<DeepPartial<CommandPreparedStatementQuery>, I>>(base?: I): CommandPreparedStatementQuery {
|
|
5854
5699
|
return CommandPreparedStatementQuery.fromPartial(base ?? ({} as any));
|
|
5855
5700
|
},
|
|
5856
5701
|
fromPartial<I extends Exact<DeepPartial<CommandPreparedStatementQuery>, I>>(
|
|
@@ -5865,11 +5710,7 @@ export const CommandPreparedStatementQuery: MessageFns<
|
|
|
5865
5710
|
messageTypeRegistry.set(CommandPreparedStatementQuery.$type, CommandPreparedStatementQuery);
|
|
5866
5711
|
|
|
5867
5712
|
function createBaseCommandStatementUpdate(): CommandStatementUpdate {
|
|
5868
|
-
return {
|
|
5869
|
-
$type: "arrow.flight.protocol.sql.CommandStatementUpdate",
|
|
5870
|
-
query: "",
|
|
5871
|
-
transactionId: undefined,
|
|
5872
|
-
};
|
|
5713
|
+
return { $type: "arrow.flight.protocol.sql.CommandStatementUpdate", query: "", transactionId: undefined };
|
|
5873
5714
|
}
|
|
5874
5715
|
|
|
5875
5716
|
export const CommandStatementUpdate: MessageFns<
|
|
@@ -5924,9 +5765,7 @@ export const CommandStatementUpdate: MessageFns<
|
|
|
5924
5765
|
return {
|
|
5925
5766
|
$type: CommandStatementUpdate.$type,
|
|
5926
5767
|
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
5927
|
-
transactionId: isSet(object.transactionId)
|
|
5928
|
-
? bytesFromBase64(object.transactionId)
|
|
5929
|
-
: undefined,
|
|
5768
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : undefined,
|
|
5930
5769
|
};
|
|
5931
5770
|
},
|
|
5932
5771
|
|
|
@@ -5941,14 +5780,10 @@ export const CommandStatementUpdate: MessageFns<
|
|
|
5941
5780
|
return obj;
|
|
5942
5781
|
},
|
|
5943
5782
|
|
|
5944
|
-
create<I extends Exact<DeepPartial<CommandStatementUpdate>, I>>(
|
|
5945
|
-
base?: I,
|
|
5946
|
-
): CommandStatementUpdate {
|
|
5783
|
+
create<I extends Exact<DeepPartial<CommandStatementUpdate>, I>>(base?: I): CommandStatementUpdate {
|
|
5947
5784
|
return CommandStatementUpdate.fromPartial(base ?? ({} as any));
|
|
5948
5785
|
},
|
|
5949
|
-
fromPartial<I extends Exact<DeepPartial<CommandStatementUpdate>, I>>(
|
|
5950
|
-
object: I,
|
|
5951
|
-
): CommandStatementUpdate {
|
|
5786
|
+
fromPartial<I extends Exact<DeepPartial<CommandStatementUpdate>, I>>(object: I): CommandStatementUpdate {
|
|
5952
5787
|
const message = createBaseCommandStatementUpdate() as any;
|
|
5953
5788
|
message.query = object.query ?? "";
|
|
5954
5789
|
message.transactionId = object.transactionId ?? undefined;
|
|
@@ -5971,10 +5806,7 @@ export const CommandPreparedStatementUpdate: MessageFns<
|
|
|
5971
5806
|
> = {
|
|
5972
5807
|
$type: "arrow.flight.protocol.sql.CommandPreparedStatementUpdate" as const,
|
|
5973
5808
|
|
|
5974
|
-
encode(
|
|
5975
|
-
message: CommandPreparedStatementUpdate,
|
|
5976
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
5977
|
-
): BinaryWriter {
|
|
5809
|
+
encode(message: CommandPreparedStatementUpdate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5978
5810
|
if (message.preparedStatementHandle.length !== 0) {
|
|
5979
5811
|
writer.uint32(10).bytes(message.preparedStatementHandle);
|
|
5980
5812
|
}
|
|
@@ -6022,9 +5854,7 @@ export const CommandPreparedStatementUpdate: MessageFns<
|
|
|
6022
5854
|
return obj;
|
|
6023
5855
|
},
|
|
6024
5856
|
|
|
6025
|
-
create<I extends Exact<DeepPartial<CommandPreparedStatementUpdate>, I>>(
|
|
6026
|
-
base?: I,
|
|
6027
|
-
): CommandPreparedStatementUpdate {
|
|
5857
|
+
create<I extends Exact<DeepPartial<CommandPreparedStatementUpdate>, I>>(base?: I): CommandPreparedStatementUpdate {
|
|
6028
5858
|
return CommandPreparedStatementUpdate.fromPartial(base ?? ({} as any));
|
|
6029
5859
|
},
|
|
6030
5860
|
fromPartial<I extends Exact<DeepPartial<CommandPreparedStatementUpdate>, I>>(
|
|
@@ -6059,10 +5889,8 @@ export const CommandStatementIngest: MessageFns<
|
|
|
6059
5889
|
|
|
6060
5890
|
encode(message: CommandStatementIngest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6061
5891
|
if (message.tableDefinitionOptions !== undefined) {
|
|
6062
|
-
CommandStatementIngest_TableDefinitionOptions.encode(
|
|
6063
|
-
|
|
6064
|
-
writer.uint32(10).fork(),
|
|
6065
|
-
).join();
|
|
5892
|
+
CommandStatementIngest_TableDefinitionOptions.encode(message.tableDefinitionOptions, writer.uint32(10).fork())
|
|
5893
|
+
.join();
|
|
6066
5894
|
}
|
|
6067
5895
|
if (message.table !== "") {
|
|
6068
5896
|
writer.uint32(18).string(message.table);
|
|
@@ -6080,14 +5908,11 @@ export const CommandStatementIngest: MessageFns<
|
|
|
6080
5908
|
writer.uint32(50).bytes(message.transactionId);
|
|
6081
5909
|
}
|
|
6082
5910
|
Object.entries(message.options).forEach(([key, value]) => {
|
|
6083
|
-
CommandStatementIngest_OptionsEntry.encode(
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
},
|
|
6089
|
-
writer.uint32(8002).fork(),
|
|
6090
|
-
).join();
|
|
5911
|
+
CommandStatementIngest_OptionsEntry.encode({
|
|
5912
|
+
$type: "arrow.flight.protocol.sql.CommandStatementIngest.OptionsEntry",
|
|
5913
|
+
key: key as any,
|
|
5914
|
+
value,
|
|
5915
|
+
}, writer.uint32(8002).fork()).join();
|
|
6091
5916
|
});
|
|
6092
5917
|
return writer;
|
|
6093
5918
|
},
|
|
@@ -6180,14 +6005,12 @@ export const CommandStatementIngest: MessageFns<
|
|
|
6180
6005
|
schema: isSet(object.schema) ? globalThis.String(object.schema) : undefined,
|
|
6181
6006
|
catalog: isSet(object.catalog) ? globalThis.String(object.catalog) : undefined,
|
|
6182
6007
|
temporary: isSet(object.temporary) ? globalThis.Boolean(object.temporary) : false,
|
|
6183
|
-
transactionId: isSet(object.transactionId)
|
|
6184
|
-
? bytesFromBase64(object.transactionId)
|
|
6185
|
-
: undefined,
|
|
6008
|
+
transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : undefined,
|
|
6186
6009
|
options: isObject(object.options)
|
|
6187
6010
|
? Object.entries(object.options).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6011
|
+
acc[key] = String(value);
|
|
6012
|
+
return acc;
|
|
6013
|
+
}, {})
|
|
6191
6014
|
: {},
|
|
6192
6015
|
};
|
|
6193
6016
|
},
|
|
@@ -6195,9 +6018,7 @@ export const CommandStatementIngest: MessageFns<
|
|
|
6195
6018
|
toJSON(message: CommandStatementIngest): unknown {
|
|
6196
6019
|
const obj: any = {};
|
|
6197
6020
|
if (message.tableDefinitionOptions !== undefined) {
|
|
6198
|
-
obj.tableDefinitionOptions = CommandStatementIngest_TableDefinitionOptions.toJSON(
|
|
6199
|
-
message.tableDefinitionOptions,
|
|
6200
|
-
);
|
|
6021
|
+
obj.tableDefinitionOptions = CommandStatementIngest_TableDefinitionOptions.toJSON(message.tableDefinitionOptions);
|
|
6201
6022
|
}
|
|
6202
6023
|
if (message.table !== "") {
|
|
6203
6024
|
obj.table = message.table;
|
|
@@ -6226,17 +6047,13 @@ export const CommandStatementIngest: MessageFns<
|
|
|
6226
6047
|
return obj;
|
|
6227
6048
|
},
|
|
6228
6049
|
|
|
6229
|
-
create<I extends Exact<DeepPartial<CommandStatementIngest>, I>>(
|
|
6230
|
-
base?: I,
|
|
6231
|
-
): CommandStatementIngest {
|
|
6050
|
+
create<I extends Exact<DeepPartial<CommandStatementIngest>, I>>(base?: I): CommandStatementIngest {
|
|
6232
6051
|
return CommandStatementIngest.fromPartial(base ?? ({} as any));
|
|
6233
6052
|
},
|
|
6234
|
-
fromPartial<I extends Exact<DeepPartial<CommandStatementIngest>, I>>(
|
|
6235
|
-
object: I,
|
|
6236
|
-
): CommandStatementIngest {
|
|
6053
|
+
fromPartial<I extends Exact<DeepPartial<CommandStatementIngest>, I>>(object: I): CommandStatementIngest {
|
|
6237
6054
|
const message = createBaseCommandStatementIngest() as any;
|
|
6238
6055
|
message.tableDefinitionOptions =
|
|
6239
|
-
object.tableDefinitionOptions !== undefined && object.tableDefinitionOptions !== null
|
|
6056
|
+
(object.tableDefinitionOptions !== undefined && object.tableDefinitionOptions !== null)
|
|
6240
6057
|
? CommandStatementIngest_TableDefinitionOptions.fromPartial(object.tableDefinitionOptions)
|
|
6241
6058
|
: undefined;
|
|
6242
6059
|
message.table = object.table ?? "";
|
|
@@ -6244,15 +6061,12 @@ export const CommandStatementIngest: MessageFns<
|
|
|
6244
6061
|
message.catalog = object.catalog ?? undefined;
|
|
6245
6062
|
message.temporary = object.temporary ?? false;
|
|
6246
6063
|
message.transactionId = object.transactionId ?? undefined;
|
|
6247
|
-
message.options = Object.entries(object.options ?? {}).reduce<{ [key: string]: string }>(
|
|
6248
|
-
(
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
},
|
|
6254
|
-
{},
|
|
6255
|
-
);
|
|
6064
|
+
message.options = Object.entries(object.options ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
6065
|
+
if (value !== undefined) {
|
|
6066
|
+
acc[key] = globalThis.String(value);
|
|
6067
|
+
}
|
|
6068
|
+
return acc;
|
|
6069
|
+
}, {});
|
|
6256
6070
|
return message;
|
|
6257
6071
|
},
|
|
6258
6072
|
};
|
|
@@ -6286,10 +6100,7 @@ export const CommandStatementIngest_TableDefinitionOptions: MessageFns<
|
|
|
6286
6100
|
return writer;
|
|
6287
6101
|
},
|
|
6288
6102
|
|
|
6289
|
-
decode(
|
|
6290
|
-
input: BinaryReader | Uint8Array,
|
|
6291
|
-
length?: number,
|
|
6292
|
-
): CommandStatementIngest_TableDefinitionOptions {
|
|
6103
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommandStatementIngest_TableDefinitionOptions {
|
|
6293
6104
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6294
6105
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6295
6106
|
const message = createBaseCommandStatementIngest_TableDefinitionOptions() as any;
|
|
@@ -6325,9 +6136,7 @@ export const CommandStatementIngest_TableDefinitionOptions: MessageFns<
|
|
|
6325
6136
|
return {
|
|
6326
6137
|
$type: CommandStatementIngest_TableDefinitionOptions.$type,
|
|
6327
6138
|
ifNotExist: isSet(object.ifNotExist)
|
|
6328
|
-
? commandStatementIngest_TableDefinitionOptions_TableNotExistOptionFromJSON(
|
|
6329
|
-
object.ifNotExist,
|
|
6330
|
-
)
|
|
6139
|
+
? commandStatementIngest_TableDefinitionOptions_TableNotExistOptionFromJSON(object.ifNotExist)
|
|
6331
6140
|
: 0,
|
|
6332
6141
|
ifExists: isSet(object.ifExists)
|
|
6333
6142
|
? commandStatementIngest_TableDefinitionOptions_TableExistsOptionFromJSON(object.ifExists)
|
|
@@ -6338,14 +6147,10 @@ export const CommandStatementIngest_TableDefinitionOptions: MessageFns<
|
|
|
6338
6147
|
toJSON(message: CommandStatementIngest_TableDefinitionOptions): unknown {
|
|
6339
6148
|
const obj: any = {};
|
|
6340
6149
|
if (message.ifNotExist !== 0) {
|
|
6341
|
-
obj.ifNotExist = commandStatementIngest_TableDefinitionOptions_TableNotExistOptionToJSON(
|
|
6342
|
-
message.ifNotExist,
|
|
6343
|
-
);
|
|
6150
|
+
obj.ifNotExist = commandStatementIngest_TableDefinitionOptions_TableNotExistOptionToJSON(message.ifNotExist);
|
|
6344
6151
|
}
|
|
6345
6152
|
if (message.ifExists !== 0) {
|
|
6346
|
-
obj.ifExists = commandStatementIngest_TableDefinitionOptions_TableExistsOptionToJSON(
|
|
6347
|
-
message.ifExists,
|
|
6348
|
-
);
|
|
6153
|
+
obj.ifExists = commandStatementIngest_TableDefinitionOptions_TableExistsOptionToJSON(message.ifExists);
|
|
6349
6154
|
}
|
|
6350
6155
|
return obj;
|
|
6351
6156
|
},
|
|
@@ -6371,11 +6176,7 @@ messageTypeRegistry.set(
|
|
|
6371
6176
|
);
|
|
6372
6177
|
|
|
6373
6178
|
function createBaseCommandStatementIngest_OptionsEntry(): CommandStatementIngest_OptionsEntry {
|
|
6374
|
-
return {
|
|
6375
|
-
$type: "arrow.flight.protocol.sql.CommandStatementIngest.OptionsEntry",
|
|
6376
|
-
key: "",
|
|
6377
|
-
value: "",
|
|
6378
|
-
};
|
|
6179
|
+
return { $type: "arrow.flight.protocol.sql.CommandStatementIngest.OptionsEntry", key: "", value: "" };
|
|
6379
6180
|
}
|
|
6380
6181
|
|
|
6381
6182
|
export const CommandStatementIngest_OptionsEntry: MessageFns<
|
|
@@ -6384,10 +6185,7 @@ export const CommandStatementIngest_OptionsEntry: MessageFns<
|
|
|
6384
6185
|
> = {
|
|
6385
6186
|
$type: "arrow.flight.protocol.sql.CommandStatementIngest.OptionsEntry" as const,
|
|
6386
6187
|
|
|
6387
|
-
encode(
|
|
6388
|
-
message: CommandStatementIngest_OptionsEntry,
|
|
6389
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
6390
|
-
): BinaryWriter {
|
|
6188
|
+
encode(message: CommandStatementIngest_OptionsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6391
6189
|
if (message.key !== "") {
|
|
6392
6190
|
writer.uint32(10).string(message.key);
|
|
6393
6191
|
}
|
|
@@ -6463,27 +6261,19 @@ export const CommandStatementIngest_OptionsEntry: MessageFns<
|
|
|
6463
6261
|
},
|
|
6464
6262
|
};
|
|
6465
6263
|
|
|
6466
|
-
messageTypeRegistry.set(
|
|
6467
|
-
CommandStatementIngest_OptionsEntry.$type,
|
|
6468
|
-
CommandStatementIngest_OptionsEntry,
|
|
6469
|
-
);
|
|
6264
|
+
messageTypeRegistry.set(CommandStatementIngest_OptionsEntry.$type, CommandStatementIngest_OptionsEntry);
|
|
6470
6265
|
|
|
6471
6266
|
function createBaseDoPutUpdateResult(): DoPutUpdateResult {
|
|
6472
6267
|
return { $type: "arrow.flight.protocol.sql.DoPutUpdateResult", recordCount: 0n };
|
|
6473
6268
|
}
|
|
6474
6269
|
|
|
6475
|
-
export const DoPutUpdateResult: MessageFns<
|
|
6476
|
-
DoPutUpdateResult,
|
|
6477
|
-
"arrow.flight.protocol.sql.DoPutUpdateResult"
|
|
6478
|
-
> = {
|
|
6270
|
+
export const DoPutUpdateResult: MessageFns<DoPutUpdateResult, "arrow.flight.protocol.sql.DoPutUpdateResult"> = {
|
|
6479
6271
|
$type: "arrow.flight.protocol.sql.DoPutUpdateResult" as const,
|
|
6480
6272
|
|
|
6481
6273
|
encode(message: DoPutUpdateResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6482
6274
|
if (message.recordCount !== 0n) {
|
|
6483
6275
|
if (BigInt.asIntN(64, message.recordCount) !== message.recordCount) {
|
|
6484
|
-
throw new globalThis.Error(
|
|
6485
|
-
"value provided for field message.recordCount of type int64 too large",
|
|
6486
|
-
);
|
|
6276
|
+
throw new globalThis.Error("value provided for field message.recordCount of type int64 too large");
|
|
6487
6277
|
}
|
|
6488
6278
|
writer.uint32(8).int64(message.recordCount);
|
|
6489
6279
|
}
|
|
@@ -6515,10 +6305,7 @@ export const DoPutUpdateResult: MessageFns<
|
|
|
6515
6305
|
},
|
|
6516
6306
|
|
|
6517
6307
|
fromJSON(object: any): DoPutUpdateResult {
|
|
6518
|
-
return {
|
|
6519
|
-
$type: DoPutUpdateResult.$type,
|
|
6520
|
-
recordCount: isSet(object.recordCount) ? BigInt(object.recordCount) : 0n,
|
|
6521
|
-
};
|
|
6308
|
+
return { $type: DoPutUpdateResult.$type, recordCount: isSet(object.recordCount) ? BigInt(object.recordCount) : 0n };
|
|
6522
6309
|
},
|
|
6523
6310
|
|
|
6524
6311
|
toJSON(message: DoPutUpdateResult): unknown {
|
|
@@ -6542,10 +6329,7 @@ export const DoPutUpdateResult: MessageFns<
|
|
|
6542
6329
|
messageTypeRegistry.set(DoPutUpdateResult.$type, DoPutUpdateResult);
|
|
6543
6330
|
|
|
6544
6331
|
function createBaseDoPutPreparedStatementResult(): DoPutPreparedStatementResult {
|
|
6545
|
-
return {
|
|
6546
|
-
$type: "arrow.flight.protocol.sql.DoPutPreparedStatementResult",
|
|
6547
|
-
preparedStatementHandle: undefined,
|
|
6548
|
-
};
|
|
6332
|
+
return { $type: "arrow.flight.protocol.sql.DoPutPreparedStatementResult", preparedStatementHandle: undefined };
|
|
6549
6333
|
}
|
|
6550
6334
|
|
|
6551
6335
|
export const DoPutPreparedStatementResult: MessageFns<
|
|
@@ -6554,10 +6338,7 @@ export const DoPutPreparedStatementResult: MessageFns<
|
|
|
6554
6338
|
> = {
|
|
6555
6339
|
$type: "arrow.flight.protocol.sql.DoPutPreparedStatementResult" as const,
|
|
6556
6340
|
|
|
6557
|
-
encode(
|
|
6558
|
-
message: DoPutPreparedStatementResult,
|
|
6559
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
6560
|
-
): BinaryWriter {
|
|
6341
|
+
encode(message: DoPutPreparedStatementResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6561
6342
|
if (message.preparedStatementHandle !== undefined) {
|
|
6562
6343
|
writer.uint32(10).bytes(message.preparedStatementHandle);
|
|
6563
6344
|
}
|
|
@@ -6605,14 +6386,10 @@ export const DoPutPreparedStatementResult: MessageFns<
|
|
|
6605
6386
|
return obj;
|
|
6606
6387
|
},
|
|
6607
6388
|
|
|
6608
|
-
create<I extends Exact<DeepPartial<DoPutPreparedStatementResult>, I>>(
|
|
6609
|
-
base?: I,
|
|
6610
|
-
): DoPutPreparedStatementResult {
|
|
6389
|
+
create<I extends Exact<DeepPartial<DoPutPreparedStatementResult>, I>>(base?: I): DoPutPreparedStatementResult {
|
|
6611
6390
|
return DoPutPreparedStatementResult.fromPartial(base ?? ({} as any));
|
|
6612
6391
|
},
|
|
6613
|
-
fromPartial<I extends Exact<DeepPartial<DoPutPreparedStatementResult>, I>>(
|
|
6614
|
-
object: I,
|
|
6615
|
-
): DoPutPreparedStatementResult {
|
|
6392
|
+
fromPartial<I extends Exact<DeepPartial<DoPutPreparedStatementResult>, I>>(object: I): DoPutPreparedStatementResult {
|
|
6616
6393
|
const message = createBaseDoPutPreparedStatementResult() as any;
|
|
6617
6394
|
message.preparedStatementHandle = object.preparedStatementHandle ?? undefined;
|
|
6618
6395
|
return message;
|
|
@@ -6631,10 +6408,7 @@ export const ActionCancelQueryRequest: MessageFns<
|
|
|
6631
6408
|
> = {
|
|
6632
6409
|
$type: "arrow.flight.protocol.sql.ActionCancelQueryRequest" as const,
|
|
6633
6410
|
|
|
6634
|
-
encode(
|
|
6635
|
-
message: ActionCancelQueryRequest,
|
|
6636
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
6637
|
-
): BinaryWriter {
|
|
6411
|
+
encode(message: ActionCancelQueryRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6638
6412
|
if (message.info.length !== 0) {
|
|
6639
6413
|
writer.uint32(10).bytes(message.info);
|
|
6640
6414
|
}
|
|
@@ -6680,14 +6454,10 @@ export const ActionCancelQueryRequest: MessageFns<
|
|
|
6680
6454
|
return obj;
|
|
6681
6455
|
},
|
|
6682
6456
|
|
|
6683
|
-
create<I extends Exact<DeepPartial<ActionCancelQueryRequest>, I>>(
|
|
6684
|
-
base?: I,
|
|
6685
|
-
): ActionCancelQueryRequest {
|
|
6457
|
+
create<I extends Exact<DeepPartial<ActionCancelQueryRequest>, I>>(base?: I): ActionCancelQueryRequest {
|
|
6686
6458
|
return ActionCancelQueryRequest.fromPartial(base ?? ({} as any));
|
|
6687
6459
|
},
|
|
6688
|
-
fromPartial<I extends Exact<DeepPartial<ActionCancelQueryRequest>, I>>(
|
|
6689
|
-
object: I,
|
|
6690
|
-
): ActionCancelQueryRequest {
|
|
6460
|
+
fromPartial<I extends Exact<DeepPartial<ActionCancelQueryRequest>, I>>(object: I): ActionCancelQueryRequest {
|
|
6691
6461
|
const message = createBaseActionCancelQueryRequest() as any;
|
|
6692
6462
|
message.info = object.info ?? new Uint8Array(0);
|
|
6693
6463
|
return message;
|
|
@@ -6706,10 +6476,7 @@ export const ActionCancelQueryResult: MessageFns<
|
|
|
6706
6476
|
> = {
|
|
6707
6477
|
$type: "arrow.flight.protocol.sql.ActionCancelQueryResult" as const,
|
|
6708
6478
|
|
|
6709
|
-
encode(
|
|
6710
|
-
message: ActionCancelQueryResult,
|
|
6711
|
-
writer: BinaryWriter = new BinaryWriter(),
|
|
6712
|
-
): BinaryWriter {
|
|
6479
|
+
encode(message: ActionCancelQueryResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6713
6480
|
if (message.result !== 0) {
|
|
6714
6481
|
writer.uint32(8).int32(message.result);
|
|
6715
6482
|
}
|
|
@@ -6743,9 +6510,7 @@ export const ActionCancelQueryResult: MessageFns<
|
|
|
6743
6510
|
fromJSON(object: any): ActionCancelQueryResult {
|
|
6744
6511
|
return {
|
|
6745
6512
|
$type: ActionCancelQueryResult.$type,
|
|
6746
|
-
result: isSet(object.result)
|
|
6747
|
-
? actionCancelQueryResult_CancelResultFromJSON(object.result)
|
|
6748
|
-
: 0,
|
|
6513
|
+
result: isSet(object.result) ? actionCancelQueryResult_CancelResultFromJSON(object.result) : 0,
|
|
6749
6514
|
};
|
|
6750
6515
|
},
|
|
6751
6516
|
|
|
@@ -6757,14 +6522,10 @@ export const ActionCancelQueryResult: MessageFns<
|
|
|
6757
6522
|
return obj;
|
|
6758
6523
|
},
|
|
6759
6524
|
|
|
6760
|
-
create<I extends Exact<DeepPartial<ActionCancelQueryResult>, I>>(
|
|
6761
|
-
base?: I,
|
|
6762
|
-
): ActionCancelQueryResult {
|
|
6525
|
+
create<I extends Exact<DeepPartial<ActionCancelQueryResult>, I>>(base?: I): ActionCancelQueryResult {
|
|
6763
6526
|
return ActionCancelQueryResult.fromPartial(base ?? ({} as any));
|
|
6764
6527
|
},
|
|
6765
|
-
fromPartial<I extends Exact<DeepPartial<ActionCancelQueryResult>, I>>(
|
|
6766
|
-
object: I,
|
|
6767
|
-
): ActionCancelQueryResult {
|
|
6528
|
+
fromPartial<I extends Exact<DeepPartial<ActionCancelQueryResult>, I>>(object: I): ActionCancelQueryResult {
|
|
6768
6529
|
const message = createBaseActionCancelQueryResult() as any;
|
|
6769
6530
|
message.result = object.result ?? 0;
|
|
6770
6531
|
return message;
|
|
@@ -6800,24 +6561,17 @@ function base64FromBytes(arr: Uint8Array): string {
|
|
|
6800
6561
|
|
|
6801
6562
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
6802
6563
|
|
|
6803
|
-
export type DeepPartial<T> = T extends Builtin
|
|
6804
|
-
?
|
|
6805
|
-
: T extends
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { readonly $case: T["$case"] }
|
|
6811
|
-
: T extends {}
|
|
6812
|
-
? { [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]> }
|
|
6813
|
-
: Partial<T>;
|
|
6564
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
6565
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
6566
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
6567
|
+
: T extends { readonly $case: string }
|
|
6568
|
+
? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { readonly $case: T["$case"] }
|
|
6569
|
+
: T extends {} ? { [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]> }
|
|
6570
|
+
: Partial<T>;
|
|
6814
6571
|
|
|
6815
6572
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
6816
|
-
export type Exact<P, I extends P> = P extends Builtin
|
|
6817
|
-
|
|
6818
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & {
|
|
6819
|
-
[K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never;
|
|
6820
|
-
};
|
|
6573
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
6574
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never };
|
|
6821
6575
|
|
|
6822
6576
|
function isObject(value: any): boolean {
|
|
6823
6577
|
return typeof value === "object" && value !== null;
|