@query-farm/vgi 0.49.0 → 0.49.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.
@@ -1,6 +1,7 @@
1
1
  import { CatalogInterface, type AttachOpaqueData, type TransactionOpaqueData, type CatalogAttachResult, type SchemaInfo, type CatalogInfo, type TableInfo, type ViewInfo, type FunctionInfo, type MacroInfo, type IndexInfo, type CopyFromFormatInfo, type ScanFunctionResultRecord } from "./interface.js";
2
2
  import { type CatalogDescriptor } from "./descriptors.js";
3
3
  import type { FunctionRegistry } from "../functions/registry.js";
4
+ type Awaitable<T> = T | Promise<T>;
4
5
  import { type AttachOptionSpec } from "./attach-option.js";
5
6
  import type { CatalogCapabilities } from "../generated/vgi-protocol-types.js";
6
7
  /**
@@ -112,15 +113,15 @@ export declare class ReadOnlyCatalogInterface extends CatalogInterface {
112
113
  */
113
114
  protected itemAttachId(attachOpaqueData: AttachOpaqueData): AttachOpaqueData;
114
115
  catalogContentsCacheable(): boolean;
115
- schemas(attachOpaqueData: AttachOpaqueData, transactionOpaqueData?: TransactionOpaqueData): SchemaInfo[];
116
+ schemas(attachOpaqueData: AttachOpaqueData, transactionOpaqueData?: TransactionOpaqueData): Awaitable<SchemaInfo[]>;
116
117
  private _estimatedObjectCount;
117
- schemaGet(attachOpaqueData: AttachOpaqueData, path: string[], transactionOpaqueData?: TransactionOpaqueData): SchemaInfo | null;
118
+ schemaGet(attachOpaqueData: AttachOpaqueData, path: string[], transactionOpaqueData?: TransactionOpaqueData): Awaitable<SchemaInfo | null>;
118
119
  schemaContentsTables(attachOpaqueData: AttachOpaqueData, path: string[], transactionOpaqueData?: TransactionOpaqueData): Promise<TableInfo[]>;
119
120
  tableColumnStatisticsGet(attachOpaqueData: AttachOpaqueData, schemaPath: string[], name: string, transactionOpaqueData?: TransactionOpaqueData): {
120
121
  bytes: Uint8Array;
121
122
  cacheMaxAgeSeconds: number | null;
122
123
  } | null;
123
- schemaContentsViews(attachOpaqueData: AttachOpaqueData, path: string[], transactionOpaqueData?: TransactionOpaqueData): ViewInfo[];
124
+ schemaContentsViews(attachOpaqueData: AttachOpaqueData, path: string[], transactionOpaqueData?: TransactionOpaqueData): Awaitable<ViewInfo[]>;
124
125
  schemaContentsFunctions(attachOpaqueData: AttachOpaqueData, path: string[], type: string, transactionOpaqueData?: TransactionOpaqueData): FunctionInfo[];
125
126
  /**
126
127
  * The frozen FunctionInfo for `f` as declared in `schema`, built on first use.
@@ -158,6 +159,7 @@ export declare class ReadOnlyCatalogInterface extends CatalogInterface {
158
159
  tableUpdateFunctionGet(_attachOpaqueData: AttachOpaqueData, schemaPath: string[], name: string, _transactionOpaqueData?: TransactionOpaqueData): ScanFunctionResultRecord;
159
160
  tableDeleteFunctionGet(_attachOpaqueData: AttachOpaqueData, schemaPath: string[], name: string, _transactionOpaqueData?: TransactionOpaqueData): ScanFunctionResultRecord;
160
161
  tableGet(attachOpaqueData: AttachOpaqueData, schemaPath: string[], name: string, atUnit?: string, atValue?: string, transactionOpaqueData?: TransactionOpaqueData): Promise<TableInfo | null>;
161
- viewGet(attachOpaqueData: AttachOpaqueData, schemaPath: string[], name: string, transactionOpaqueData?: TransactionOpaqueData): ViewInfo | null;
162
+ viewGet(attachOpaqueData: AttachOpaqueData, schemaPath: string[], name: string, transactionOpaqueData?: TransactionOpaqueData): Promise<ViewInfo | null>;
162
163
  copyFromFormats(attachOpaqueData: AttachOpaqueData, transactionOpaqueData?: TransactionOpaqueData): CopyFromFormatInfo[];
163
164
  }
165
+ export {};
package/dist/index.js CHANGED
@@ -13427,8 +13427,8 @@ class ReadOnlyCatalogInterface extends CatalogInterface {
13427
13427
  const tables = await this.schemaContentsTables(attachOpaqueData, schemaPath, transactionOpaqueData);
13428
13428
  return tables.find((t) => t.name === name) ?? null;
13429
13429
  }
13430
- viewGet(attachOpaqueData, schemaPath, name, transactionOpaqueData) {
13431
- const views = this.schemaContentsViews(attachOpaqueData, schemaPath, transactionOpaqueData);
13430
+ async viewGet(attachOpaqueData, schemaPath, name, transactionOpaqueData) {
13431
+ const views = await this.schemaContentsViews(attachOpaqueData, schemaPath, transactionOpaqueData);
13432
13432
  return views.find((v) => v.name === name) ?? null;
13433
13433
  }
13434
13434
  copyFromFormats(attachOpaqueData, transactionOpaqueData) {
@@ -20719,4 +20719,4 @@ export {
20719
20719
  writeRowsBatch
20720
20720
  };
20721
20721
 
20722
- //# debugId=3EFA2D875F0253C364756E2164756E21
20722
+ //# debugId=52476A3C118F9C0764756E2164756E21