@query-farm/vgi 0.48.5 → 0.48.6
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
|
@@ -13171,8 +13171,8 @@ class ReadOnlyCatalogInterface extends CatalogInterface {
|
|
|
13171
13171
|
const tables = await this.schemaContentsTables(attachOpaqueData, schemaPath, transactionOpaqueData);
|
|
13172
13172
|
return tables.find((t) => t.name === name) ?? null;
|
|
13173
13173
|
}
|
|
13174
|
-
viewGet(attachOpaqueData, schemaPath, name, transactionOpaqueData) {
|
|
13175
|
-
const views = this.schemaContentsViews(attachOpaqueData, schemaPath, transactionOpaqueData);
|
|
13174
|
+
async viewGet(attachOpaqueData, schemaPath, name, transactionOpaqueData) {
|
|
13175
|
+
const views = await this.schemaContentsViews(attachOpaqueData, schemaPath, transactionOpaqueData);
|
|
13176
13176
|
return views.find((v) => v.name === name) ?? null;
|
|
13177
13177
|
}
|
|
13178
13178
|
copyFromFormats(attachOpaqueData, transactionOpaqueData) {
|
|
@@ -20436,4 +20436,4 @@ export {
|
|
|
20436
20436
|
writeRowsBatch
|
|
20437
20437
|
};
|
|
20438
20438
|
|
|
20439
|
-
//# debugId=
|
|
20439
|
+
//# debugId=8DAD2CDA2588749A64756E2164756E21
|