@malloydata/db-duckdb 0.0.38-dev230602001052 → 0.0.38-dev230606045241
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 +2 -1
- package/dist/duckdb_common.js +3 -0
- package/package.json +2 -2
package/dist/duckdb_common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Connection, MalloyQueryData, PersistSQLResults, PooledConnection, QueryDataRow, RunSQLOptions, SQLBlock, StreamingConnection, StructDef } from '@malloydata/malloy';
|
|
1
|
+
import { Connection, MalloyQueryData, PersistSQLResults, PooledConnection, QueryDataRow, QueryRunStats, RunSQLOptions, SQLBlock, StreamingConnection, StructDef } from '@malloydata/malloy';
|
|
2
2
|
export interface DuckDBQueryOptions {
|
|
3
3
|
rowLimit: number;
|
|
4
4
|
}
|
|
@@ -26,6 +26,7 @@ export declare abstract class DuckDBCommon implements Connection, PersistSQLResu
|
|
|
26
26
|
runSQL(sql: string, options?: RunSQLOptions): Promise<MalloyQueryData>;
|
|
27
27
|
abstract runSQLStream(sql: string, _options: RunSQLOptions): AsyncIterableIterator<QueryDataRow>;
|
|
28
28
|
private getSQLBlockSchema;
|
|
29
|
+
estimateQueryCost(_: string): Promise<QueryRunStats>;
|
|
29
30
|
/**
|
|
30
31
|
* Split's a structs columns declaration into individual columns
|
|
31
32
|
* to be fed back into fillStructDefFromTypeMap(). Handles commas
|
package/dist/duckdb_common.js
CHANGED
|
@@ -118,6 +118,9 @@ class DuckDBCommon {
|
|
|
118
118
|
await this.schemaFromQuery(`DESCRIBE SELECT * FROM (${sqlRef.selectStr})`, structDef);
|
|
119
119
|
return structDef;
|
|
120
120
|
}
|
|
121
|
+
async estimateQueryCost(_) {
|
|
122
|
+
return {};
|
|
123
|
+
}
|
|
121
124
|
/**
|
|
122
125
|
* Split's a structs columns declaration into individual columns
|
|
123
126
|
* to be fed back into fillStructDefFromTypeMap(). Handles commas
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-duckdb",
|
|
3
|
-
"version": "0.0.38-
|
|
3
|
+
"version": "0.0.38-dev230606045241",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@malloydata/duckdb-wasm": "0.0.1",
|
|
44
|
-
"@malloydata/malloy": "^0.0.38-
|
|
44
|
+
"@malloydata/malloy": "^0.0.38-dev230606045241",
|
|
45
45
|
"apache-arrow": "^11.0.0",
|
|
46
46
|
"duckdb": "0.7.1",
|
|
47
47
|
"web-worker": "^1.2.0"
|