@query-farm/vgi 0.46.0 → 0.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -5
- package/dist/arrow/impl-arrowjs/index.d.ts +1 -1
- package/dist/arrow/impl-arrowjs/iterate.d.ts +2 -0
- package/dist/arrow/impl-flechette/index.d.ts +1 -1
- package/dist/arrow/impl-flechette/iterate.d.ts +2 -0
- package/dist/arrow/index.d.ts +1 -1
- package/dist/catalog/column-expressions.d.ts +8 -0
- package/dist/catalog/column-metadata.d.ts +11 -0
- package/dist/catalog/composite.d.ts +2 -1
- package/dist/catalog/constraints.d.ts +74 -0
- package/dist/catalog/descriptors.d.ts +21 -29
- package/dist/catalog/interface.d.ts +15 -20
- package/dist/catalog/macro-overloads.d.ts +4 -0
- package/dist/catalog/read-only.d.ts +7 -1
- package/dist/catalog/unconstrained-columns.d.ts +2 -0
- package/dist/client/client.d.ts +18 -13
- package/dist/client-entry.js +753 -103
- package/dist/client-entry.js.map +16 -14
- package/dist/functions/projection.d.ts +18 -0
- package/dist/functions/table.d.ts +6 -1
- package/dist/functions/types.d.ts +1 -0
- package/dist/generated/vgi-client.d.ts +177 -36
- package/dist/generated/vgi-protocol-schemas.d.ts +51 -1
- package/dist/generated/vgi-protocol-types.d.ts +317 -3
- package/dist/generated/vgi-service.d.ts +266 -29
- package/dist/index.core.d.ts +3 -1
- package/dist/index.js +1630 -240
- package/dist/index.js.map +41 -34
- package/dist/protocol/dispatch.d.ts +9 -9
- package/dist/protocol/handlers/aggregate.d.ts +1 -1
- package/dist/protocol/handlers/catalog/index.d.ts +1 -1
- package/dist/protocol/handlers/catalog/metadata.d.ts +1 -0
- package/dist/protocol/handlers/function.d.ts +1 -1
- package/dist/protocol/handlers/table-buffering.d.ts +1 -1
- package/dist/protocol/handlers/unimplemented.d.ts +1 -1
- package/dist/protocol/serializers/bind.d.ts +5 -1
- package/dist/protocol/types.d.ts +5 -0
- package/dist/rpc-server.d.ts +6 -6
- package/dist/serve-entry.js +1613 -447
- package/dist/serve-entry.js.map +32 -26
- package/dist/util/arrow/index.d.ts +1 -1
- package/dist/worker-cf-entry.d.ts +2 -2
- package/dist/worker-cf-entry.js +1943 -572
- package/dist/worker-cf-entry.js.map +41 -34
- package/dist/worker.d.ts +1 -1
- package/package.json +5 -4
- package/src/arrow/impl-arrowjs/index.ts +1 -1
- package/src/arrow/impl-arrowjs/iterate.ts +9 -1
- package/src/arrow/impl-arrowjs/project.ts +1 -1
- package/src/arrow/impl-flechette/index.ts +1 -1
- package/src/arrow/impl-flechette/ipc.ts +12 -0
- package/src/arrow/impl-flechette/iterate.ts +5 -0
- package/src/arrow/impl-flechette/project.ts +6 -8
- package/src/arrow/index.ts +1 -1
- package/src/catalog/column-expressions.ts +224 -0
- package/src/catalog/column-metadata.ts +151 -0
- package/src/catalog/composite.ts +5 -1
- package/src/catalog/constraints.ts +207 -0
- package/src/catalog/contents-codec.ts +6 -1
- package/src/catalog/descriptors.ts +21 -29
- package/src/catalog/interface.ts +70 -55
- package/src/catalog/macro-overloads.ts +44 -0
- package/src/catalog/read-only.ts +92 -71
- package/src/catalog/unconstrained-columns.ts +23 -0
- package/src/client/client.ts +100 -58
- package/src/codec/asd.ts +3 -1
- package/src/functions/projection.ts +207 -0
- package/src/functions/table.ts +10 -0
- package/src/functions/types.ts +1 -0
- package/src/generated/vgi-client.ts +199 -37
- package/src/generated/vgi-protocol-schemas.ts +455 -41
- package/src/generated/vgi-protocol-types.ts +879 -5
- package/src/generated/vgi-service.ts +514 -42
- package/src/http/client-bundle.ts +1 -1
- package/src/http/fetch.ts +1 -1
- package/src/index.core.ts +5 -0
- package/src/protocol/dispatch.ts +9 -9
- package/src/protocol/handlers/aggregate.ts +1 -1
- package/src/protocol/handlers/catalog/admin.ts +27 -6
- package/src/protocol/handlers/catalog/index.ts +2 -2
- package/src/protocol/handlers/catalog/macro.ts +6 -5
- package/src/protocol/handlers/catalog/metadata.ts +16 -0
- package/src/protocol/handlers/catalog/table.ts +72 -26
- package/src/protocol/handlers/catalog/view.ts +24 -3
- package/src/protocol/handlers/function.ts +67 -1
- package/src/protocol/handlers/table-buffering.ts +1 -1
- package/src/protocol/handlers/unimplemented.ts +6 -6
- package/src/protocol/serializers/bind.ts +17 -1
- package/src/protocol/types.ts +6 -0
- package/src/rpc-server.ts +9 -9
- package/src/util/arrow/index.ts +1 -1
- package/src/worker-cf-entry.ts +6 -0
- package/src/worker.ts +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// GENERATED by vgi.codegen.ts_registry. DO NOT EDIT BY HAND.
|
|
3
3
|
//
|
|
4
4
|
// Generator: python -m vgi.codegen.ts_registry v1
|
|
5
|
-
// Content hash:
|
|
5
|
+
// Content hash: 67bb72c77d62
|
|
6
6
|
//
|
|
7
7
|
// To regenerate:
|
|
8
8
|
// uv run --project ~/Development/vgi-python python scripts/regen_generated.py
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
} from "../arrow/index.js";
|
|
36
36
|
|
|
37
37
|
/** The protocol's wire name: the `vgi_rpc.protocol` routing key and the HTTP path segment. */
|
|
38
|
-
export const VGI_PROTOCOL_NAME = "vgi.
|
|
38
|
+
export const VGI_PROTOCOL_NAME = "vgi.v3";
|
|
39
39
|
|
|
40
40
|
/** The protocol's semver, stamped on every request by a client of this protocol. */
|
|
41
|
-
export const VGI_PROTOCOL_VERSION = "
|
|
41
|
+
export const VGI_PROTOCOL_VERSION = "3.0.0";
|
|
42
42
|
|
|
43
43
|
/** What a unary handler returns: the result row, now or later. */
|
|
44
44
|
export type VgiReply<T> = T | ExternalRef | Promise<T | ExternalRef>;
|
|
@@ -205,6 +205,14 @@ export interface CatalogCreateParams {
|
|
|
205
205
|
request: Uint8Array;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
/** The params of `catalog_dependencies`, one property per params-schema column. */
|
|
209
|
+
export interface CatalogDependenciesParams {
|
|
210
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
211
|
+
attach_opaque_data: Uint8Array;
|
|
212
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
213
|
+
transaction_opaque_data: Uint8Array | null;
|
|
214
|
+
}
|
|
215
|
+
|
|
208
216
|
/** The params of `catalog_detach`, one property per params-schema column. */
|
|
209
217
|
export interface CatalogDetachParams {
|
|
210
218
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -251,6 +259,18 @@ export interface CatalogIndexGetParams {
|
|
|
251
259
|
transaction_opaque_data: Uint8Array | null;
|
|
252
260
|
}
|
|
253
261
|
|
|
262
|
+
/** The params of `catalog_index_option_definitions`, one property per params-schema column. */
|
|
263
|
+
export interface CatalogIndexOptionDefinitionsParams {
|
|
264
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
265
|
+
attach_opaque_data: Uint8Array;
|
|
266
|
+
/** The `table` column (`binary`). */
|
|
267
|
+
table: Uint8Array;
|
|
268
|
+
/** The `algorithm` column (`string`). */
|
|
269
|
+
algorithm: string;
|
|
270
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
271
|
+
transaction_opaque_data: Uint8Array | null;
|
|
272
|
+
}
|
|
273
|
+
|
|
254
274
|
/** The params of `catalog_macro_create`, one property per params-schema column. */
|
|
255
275
|
export interface CatalogMacroCreateParams {
|
|
256
276
|
/** The packed `MacroCreateRequest`, as its IPC bytes (`binary`). */
|
|
@@ -283,6 +303,48 @@ export interface CatalogMacroGetParams {
|
|
|
283
303
|
transaction_opaque_data: Uint8Array | null;
|
|
284
304
|
}
|
|
285
305
|
|
|
306
|
+
/** The params of `catalog_query_prepare`, one property per params-schema column. */
|
|
307
|
+
export interface CatalogQueryPrepareParams {
|
|
308
|
+
/** The packed `CatalogQueryPrepareRequest`, as its IPC bytes (`binary`). */
|
|
309
|
+
request: Uint8Array;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/** The params of `catalog_query_release`, one property per params-schema column. */
|
|
313
|
+
export interface CatalogQueryReleaseParams {
|
|
314
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
315
|
+
attach_opaque_data: Uint8Array;
|
|
316
|
+
/** The `prepared_query_token` column (`binary`). */
|
|
317
|
+
prepared_query_token: Uint8Array;
|
|
318
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
319
|
+
transaction_opaque_data: Uint8Array | null;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** The params of `catalog_schema_alter_metadata`, one property per params-schema column. */
|
|
323
|
+
export interface CatalogSchemaAlterMetadataParams {
|
|
324
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
325
|
+
attach_opaque_data: Uint8Array;
|
|
326
|
+
/** The `path` column (`list<item: string>`). */
|
|
327
|
+
path: WireList<string | null>;
|
|
328
|
+
/** The `changes` column (`binary`). */
|
|
329
|
+
changes: Uint8Array;
|
|
330
|
+
/** The `ignore_not_found` column (`bool`). */
|
|
331
|
+
ignore_not_found: boolean;
|
|
332
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
333
|
+
transaction_opaque_data: Uint8Array | null;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/** The params of `catalog_schema_alter_options`, one property per params-schema column. */
|
|
337
|
+
export interface CatalogSchemaAlterOptionsParams {
|
|
338
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
339
|
+
attach_opaque_data: Uint8Array;
|
|
340
|
+
/** The `path` column (`list<item: string>`). */
|
|
341
|
+
path: WireList<string | null>;
|
|
342
|
+
/** The `changes` column (`binary`). */
|
|
343
|
+
changes: Uint8Array;
|
|
344
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
345
|
+
transaction_opaque_data: Uint8Array | null;
|
|
346
|
+
}
|
|
347
|
+
|
|
286
348
|
/** The params of `catalog_schema_contents_functions`, one property per params-schema column. */
|
|
287
349
|
export interface CatalogSchemaContentsFunctionsParams {
|
|
288
350
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -351,6 +413,8 @@ export interface CatalogSchemaCreateParams {
|
|
|
351
413
|
tags: WireMap | null;
|
|
352
414
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
353
415
|
transaction_opaque_data: Uint8Array | null;
|
|
416
|
+
/** The `options` column (`binary`, nullable). */
|
|
417
|
+
options: Uint8Array | null;
|
|
354
418
|
}
|
|
355
419
|
|
|
356
420
|
/** The params of `catalog_schema_drop`, one property per params-schema column. */
|
|
@@ -377,6 +441,16 @@ export interface CatalogSchemaGetParams {
|
|
|
377
441
|
transaction_opaque_data: Uint8Array | null;
|
|
378
442
|
}
|
|
379
443
|
|
|
444
|
+
/** The params of `catalog_schema_option_definitions`, one property per params-schema column. */
|
|
445
|
+
export interface CatalogSchemaOptionDefinitionsParams {
|
|
446
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
447
|
+
attach_opaque_data: Uint8Array;
|
|
448
|
+
/** The `path` column (`list<item: string>`). */
|
|
449
|
+
path: WireList<string | null>;
|
|
450
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
451
|
+
transaction_opaque_data: Uint8Array | null;
|
|
452
|
+
}
|
|
453
|
+
|
|
380
454
|
/** The params of `catalog_schemas`, one property per params-schema column. */
|
|
381
455
|
export interface CatalogSchemasParams {
|
|
382
456
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -385,6 +459,34 @@ export interface CatalogSchemasParams {
|
|
|
385
459
|
transaction_opaque_data: Uint8Array | null;
|
|
386
460
|
}
|
|
387
461
|
|
|
462
|
+
/** The params of `catalog_table_alter_layout`, one property per params-schema column. */
|
|
463
|
+
export interface CatalogTableAlterLayoutParams {
|
|
464
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
465
|
+
attach_opaque_data: Uint8Array;
|
|
466
|
+
/** The `schema_path` column (`list<item: string>`). */
|
|
467
|
+
schema_path: WireList<string | null>;
|
|
468
|
+
/** The `name` column (`string`). */
|
|
469
|
+
name: string;
|
|
470
|
+
/** The `changes` column (`binary`). */
|
|
471
|
+
changes: Uint8Array;
|
|
472
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
473
|
+
transaction_opaque_data: Uint8Array | null;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/** The params of `catalog_table_alter_options`, one property per params-schema column. */
|
|
477
|
+
export interface CatalogTableAlterOptionsParams {
|
|
478
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
479
|
+
attach_opaque_data: Uint8Array;
|
|
480
|
+
/** The `schema_path` column (`list<item: string>`). */
|
|
481
|
+
schema_path: WireList<string | null>;
|
|
482
|
+
/** The `name` column (`string`). */
|
|
483
|
+
name: string;
|
|
484
|
+
/** The `changes` column (`binary`). */
|
|
485
|
+
changes: Uint8Array;
|
|
486
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
487
|
+
transaction_opaque_data: Uint8Array | null;
|
|
488
|
+
}
|
|
489
|
+
|
|
388
490
|
/** The params of `catalog_table_column_add`, one property per params-schema column. */
|
|
389
491
|
export interface CatalogTableColumnAddParams {
|
|
390
492
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -393,6 +495,8 @@ export interface CatalogTableColumnAddParams {
|
|
|
393
495
|
schema_path: WireList<string | null>;
|
|
394
496
|
/** The `name` column (`string`). */
|
|
395
497
|
name: string;
|
|
498
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
499
|
+
column_path: WireList<string | null>;
|
|
396
500
|
/** The `column_definition` column (`binary`). */
|
|
397
501
|
column_definition: Uint8Array;
|
|
398
502
|
/** The `ignore_not_found` column (`bool`). */
|
|
@@ -411,8 +515,8 @@ export interface CatalogTableColumnCommentSetParams {
|
|
|
411
515
|
schema_path: WireList<string | null>;
|
|
412
516
|
/** The `name` column (`string`). */
|
|
413
517
|
name: string;
|
|
414
|
-
/** The `
|
|
415
|
-
|
|
518
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
519
|
+
column_path: WireList<string | null>;
|
|
416
520
|
/** The `comment` column (`string`, nullable). */
|
|
417
521
|
comment: string | null;
|
|
418
522
|
/** The `ignore_not_found` column (`bool`). */
|
|
@@ -429,8 +533,8 @@ export interface CatalogTableColumnDefaultDropParams {
|
|
|
429
533
|
schema_path: WireList<string | null>;
|
|
430
534
|
/** The `name` column (`string`). */
|
|
431
535
|
name: string;
|
|
432
|
-
/** The `
|
|
433
|
-
|
|
536
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
537
|
+
column_path: WireList<string | null>;
|
|
434
538
|
/** The `ignore_not_found` column (`bool`). */
|
|
435
539
|
ignore_not_found: boolean;
|
|
436
540
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
@@ -445,10 +549,10 @@ export interface CatalogTableColumnDefaultSetParams {
|
|
|
445
549
|
schema_path: WireList<string | null>;
|
|
446
550
|
/** The `name` column (`string`). */
|
|
447
551
|
name: string;
|
|
448
|
-
/** The `
|
|
449
|
-
|
|
450
|
-
/** The `expression` column (`
|
|
451
|
-
expression:
|
|
552
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
553
|
+
column_path: WireList<string | null>;
|
|
554
|
+
/** The `expression` column (`binary`). */
|
|
555
|
+
expression: Uint8Array;
|
|
452
556
|
/** The `ignore_not_found` column (`bool`). */
|
|
453
557
|
ignore_not_found: boolean;
|
|
454
558
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
@@ -463,8 +567,8 @@ export interface CatalogTableColumnDropParams {
|
|
|
463
567
|
schema_path: WireList<string | null>;
|
|
464
568
|
/** The `name` column (`string`). */
|
|
465
569
|
name: string;
|
|
466
|
-
/** The `
|
|
467
|
-
|
|
570
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
571
|
+
column_path: WireList<string | null>;
|
|
468
572
|
/** The `ignore_not_found` column (`bool`). */
|
|
469
573
|
ignore_not_found: boolean;
|
|
470
574
|
/** The `if_column_exists` column (`bool`). */
|
|
@@ -483,8 +587,8 @@ export interface CatalogTableColumnRenameParams {
|
|
|
483
587
|
schema_path: WireList<string | null>;
|
|
484
588
|
/** The `name` column (`string`). */
|
|
485
589
|
name: string;
|
|
486
|
-
/** The `
|
|
487
|
-
|
|
590
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
591
|
+
column_path: WireList<string | null>;
|
|
488
592
|
/** The `new_column_name` column (`string`). */
|
|
489
593
|
new_column_name: string;
|
|
490
594
|
/** The `ignore_not_found` column (`bool`). */
|
|
@@ -513,10 +617,12 @@ export interface CatalogTableColumnTypeChangeParams {
|
|
|
513
617
|
schema_path: WireList<string | null>;
|
|
514
618
|
/** The `name` column (`string`). */
|
|
515
619
|
name: string;
|
|
620
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
621
|
+
column_path: WireList<string | null>;
|
|
516
622
|
/** The `column_definition` column (`binary`). */
|
|
517
623
|
column_definition: Uint8Array;
|
|
518
|
-
/** The `expression` column (`
|
|
519
|
-
expression:
|
|
624
|
+
/** The `expression` column (`binary`, nullable). */
|
|
625
|
+
expression: Uint8Array | null;
|
|
520
626
|
/** The `ignore_not_found` column (`bool`). */
|
|
521
627
|
ignore_not_found: boolean;
|
|
522
628
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
@@ -539,6 +645,12 @@ export interface CatalogTableCommentSetParams {
|
|
|
539
645
|
transaction_opaque_data: Uint8Array | null;
|
|
540
646
|
}
|
|
541
647
|
|
|
648
|
+
/** The params of `catalog_table_constraints_apply`, one property per params-schema column. */
|
|
649
|
+
export interface CatalogTableConstraintsApplyParams {
|
|
650
|
+
/** The packed `ConstraintsApplyRequest`, as its IPC bytes (`binary`). */
|
|
651
|
+
request: Uint8Array;
|
|
652
|
+
}
|
|
653
|
+
|
|
542
654
|
/** The params of `catalog_table_create`, one property per params-schema column. */
|
|
543
655
|
export interface CatalogTableCreateParams {
|
|
544
656
|
/** The packed `TableCreateRequest`, as its IPC bytes (`binary`). */
|
|
@@ -611,8 +723,8 @@ export interface CatalogTableNotNullDropParams {
|
|
|
611
723
|
schema_path: WireList<string | null>;
|
|
612
724
|
/** The `name` column (`string`). */
|
|
613
725
|
name: string;
|
|
614
|
-
/** The `
|
|
615
|
-
|
|
726
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
727
|
+
column_path: WireList<string | null>;
|
|
616
728
|
/** The `ignore_not_found` column (`bool`). */
|
|
617
729
|
ignore_not_found: boolean;
|
|
618
730
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
@@ -627,14 +739,26 @@ export interface CatalogTableNotNullSetParams {
|
|
|
627
739
|
schema_path: WireList<string | null>;
|
|
628
740
|
/** The `name` column (`string`). */
|
|
629
741
|
name: string;
|
|
630
|
-
/** The `
|
|
631
|
-
|
|
742
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
743
|
+
column_path: WireList<string | null>;
|
|
632
744
|
/** The `ignore_not_found` column (`bool`). */
|
|
633
745
|
ignore_not_found: boolean;
|
|
634
746
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
635
747
|
transaction_opaque_data: Uint8Array | null;
|
|
636
748
|
}
|
|
637
749
|
|
|
750
|
+
/** The params of `catalog_table_option_definitions`, one property per params-schema column. */
|
|
751
|
+
export interface CatalogTableOptionDefinitionsParams {
|
|
752
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
753
|
+
attach_opaque_data: Uint8Array;
|
|
754
|
+
/** The `schema_path` column (`list<item: string>`). */
|
|
755
|
+
schema_path: WireList<string | null>;
|
|
756
|
+
/** The `name` column (`string`). */
|
|
757
|
+
name: string;
|
|
758
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
759
|
+
transaction_opaque_data: Uint8Array | null;
|
|
760
|
+
}
|
|
761
|
+
|
|
638
762
|
/** The params of `catalog_table_rename`, one property per params-schema column. */
|
|
639
763
|
export interface CatalogTableRenameParams {
|
|
640
764
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -725,6 +849,24 @@ export interface CatalogVersionParams {
|
|
|
725
849
|
transaction_opaque_data: Uint8Array | null;
|
|
726
850
|
}
|
|
727
851
|
|
|
852
|
+
/** The params of `catalog_view_column_comment_set`, one property per params-schema column. */
|
|
853
|
+
export interface CatalogViewColumnCommentSetParams {
|
|
854
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
855
|
+
attach_opaque_data: Uint8Array;
|
|
856
|
+
/** The `schema_path` column (`list<item: string>`). */
|
|
857
|
+
schema_path: WireList<string | null>;
|
|
858
|
+
/** The `name` column (`string`). */
|
|
859
|
+
name: string;
|
|
860
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
861
|
+
column_path: WireList<string | null>;
|
|
862
|
+
/** The `comment` column (`string`, nullable). */
|
|
863
|
+
comment: string | null;
|
|
864
|
+
/** The `ignore_not_found` column (`bool`). */
|
|
865
|
+
ignore_not_found: boolean;
|
|
866
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
867
|
+
transaction_opaque_data: Uint8Array | null;
|
|
868
|
+
}
|
|
869
|
+
|
|
728
870
|
/** The params of `catalog_view_comment_set`, one property per params-schema column. */
|
|
729
871
|
export interface CatalogViewCommentSetParams {
|
|
730
872
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -755,6 +897,16 @@ export interface CatalogViewCreateParams {
|
|
|
755
897
|
on_conflict: string;
|
|
756
898
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
757
899
|
transaction_opaque_data: Uint8Array | null;
|
|
900
|
+
/** The `aliases` column (`list<item: string>`, nullable). */
|
|
901
|
+
aliases: WireList<string | null> | null;
|
|
902
|
+
/** The `security` column (`string`). */
|
|
903
|
+
security: string;
|
|
904
|
+
/** The `comment` column (`string`, nullable). */
|
|
905
|
+
comment: string | null;
|
|
906
|
+
/** The `tags` column (`map<string, string>`, nullable). */
|
|
907
|
+
tags: WireMap | null;
|
|
908
|
+
/** The `column_comments` column (`map<string, string>`, nullable). */
|
|
909
|
+
column_comments: WireMap | null;
|
|
758
910
|
}
|
|
759
911
|
|
|
760
912
|
/** The params of `catalog_view_drop`, one property per params-schema column. */
|
|
@@ -843,6 +995,12 @@ export interface TableFunctionPlanParams {
|
|
|
843
995
|
request: Uint8Array;
|
|
844
996
|
}
|
|
845
997
|
|
|
998
|
+
/** The params of `table_function_projection`, one property per params-schema column. */
|
|
999
|
+
export interface TableFunctionProjectionParams {
|
|
1000
|
+
/** The packed `TableFunctionProjectionRequest`, as its IPC bytes (`binary`). */
|
|
1001
|
+
request: Uint8Array;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
846
1004
|
/** The params of `table_function_statistics`, one property per params-schema column. */
|
|
847
1005
|
export interface TableFunctionStatisticsParams {
|
|
848
1006
|
/** The packed `TableFunctionStatisticsRequest`, as its IPC bytes (`binary`). */
|
|
@@ -854,12 +1012,12 @@ export interface TableFunctionStatisticsParams {
|
|
|
854
1012
|
// ----------------------------------------------------------------------------
|
|
855
1013
|
|
|
856
1014
|
/**
|
|
857
|
-
* The `vgi.
|
|
1015
|
+
* The `vgi.v3` protocol: every method a VGI worker serves, generated from the
|
|
858
1016
|
* reference (`vgi.protocol.VgiProtocol` in vgi-python).
|
|
859
1017
|
*
|
|
860
1018
|
* The protocol is the unit of optionality: every method is registered, whether
|
|
861
1019
|
* or not this worker implements it, so `vgi_rpc.Reflection.v1` reports one
|
|
862
|
-
* `vgi.
|
|
1020
|
+
* `vgi.v3` hash in every SDK. Build an implementation by spreading handlers
|
|
863
1021
|
* over {@link UNIMPLEMENTED_VGI_SERVICE}; register it with
|
|
864
1022
|
* {@link registerVgiService}. Never change a signature here by hand:
|
|
865
1023
|
* regenerate it, so the change comes from the protocol.
|
|
@@ -997,6 +1155,13 @@ export interface VgiService {
|
|
|
997
1155
|
*/
|
|
998
1156
|
catalogCreate(params: CatalogCreateParams, ctx: CallContext): VgiReply<NoResult>;
|
|
999
1157
|
|
|
1158
|
+
/**
|
|
1159
|
+
* Read a complete dependency graph under vgi.catalog.dependencies.read.v1.
|
|
1160
|
+
*
|
|
1161
|
+
* Wire method `catalog_dependencies` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1162
|
+
*/
|
|
1163
|
+
catalogDependencies(params: CatalogDependenciesParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1164
|
+
|
|
1000
1165
|
/**
|
|
1001
1166
|
* Detach from a catalog.
|
|
1002
1167
|
*
|
|
@@ -1032,6 +1197,13 @@ export interface VgiService {
|
|
|
1032
1197
|
*/
|
|
1033
1198
|
catalogIndexGet(params: CatalogIndexGetParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1034
1199
|
|
|
1200
|
+
/**
|
|
1201
|
+
* Discover typed option definitions for an exact table and algorithm.
|
|
1202
|
+
*
|
|
1203
|
+
* Wire method `catalog_index_option_definitions` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1204
|
+
*/
|
|
1205
|
+
catalogIndexOptionDefinitions(params: CatalogIndexOptionDefinitionsParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1206
|
+
|
|
1035
1207
|
/**
|
|
1036
1208
|
* Create a new macro.
|
|
1037
1209
|
*
|
|
@@ -1053,6 +1225,34 @@ export interface VgiService {
|
|
|
1053
1225
|
*/
|
|
1054
1226
|
catalogMacroGet(params: CatalogMacroGetParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1055
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* Authorize and describe the negotiated query or statement without executing it.
|
|
1230
|
+
*
|
|
1231
|
+
* Wire method `catalog_query_prepare` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1232
|
+
*/
|
|
1233
|
+
catalogQueryPrepare(params: CatalogQueryPrepareParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* Idempotently release an owned preparation; existing executions retain their lifetime.
|
|
1237
|
+
*
|
|
1238
|
+
* Wire method `catalog_query_release` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1239
|
+
*/
|
|
1240
|
+
catalogQueryRelease(params: CatalogQueryReleaseParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Atomically apply a CatalogMetadataChanges patch under the selected DDL profile.
|
|
1244
|
+
*
|
|
1245
|
+
* Wire method `catalog_schema_alter_metadata` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1246
|
+
*/
|
|
1247
|
+
catalogSchemaAlterMetadata(params: CatalogSchemaAlterMetadataParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Atomically SET/RESET schema options under the selected capability.
|
|
1251
|
+
*
|
|
1252
|
+
* Wire method `catalog_schema_alter_options` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1253
|
+
*/
|
|
1254
|
+
catalogSchemaAlterOptions(params: CatalogSchemaAlterOptionsParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1255
|
+
|
|
1056
1256
|
/**
|
|
1057
1257
|
* List functions in a schema (scalar or table).
|
|
1058
1258
|
*
|
|
@@ -1109,6 +1309,13 @@ export interface VgiService {
|
|
|
1109
1309
|
*/
|
|
1110
1310
|
catalogSchemaGet(params: CatalogSchemaGetParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1111
1311
|
|
|
1312
|
+
/**
|
|
1313
|
+
* Discover literal option definitions for an existing or proposed schema.
|
|
1314
|
+
*
|
|
1315
|
+
* Wire method `catalog_schema_option_definitions` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1316
|
+
*/
|
|
1317
|
+
catalogSchemaOptionDefinitions(params: CatalogSchemaOptionDefinitionsParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1318
|
+
|
|
1112
1319
|
/**
|
|
1113
1320
|
* List schemas in the catalog.
|
|
1114
1321
|
*
|
|
@@ -1116,6 +1323,20 @@ export interface VgiService {
|
|
|
1116
1323
|
*/
|
|
1117
1324
|
catalogSchemas(params: CatalogSchemasParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1118
1325
|
|
|
1326
|
+
/**
|
|
1327
|
+
* Apply an IPC TableLayoutChange under its explicit existing-data mode.
|
|
1328
|
+
*
|
|
1329
|
+
* Wire method `catalog_table_alter_layout` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1330
|
+
*/
|
|
1331
|
+
catalogTableAlterLayout(params: CatalogTableAlterLayoutParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Apply an IPC OptionChanges record atomically.
|
|
1335
|
+
*
|
|
1336
|
+
* Wire method `catalog_table_alter_options` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1337
|
+
*/
|
|
1338
|
+
catalogTableAlterOptions(params: CatalogTableAlterOptionsParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1339
|
+
|
|
1119
1340
|
/**
|
|
1120
1341
|
* Add a new column to a table.
|
|
1121
1342
|
*
|
|
@@ -1138,7 +1359,7 @@ export interface VgiService {
|
|
|
1138
1359
|
catalogTableColumnDefaultDrop(params: CatalogTableColumnDefaultDropParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1139
1360
|
|
|
1140
1361
|
/**
|
|
1141
|
-
* Set
|
|
1362
|
+
* Set a column default using one canonical SqlExpression IPC record.
|
|
1142
1363
|
*
|
|
1143
1364
|
* Wire method `catalog_table_column_default_set` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1144
1365
|
*/
|
|
@@ -1168,7 +1389,7 @@ export interface VgiService {
|
|
|
1168
1389
|
catalogTableColumnStatisticsGet(params: CatalogTableColumnStatisticsGetParams, ctx: CallContext): VgiReply<{ result: Uint8Array | null }>;
|
|
1169
1390
|
|
|
1170
1391
|
/**
|
|
1171
|
-
* Change
|
|
1392
|
+
* Change a column type, optionally using canonical SqlExpression IPC.
|
|
1172
1393
|
*
|
|
1173
1394
|
* Wire method `catalog_table_column_type_change` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1174
1395
|
*/
|
|
@@ -1181,6 +1402,13 @@ export interface VgiService {
|
|
|
1181
1402
|
*/
|
|
1182
1403
|
catalogTableCommentSet(params: CatalogTableCommentSetParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1183
1404
|
|
|
1405
|
+
/**
|
|
1406
|
+
* Atomically apply canonical changes at the expected table revision.
|
|
1407
|
+
*
|
|
1408
|
+
* Wire method `catalog_table_constraints_apply` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1409
|
+
*/
|
|
1410
|
+
catalogTableConstraintsApply(params: CatalogTableConstraintsApplyParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1411
|
+
|
|
1184
1412
|
/**
|
|
1185
1413
|
* Create a new table.
|
|
1186
1414
|
*
|
|
@@ -1232,6 +1460,13 @@ export interface VgiService {
|
|
|
1232
1460
|
*/
|
|
1233
1461
|
catalogTableNotNullSet(params: CatalogTableNotNullSetParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1234
1462
|
|
|
1463
|
+
/**
|
|
1464
|
+
* Discover provider table-option definitions under the read profile.
|
|
1465
|
+
*
|
|
1466
|
+
* Wire method `catalog_table_option_definitions` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1467
|
+
*/
|
|
1468
|
+
catalogTableOptionDefinitions(params: CatalogTableOptionDefinitionsParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1469
|
+
|
|
1235
1470
|
/**
|
|
1236
1471
|
* Rename a table.
|
|
1237
1472
|
*
|
|
@@ -1292,6 +1527,13 @@ export interface VgiService {
|
|
|
1292
1527
|
*/
|
|
1293
1528
|
catalogVersion(params: CatalogVersionParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1294
1529
|
|
|
1530
|
+
/**
|
|
1531
|
+
* Set or clear a view output comment; column_path has one raw component.
|
|
1532
|
+
*
|
|
1533
|
+
* Wire method `catalog_view_column_comment_set` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1534
|
+
*/
|
|
1535
|
+
catalogViewColumnCommentSet(params: CatalogViewColumnCommentSetParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1536
|
+
|
|
1295
1537
|
/**
|
|
1296
1538
|
* Set or clear the comment on a view.
|
|
1297
1539
|
*
|
|
@@ -1382,6 +1624,13 @@ export interface VgiService {
|
|
|
1382
1624
|
*/
|
|
1383
1625
|
tableFunctionPlan(params: TableFunctionPlanParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1384
1626
|
|
|
1627
|
+
/**
|
|
1628
|
+
* Accept optional scalar outputs before optimizer rewrite, or decline normally.
|
|
1629
|
+
*
|
|
1630
|
+
* Wire method `table_function_projection` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1631
|
+
*/
|
|
1632
|
+
tableFunctionProjection(params: TableFunctionProjectionParams, ctx: CallContext): VgiReply<{ result: Uint8Array }>;
|
|
1633
|
+
|
|
1385
1634
|
/**
|
|
1386
1635
|
* Return per-column statistics for a table function's output.
|
|
1387
1636
|
*
|
|
@@ -1396,7 +1645,7 @@ export interface VgiService {
|
|
|
1396
1645
|
// The registration table
|
|
1397
1646
|
// ----------------------------------------------------------------------------
|
|
1398
1647
|
|
|
1399
|
-
/** One `vgi.
|
|
1648
|
+
/** One `vgi.v3` method: its wire name, its `VgiService` member, and its schemas. */
|
|
1400
1649
|
export type VgiMethodSpec =
|
|
1401
1650
|
| {
|
|
1402
1651
|
readonly name: string;
|
|
@@ -1417,11 +1666,11 @@ export type VgiMethodSpec =
|
|
|
1417
1666
|
};
|
|
1418
1667
|
|
|
1419
1668
|
/**
|
|
1420
|
-
* Every `vgi.
|
|
1669
|
+
* Every `vgi.v3` method, sorted by wire name, with the reference's
|
|
1421
1670
|
* params / result / header schemas. This table is what
|
|
1422
1671
|
* {@link registerVgiService} registers, so it is what reflection hashes.
|
|
1423
1672
|
*/
|
|
1424
|
-
export const
|
|
1673
|
+
export const VGI_V3_METHODS: readonly VgiMethodSpec[] = [
|
|
1425
1674
|
{
|
|
1426
1675
|
name: "aggregate_bind",
|
|
1427
1676
|
key: "aggregateBind",
|
|
@@ -1636,6 +1885,19 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1636
1885
|
result: schema([]),
|
|
1637
1886
|
doc: "Create a new catalog.",
|
|
1638
1887
|
},
|
|
1888
|
+
{
|
|
1889
|
+
name: "catalog_dependencies",
|
|
1890
|
+
key: "catalogDependencies",
|
|
1891
|
+
type: "unary",
|
|
1892
|
+
params: schema([
|
|
1893
|
+
field("attach_opaque_data", binary(), false),
|
|
1894
|
+
field("transaction_opaque_data", binary(), true),
|
|
1895
|
+
]),
|
|
1896
|
+
result: schema([
|
|
1897
|
+
field("result", binary(), false),
|
|
1898
|
+
]),
|
|
1899
|
+
doc: "Read a complete dependency graph under vgi.catalog.dependencies.read.v1.",
|
|
1900
|
+
},
|
|
1639
1901
|
{
|
|
1640
1902
|
name: "catalog_detach",
|
|
1641
1903
|
key: "catalogDetach",
|
|
@@ -1696,6 +1958,21 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1696
1958
|
]),
|
|
1697
1959
|
doc: "Get information about an index. Returns 0 or 1 items.",
|
|
1698
1960
|
},
|
|
1961
|
+
{
|
|
1962
|
+
name: "catalog_index_option_definitions",
|
|
1963
|
+
key: "catalogIndexOptionDefinitions",
|
|
1964
|
+
type: "unary",
|
|
1965
|
+
params: schema([
|
|
1966
|
+
field("attach_opaque_data", binary(), false),
|
|
1967
|
+
field("table", binary(), false),
|
|
1968
|
+
field("algorithm", utf8(), false),
|
|
1969
|
+
field("transaction_opaque_data", binary(), true),
|
|
1970
|
+
]),
|
|
1971
|
+
result: schema([
|
|
1972
|
+
field("result", binary(), false),
|
|
1973
|
+
]),
|
|
1974
|
+
doc: "Discover typed option definitions for an exact table and algorithm.",
|
|
1975
|
+
},
|
|
1699
1976
|
{
|
|
1700
1977
|
name: "catalog_macro_create",
|
|
1701
1978
|
key: "catalogMacroCreate",
|
|
@@ -1735,6 +2012,57 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1735
2012
|
]),
|
|
1736
2013
|
doc: "Get information about a macro. Returns 0 or 1 items.",
|
|
1737
2014
|
},
|
|
2015
|
+
{
|
|
2016
|
+
name: "catalog_query_prepare",
|
|
2017
|
+
key: "catalogQueryPrepare",
|
|
2018
|
+
type: "unary",
|
|
2019
|
+
params: schema([
|
|
2020
|
+
field("request", binary(), false),
|
|
2021
|
+
]),
|
|
2022
|
+
result: schema([
|
|
2023
|
+
field("result", binary(), false),
|
|
2024
|
+
]),
|
|
2025
|
+
doc: "Authorize and describe the negotiated query or statement without executing it.",
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
name: "catalog_query_release",
|
|
2029
|
+
key: "catalogQueryRelease",
|
|
2030
|
+
type: "unary",
|
|
2031
|
+
params: schema([
|
|
2032
|
+
field("attach_opaque_data", binary(), false),
|
|
2033
|
+
field("prepared_query_token", binary(), false),
|
|
2034
|
+
field("transaction_opaque_data", binary(), true),
|
|
2035
|
+
]),
|
|
2036
|
+
result: schema([]),
|
|
2037
|
+
doc: "Idempotently release an owned preparation; existing executions retain their lifetime.",
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
name: "catalog_schema_alter_metadata",
|
|
2041
|
+
key: "catalogSchemaAlterMetadata",
|
|
2042
|
+
type: "unary",
|
|
2043
|
+
params: schema([
|
|
2044
|
+
field("attach_opaque_data", binary(), false),
|
|
2045
|
+
field("path", list(field("item", utf8(), true)), false),
|
|
2046
|
+
field("changes", binary(), false),
|
|
2047
|
+
field("ignore_not_found", bool(), false),
|
|
2048
|
+
field("transaction_opaque_data", binary(), true),
|
|
2049
|
+
]),
|
|
2050
|
+
result: schema([]),
|
|
2051
|
+
doc: "Atomically apply a CatalogMetadataChanges patch under the selected DDL profile.",
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
name: "catalog_schema_alter_options",
|
|
2055
|
+
key: "catalogSchemaAlterOptions",
|
|
2056
|
+
type: "unary",
|
|
2057
|
+
params: schema([
|
|
2058
|
+
field("attach_opaque_data", binary(), false),
|
|
2059
|
+
field("path", list(field("item", utf8(), true)), false),
|
|
2060
|
+
field("changes", binary(), false),
|
|
2061
|
+
field("transaction_opaque_data", binary(), true),
|
|
2062
|
+
]),
|
|
2063
|
+
result: schema([]),
|
|
2064
|
+
doc: "Atomically SET/RESET schema options under the selected capability.",
|
|
2065
|
+
},
|
|
1738
2066
|
{
|
|
1739
2067
|
name: "catalog_schema_contents_functions",
|
|
1740
2068
|
key: "catalogSchemaContentsFunctions",
|
|
@@ -1818,6 +2146,7 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1818
2146
|
field("comment", utf8(), true),
|
|
1819
2147
|
field("tags", map(field("key", utf8(), false), field("value", utf8(), true), false), true),
|
|
1820
2148
|
field("transaction_opaque_data", binary(), true),
|
|
2149
|
+
field("options", binary(), true),
|
|
1821
2150
|
]),
|
|
1822
2151
|
result: schema([]),
|
|
1823
2152
|
doc: "Create a new schema.",
|
|
@@ -1850,6 +2179,20 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1850
2179
|
]),
|
|
1851
2180
|
doc: "Get information about a schema. Returns 0 or 1 items.",
|
|
1852
2181
|
},
|
|
2182
|
+
{
|
|
2183
|
+
name: "catalog_schema_option_definitions",
|
|
2184
|
+
key: "catalogSchemaOptionDefinitions",
|
|
2185
|
+
type: "unary",
|
|
2186
|
+
params: schema([
|
|
2187
|
+
field("attach_opaque_data", binary(), false),
|
|
2188
|
+
field("path", list(field("item", utf8(), true)), false),
|
|
2189
|
+
field("transaction_opaque_data", binary(), true),
|
|
2190
|
+
]),
|
|
2191
|
+
result: schema([
|
|
2192
|
+
field("result", binary(), false),
|
|
2193
|
+
]),
|
|
2194
|
+
doc: "Discover literal option definitions for an existing or proposed schema.",
|
|
2195
|
+
},
|
|
1853
2196
|
{
|
|
1854
2197
|
name: "catalog_schemas",
|
|
1855
2198
|
key: "catalogSchemas",
|
|
@@ -1863,6 +2206,34 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1863
2206
|
]),
|
|
1864
2207
|
doc: "List schemas in the catalog.",
|
|
1865
2208
|
},
|
|
2209
|
+
{
|
|
2210
|
+
name: "catalog_table_alter_layout",
|
|
2211
|
+
key: "catalogTableAlterLayout",
|
|
2212
|
+
type: "unary",
|
|
2213
|
+
params: schema([
|
|
2214
|
+
field("attach_opaque_data", binary(), false),
|
|
2215
|
+
field("schema_path", list(field("item", utf8(), true)), false),
|
|
2216
|
+
field("name", utf8(), false),
|
|
2217
|
+
field("changes", binary(), false),
|
|
2218
|
+
field("transaction_opaque_data", binary(), true),
|
|
2219
|
+
]),
|
|
2220
|
+
result: schema([]),
|
|
2221
|
+
doc: "Apply an IPC TableLayoutChange under its explicit existing-data mode.",
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
name: "catalog_table_alter_options",
|
|
2225
|
+
key: "catalogTableAlterOptions",
|
|
2226
|
+
type: "unary",
|
|
2227
|
+
params: schema([
|
|
2228
|
+
field("attach_opaque_data", binary(), false),
|
|
2229
|
+
field("schema_path", list(field("item", utf8(), true)), false),
|
|
2230
|
+
field("name", utf8(), false),
|
|
2231
|
+
field("changes", binary(), false),
|
|
2232
|
+
field("transaction_opaque_data", binary(), true),
|
|
2233
|
+
]),
|
|
2234
|
+
result: schema([]),
|
|
2235
|
+
doc: "Apply an IPC OptionChanges record atomically.",
|
|
2236
|
+
},
|
|
1866
2237
|
{
|
|
1867
2238
|
name: "catalog_table_column_add",
|
|
1868
2239
|
key: "catalogTableColumnAdd",
|
|
@@ -1871,6 +2242,7 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1871
2242
|
field("attach_opaque_data", binary(), false),
|
|
1872
2243
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
1873
2244
|
field("name", utf8(), false),
|
|
2245
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
1874
2246
|
field("column_definition", binary(), false),
|
|
1875
2247
|
field("ignore_not_found", bool(), false),
|
|
1876
2248
|
field("if_column_not_exists", bool(), false),
|
|
@@ -1887,7 +2259,7 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1887
2259
|
field("attach_opaque_data", binary(), false),
|
|
1888
2260
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
1889
2261
|
field("name", utf8(), false),
|
|
1890
|
-
field("
|
|
2262
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
1891
2263
|
field("comment", utf8(), true),
|
|
1892
2264
|
field("ignore_not_found", bool(), false),
|
|
1893
2265
|
field("transaction_opaque_data", binary(), true),
|
|
@@ -1903,7 +2275,7 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1903
2275
|
field("attach_opaque_data", binary(), false),
|
|
1904
2276
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
1905
2277
|
field("name", utf8(), false),
|
|
1906
|
-
field("
|
|
2278
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
1907
2279
|
field("ignore_not_found", bool(), false),
|
|
1908
2280
|
field("transaction_opaque_data", binary(), true),
|
|
1909
2281
|
]),
|
|
@@ -1918,13 +2290,13 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1918
2290
|
field("attach_opaque_data", binary(), false),
|
|
1919
2291
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
1920
2292
|
field("name", utf8(), false),
|
|
1921
|
-
field("
|
|
1922
|
-
field("expression",
|
|
2293
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
2294
|
+
field("expression", binary(), false),
|
|
1923
2295
|
field("ignore_not_found", bool(), false),
|
|
1924
2296
|
field("transaction_opaque_data", binary(), true),
|
|
1925
2297
|
]),
|
|
1926
2298
|
result: schema([]),
|
|
1927
|
-
doc: "Set
|
|
2299
|
+
doc: "Set a column default using one canonical SqlExpression IPC record.",
|
|
1928
2300
|
},
|
|
1929
2301
|
{
|
|
1930
2302
|
name: "catalog_table_column_drop",
|
|
@@ -1934,7 +2306,7 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1934
2306
|
field("attach_opaque_data", binary(), false),
|
|
1935
2307
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
1936
2308
|
field("name", utf8(), false),
|
|
1937
|
-
field("
|
|
2309
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
1938
2310
|
field("ignore_not_found", bool(), false),
|
|
1939
2311
|
field("if_column_exists", bool(), false),
|
|
1940
2312
|
field("cascade", bool(), false),
|
|
@@ -1951,7 +2323,7 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1951
2323
|
field("attach_opaque_data", binary(), false),
|
|
1952
2324
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
1953
2325
|
field("name", utf8(), false),
|
|
1954
|
-
field("
|
|
2326
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
1955
2327
|
field("new_column_name", utf8(), false),
|
|
1956
2328
|
field("ignore_not_found", bool(), false),
|
|
1957
2329
|
field("transaction_opaque_data", binary(), true),
|
|
@@ -1982,13 +2354,14 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
1982
2354
|
field("attach_opaque_data", binary(), false),
|
|
1983
2355
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
1984
2356
|
field("name", utf8(), false),
|
|
2357
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
1985
2358
|
field("column_definition", binary(), false),
|
|
1986
|
-
field("expression",
|
|
2359
|
+
field("expression", binary(), true),
|
|
1987
2360
|
field("ignore_not_found", bool(), false),
|
|
1988
2361
|
field("transaction_opaque_data", binary(), true),
|
|
1989
2362
|
]),
|
|
1990
2363
|
result: schema([]),
|
|
1991
|
-
doc: "Change
|
|
2364
|
+
doc: "Change a column type, optionally using canonical SqlExpression IPC.",
|
|
1992
2365
|
},
|
|
1993
2366
|
{
|
|
1994
2367
|
name: "catalog_table_comment_set",
|
|
@@ -2005,6 +2378,18 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
2005
2378
|
result: schema([]),
|
|
2006
2379
|
doc: "Set or clear the comment on a table.",
|
|
2007
2380
|
},
|
|
2381
|
+
{
|
|
2382
|
+
name: "catalog_table_constraints_apply",
|
|
2383
|
+
key: "catalogTableConstraintsApply",
|
|
2384
|
+
type: "unary",
|
|
2385
|
+
params: schema([
|
|
2386
|
+
field("request", binary(), false),
|
|
2387
|
+
]),
|
|
2388
|
+
result: schema([
|
|
2389
|
+
field("result", binary(), false),
|
|
2390
|
+
]),
|
|
2391
|
+
doc: "Atomically apply canonical changes at the expected table revision.",
|
|
2392
|
+
},
|
|
2008
2393
|
{
|
|
2009
2394
|
name: "catalog_table_create",
|
|
2010
2395
|
key: "catalogTableCreate",
|
|
@@ -2086,7 +2471,7 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
2086
2471
|
field("attach_opaque_data", binary(), false),
|
|
2087
2472
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
2088
2473
|
field("name", utf8(), false),
|
|
2089
|
-
field("
|
|
2474
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
2090
2475
|
field("ignore_not_found", bool(), false),
|
|
2091
2476
|
field("transaction_opaque_data", binary(), true),
|
|
2092
2477
|
]),
|
|
@@ -2101,13 +2486,28 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
2101
2486
|
field("attach_opaque_data", binary(), false),
|
|
2102
2487
|
field("schema_path", list(field("item", utf8(), true)), false),
|
|
2103
2488
|
field("name", utf8(), false),
|
|
2104
|
-
field("
|
|
2489
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
2105
2490
|
field("ignore_not_found", bool(), false),
|
|
2106
2491
|
field("transaction_opaque_data", binary(), true),
|
|
2107
2492
|
]),
|
|
2108
2493
|
result: schema([]),
|
|
2109
2494
|
doc: "Add NOT NULL constraint to a column.",
|
|
2110
2495
|
},
|
|
2496
|
+
{
|
|
2497
|
+
name: "catalog_table_option_definitions",
|
|
2498
|
+
key: "catalogTableOptionDefinitions",
|
|
2499
|
+
type: "unary",
|
|
2500
|
+
params: schema([
|
|
2501
|
+
field("attach_opaque_data", binary(), false),
|
|
2502
|
+
field("schema_path", list(field("item", utf8(), true)), false),
|
|
2503
|
+
field("name", utf8(), false),
|
|
2504
|
+
field("transaction_opaque_data", binary(), true),
|
|
2505
|
+
]),
|
|
2506
|
+
result: schema([
|
|
2507
|
+
field("result", binary(), false),
|
|
2508
|
+
]),
|
|
2509
|
+
doc: "Discover provider table-option definitions under the read profile.",
|
|
2510
|
+
},
|
|
2111
2511
|
{
|
|
2112
2512
|
name: "catalog_table_rename",
|
|
2113
2513
|
key: "catalogTableRename",
|
|
@@ -2219,6 +2619,22 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
2219
2619
|
]),
|
|
2220
2620
|
doc: "Get the current catalog version.",
|
|
2221
2621
|
},
|
|
2622
|
+
{
|
|
2623
|
+
name: "catalog_view_column_comment_set",
|
|
2624
|
+
key: "catalogViewColumnCommentSet",
|
|
2625
|
+
type: "unary",
|
|
2626
|
+
params: schema([
|
|
2627
|
+
field("attach_opaque_data", binary(), false),
|
|
2628
|
+
field("schema_path", list(field("item", utf8(), true)), false),
|
|
2629
|
+
field("name", utf8(), false),
|
|
2630
|
+
field("column_path", list(field("item", utf8(), true)), false),
|
|
2631
|
+
field("comment", utf8(), true),
|
|
2632
|
+
field("ignore_not_found", bool(), false),
|
|
2633
|
+
field("transaction_opaque_data", binary(), true),
|
|
2634
|
+
]),
|
|
2635
|
+
result: schema([]),
|
|
2636
|
+
doc: "Set or clear a view output comment; column_path has one raw component.",
|
|
2637
|
+
},
|
|
2222
2638
|
{
|
|
2223
2639
|
name: "catalog_view_comment_set",
|
|
2224
2640
|
key: "catalogViewCommentSet",
|
|
@@ -2245,6 +2661,11 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
2245
2661
|
field("definition", utf8(), false),
|
|
2246
2662
|
field("on_conflict", dictionary(utf8(), int16()), false),
|
|
2247
2663
|
field("transaction_opaque_data", binary(), true),
|
|
2664
|
+
field("aliases", list(field("item", utf8(), true)), true),
|
|
2665
|
+
field("security", utf8(), false),
|
|
2666
|
+
field("comment", utf8(), true),
|
|
2667
|
+
field("tags", map(field("key", utf8(), false), field("value", utf8(), true), false), true),
|
|
2668
|
+
field("column_comments", map(field("key", utf8(), false), field("value", utf8(), true), false), true),
|
|
2248
2669
|
]),
|
|
2249
2670
|
result: schema([]),
|
|
2250
2671
|
doc: "Create a new view.",
|
|
@@ -2380,6 +2801,18 @@ export const VGI_V2_METHODS: readonly VgiMethodSpec[] = [
|
|
|
2380
2801
|
]),
|
|
2381
2802
|
doc: "Plan a table-function scan into named, independently redeemable splits.",
|
|
2382
2803
|
},
|
|
2804
|
+
{
|
|
2805
|
+
name: "table_function_projection",
|
|
2806
|
+
key: "tableFunctionProjection",
|
|
2807
|
+
type: "unary",
|
|
2808
|
+
params: schema([
|
|
2809
|
+
field("request", binary(), false),
|
|
2810
|
+
]),
|
|
2811
|
+
result: schema([
|
|
2812
|
+
field("result", binary(), false),
|
|
2813
|
+
]),
|
|
2814
|
+
doc: "Accept optional scalar outputs before optimizer rewrite, or decline normally.",
|
|
2815
|
+
},
|
|
2383
2816
|
{
|
|
2384
2817
|
name: "table_function_statistics",
|
|
2385
2818
|
key: "tableFunctionStatistics",
|
|
@@ -2453,6 +2886,9 @@ export const UNIMPLEMENTED_VGI_SERVICE: VgiService = Object.freeze({
|
|
|
2453
2886
|
catalogCreate: async () => {
|
|
2454
2887
|
throw notImplemented("catalog_create");
|
|
2455
2888
|
},
|
|
2889
|
+
catalogDependencies: async () => {
|
|
2890
|
+
throw notImplemented("catalog_dependencies");
|
|
2891
|
+
},
|
|
2456
2892
|
catalogDetach: async () => {
|
|
2457
2893
|
throw notImplemented("catalog_detach");
|
|
2458
2894
|
},
|
|
@@ -2468,6 +2904,9 @@ export const UNIMPLEMENTED_VGI_SERVICE: VgiService = Object.freeze({
|
|
|
2468
2904
|
catalogIndexGet: async () => {
|
|
2469
2905
|
throw notImplemented("catalog_index_get");
|
|
2470
2906
|
},
|
|
2907
|
+
catalogIndexOptionDefinitions: async () => {
|
|
2908
|
+
throw notImplemented("catalog_index_option_definitions");
|
|
2909
|
+
},
|
|
2471
2910
|
catalogMacroCreate: async () => {
|
|
2472
2911
|
throw notImplemented("catalog_macro_create");
|
|
2473
2912
|
},
|
|
@@ -2477,6 +2916,18 @@ export const UNIMPLEMENTED_VGI_SERVICE: VgiService = Object.freeze({
|
|
|
2477
2916
|
catalogMacroGet: async () => {
|
|
2478
2917
|
throw notImplemented("catalog_macro_get");
|
|
2479
2918
|
},
|
|
2919
|
+
catalogQueryPrepare: async () => {
|
|
2920
|
+
throw notImplemented("catalog_query_prepare");
|
|
2921
|
+
},
|
|
2922
|
+
catalogQueryRelease: async () => {
|
|
2923
|
+
throw notImplemented("catalog_query_release");
|
|
2924
|
+
},
|
|
2925
|
+
catalogSchemaAlterMetadata: async () => {
|
|
2926
|
+
throw notImplemented("catalog_schema_alter_metadata");
|
|
2927
|
+
},
|
|
2928
|
+
catalogSchemaAlterOptions: async () => {
|
|
2929
|
+
throw notImplemented("catalog_schema_alter_options");
|
|
2930
|
+
},
|
|
2480
2931
|
catalogSchemaContentsFunctions: async () => {
|
|
2481
2932
|
throw notImplemented("catalog_schema_contents_functions");
|
|
2482
2933
|
},
|
|
@@ -2501,9 +2952,18 @@ export const UNIMPLEMENTED_VGI_SERVICE: VgiService = Object.freeze({
|
|
|
2501
2952
|
catalogSchemaGet: async () => {
|
|
2502
2953
|
throw notImplemented("catalog_schema_get");
|
|
2503
2954
|
},
|
|
2955
|
+
catalogSchemaOptionDefinitions: async () => {
|
|
2956
|
+
throw notImplemented("catalog_schema_option_definitions");
|
|
2957
|
+
},
|
|
2504
2958
|
catalogSchemas: async () => {
|
|
2505
2959
|
throw notImplemented("catalog_schemas");
|
|
2506
2960
|
},
|
|
2961
|
+
catalogTableAlterLayout: async () => {
|
|
2962
|
+
throw notImplemented("catalog_table_alter_layout");
|
|
2963
|
+
},
|
|
2964
|
+
catalogTableAlterOptions: async () => {
|
|
2965
|
+
throw notImplemented("catalog_table_alter_options");
|
|
2966
|
+
},
|
|
2507
2967
|
catalogTableColumnAdd: async () => {
|
|
2508
2968
|
throw notImplemented("catalog_table_column_add");
|
|
2509
2969
|
},
|
|
@@ -2531,6 +2991,9 @@ export const UNIMPLEMENTED_VGI_SERVICE: VgiService = Object.freeze({
|
|
|
2531
2991
|
catalogTableCommentSet: async () => {
|
|
2532
2992
|
throw notImplemented("catalog_table_comment_set");
|
|
2533
2993
|
},
|
|
2994
|
+
catalogTableConstraintsApply: async () => {
|
|
2995
|
+
throw notImplemented("catalog_table_constraints_apply");
|
|
2996
|
+
},
|
|
2534
2997
|
catalogTableCreate: async () => {
|
|
2535
2998
|
throw notImplemented("catalog_table_create");
|
|
2536
2999
|
},
|
|
@@ -2552,6 +3015,9 @@ export const UNIMPLEMENTED_VGI_SERVICE: VgiService = Object.freeze({
|
|
|
2552
3015
|
catalogTableNotNullSet: async () => {
|
|
2553
3016
|
throw notImplemented("catalog_table_not_null_set");
|
|
2554
3017
|
},
|
|
3018
|
+
catalogTableOptionDefinitions: async () => {
|
|
3019
|
+
throw notImplemented("catalog_table_option_definitions");
|
|
3020
|
+
},
|
|
2555
3021
|
catalogTableRename: async () => {
|
|
2556
3022
|
throw notImplemented("catalog_table_rename");
|
|
2557
3023
|
},
|
|
@@ -2576,6 +3042,9 @@ export const UNIMPLEMENTED_VGI_SERVICE: VgiService = Object.freeze({
|
|
|
2576
3042
|
catalogVersion: async () => {
|
|
2577
3043
|
throw notImplemented("catalog_version");
|
|
2578
3044
|
},
|
|
3045
|
+
catalogViewColumnCommentSet: async () => {
|
|
3046
|
+
throw notImplemented("catalog_view_column_comment_set");
|
|
3047
|
+
},
|
|
2579
3048
|
catalogViewCommentSet: async () => {
|
|
2580
3049
|
throw notImplemented("catalog_view_comment_set");
|
|
2581
3050
|
},
|
|
@@ -2610,6 +3079,9 @@ export const UNIMPLEMENTED_VGI_SERVICE: VgiService = Object.freeze({
|
|
|
2610
3079
|
tableFunctionPlan: async () => {
|
|
2611
3080
|
throw notImplemented("table_function_plan");
|
|
2612
3081
|
},
|
|
3082
|
+
tableFunctionProjection: async () => {
|
|
3083
|
+
throw notImplemented("table_function_projection");
|
|
3084
|
+
},
|
|
2613
3085
|
tableFunctionStatistics: async () => {
|
|
2614
3086
|
throw notImplemented("table_function_statistics");
|
|
2615
3087
|
},
|
|
@@ -2635,11 +3107,11 @@ function unimplementedStream(method: string): VgiStream {
|
|
|
2635
3107
|
}
|
|
2636
3108
|
|
|
2637
3109
|
/**
|
|
2638
|
-
* Register every `vgi.
|
|
2639
|
-
* from {@link
|
|
3110
|
+
* Register every `vgi.v3` method on *protocol*, with the reference's schemas
|
|
3111
|
+
* from {@link VGI_V3_METHODS} and the handlers from *service*.
|
|
2640
3112
|
*/
|
|
2641
3113
|
export function registerVgiService(protocol: Protocol, service: VgiService): Protocol {
|
|
2642
|
-
for (const m of
|
|
3114
|
+
for (const m of VGI_V3_METHODS) {
|
|
2643
3115
|
if (m.type === "unary") {
|
|
2644
3116
|
const handler = service[m.key] as (params: object, ctx: CallContext) => ReturnType<UnaryHandler>;
|
|
2645
3117
|
protocol.unary(m.name, {
|