@malloydata/db-duckdb 0.0.46-dev230623230139 → 0.0.46
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/duckdb_common.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MalloyQueryData, PersistSQLResults, PooledConnection, QueryDataRow, QueryRunStats, RunSQLOptions, SQLBlock, StreamingConnection, StructDef, TestableConnection } from '@malloydata/malloy';
|
|
2
2
|
export interface DuckDBQueryOptions {
|
|
3
3
|
rowLimit: number;
|
|
4
4
|
}
|
|
5
5
|
export declare type QueryOptionsReader = Partial<DuckDBQueryOptions> | (() => Partial<DuckDBQueryOptions>);
|
|
6
|
-
export declare abstract class DuckDBCommon implements
|
|
6
|
+
export declare abstract class DuckDBCommon implements TestableConnection, PersistSQLResults, StreamingConnection {
|
|
7
7
|
private queryOptions?;
|
|
8
8
|
static DEFAULT_QUERY_OPTIONS: DuckDBQueryOptions;
|
|
9
9
|
private schemaCache;
|
|
@@ -53,9 +53,6 @@ class DuckDBWASMConnection extends duckdb_wasm_connection_1.DuckDBWASMConnection
|
|
|
53
53
|
async createHash(sqlCommand) {
|
|
54
54
|
return crypto_1.default.createHash('md5').update(sqlCommand).digest('hex');
|
|
55
55
|
}
|
|
56
|
-
async test() {
|
|
57
|
-
await this.runRawSQL('SELECT 1');
|
|
58
|
-
}
|
|
59
56
|
}
|
|
60
57
|
exports.DuckDBWASMConnection = DuckDBWASMConnection;
|
|
61
58
|
//# sourceMappingURL=duckdb_wasm_connection_node.js.map
|