@malloydata/malloy 0.0.166-dev240815161035 → 0.0.166
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.
|
@@ -21,4 +21,6 @@ export declare abstract class BaseConnection implements Connection {
|
|
|
21
21
|
canStream(): this is StreamingConnection;
|
|
22
22
|
close(): Promise<void>;
|
|
23
23
|
estimateQueryCost(_sqlCommand: string): Promise<QueryRunStats>;
|
|
24
|
+
fetchMetadata(): Promise<{}>;
|
|
25
|
+
fetchTableMetadata(_tablePath: string): Promise<{}>;
|
|
24
26
|
}
|
|
@@ -15,6 +15,12 @@ class BaseConnection {
|
|
|
15
15
|
async estimateQueryCost(_sqlCommand) {
|
|
16
16
|
return {};
|
|
17
17
|
}
|
|
18
|
+
async fetchMetadata() {
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
21
|
+
async fetchTableMetadata(_tablePath) {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
exports.BaseConnection = BaseConnection;
|
|
20
26
|
//# sourceMappingURL=base_connection.js.map
|
|
@@ -60,6 +60,12 @@ export interface ConnectionFactory {
|
|
|
60
60
|
configSchema: ConnectionConfigSchema;
|
|
61
61
|
createConnection(connectionConfig: ConnectionConfig, dialectRegistrar?: (dialect: Dialect) => void): Connection & TestableConnection;
|
|
62
62
|
}
|
|
63
|
+
export interface ConnectionMetadata {
|
|
64
|
+
url?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface TableMetadata {
|
|
67
|
+
url?: string;
|
|
68
|
+
}
|
|
63
69
|
/**
|
|
64
70
|
* An object capable of running SQL.
|
|
65
71
|
*/
|
|
@@ -79,6 +85,8 @@ export interface Connection extends InfoConnection {
|
|
|
79
85
|
close(): Promise<void>;
|
|
80
86
|
estimateQueryCost(sqlCommand: string): Promise<QueryRunStats>;
|
|
81
87
|
get dialectName(): string;
|
|
88
|
+
fetchMetadata: () => Promise<ConnectionMetadata>;
|
|
89
|
+
fetchTableMetadata: (tablePath: string) => Promise<TableMetadata>;
|
|
82
90
|
}
|
|
83
91
|
export interface TestableConnection extends Connection {
|
|
84
92
|
test(): Promise<void>;
|