@malloydata/malloy-interfaces 0.0.96-dev231025215721 → 0.0.96-dev231025215824
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/index.d.ts +1 -1
- package/dist/runtime_types.d.ts +8 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { Connection, ConnectionConfig, ConnectionFactory, ConnectionParameter, ConnectionParameterValue, ConnectionConfigSchema, InfoConnection, LookupConnection, ModelString, ModelURL, PersistSQLResults, PooledConnection, QueryString, QueryURL, TestableConnection, StreamingConnection, URLReader, } from './runtime_types';
|
|
1
|
+
export type { Connection, ConnectionConfig, ConnectionFactory, ConnectionParameter, ConnectionParameterValue, ConnectionConfigSchema, FetchSchemaOptions, InfoConnection, LookupConnection, ModelString, ModelURL, PersistSQLResults, PooledConnection, QueryString, QueryURL, TestableConnection, StreamingConnection, URLReader, } from './runtime_types';
|
package/dist/runtime_types.d.ts
CHANGED
|
@@ -29,6 +29,12 @@ export interface URLReader {
|
|
|
29
29
|
*/
|
|
30
30
|
readURL: (url: URL) => Promise<string>;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Options passed to fetchSchema methods.
|
|
34
|
+
*/
|
|
35
|
+
export interface FetchSchemaOptions {
|
|
36
|
+
refreshTimestamp?: number;
|
|
37
|
+
}
|
|
32
38
|
/**
|
|
33
39
|
* An object capable of reading schemas for given table names.
|
|
34
40
|
*/
|
|
@@ -40,7 +46,7 @@ export interface InfoConnection {
|
|
|
40
46
|
* as a map of keys to table names.
|
|
41
47
|
* @return A mapping of table keys to schemas.
|
|
42
48
|
*/
|
|
43
|
-
fetchSchemaForTables(tables: Record<string, string
|
|
49
|
+
fetchSchemaForTables(tables: Record<string, string>, options: FetchSchemaOptions): Promise<{
|
|
44
50
|
schemas: Record<string, StructDef>;
|
|
45
51
|
errors: Record<string, string>;
|
|
46
52
|
}>;
|
|
@@ -50,7 +56,7 @@ export interface InfoConnection {
|
|
|
50
56
|
* @param block The SQL blocks to fetch schemas for.
|
|
51
57
|
* @return A mapping of SQL block names to schemas.
|
|
52
58
|
*/
|
|
53
|
-
fetchSchemaForSQLBlock(block: SQLBlock): Promise<{
|
|
59
|
+
fetchSchemaForSQLBlock(block: SQLBlock, options: FetchSchemaOptions): Promise<{
|
|
54
60
|
structDef: StructDef;
|
|
55
61
|
error?: undefined;
|
|
56
62
|
} | {
|