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