@malloydata/db-postgres 0.0.38-dev230601002801 → 0.0.38-dev230605182241
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,4 +1,4 @@
|
|
|
1
|
-
import { Connection, MalloyQueryData, PersistSQLResults, PooledConnection, QueryData, QueryDataRow, RunSQLOptions, SQLBlock, StreamingConnection, StructDef } from '@malloydata/malloy';
|
|
1
|
+
import { Connection, MalloyQueryData, PersistSQLResults, PooledConnection, QueryData, QueryDataRow, QueryRunStats, RunSQLOptions, SQLBlock, StreamingConnection, StructDef } from '@malloydata/malloy';
|
|
2
2
|
import { Client } from 'pg';
|
|
3
3
|
interface PostgresQueryConfiguration {
|
|
4
4
|
rowLimit?: number;
|
|
@@ -49,6 +49,7 @@ export declare class PostgresConnection implements Connection, StreamingConnecti
|
|
|
49
49
|
runSQLStream(sqlCommand: string, options?: {
|
|
50
50
|
rowLimit?: number;
|
|
51
51
|
}): AsyncIterableIterator<QueryDataRow>;
|
|
52
|
+
estimateQueryCost(_: string): Promise<QueryRunStats>;
|
|
52
53
|
manifestTemporaryTable(sqlCommand: string): Promise<string>;
|
|
53
54
|
close(): Promise<void>;
|
|
54
55
|
}
|
|
@@ -324,6 +324,9 @@ class PostgresConnection {
|
|
|
324
324
|
}
|
|
325
325
|
await client.end();
|
|
326
326
|
}
|
|
327
|
+
async estimateQueryCost(_) {
|
|
328
|
+
return {};
|
|
329
|
+
}
|
|
327
330
|
async manifestTemporaryTable(sqlCommand) {
|
|
328
331
|
const hash = crypto.createHash('md5').update(sqlCommand).digest('hex');
|
|
329
332
|
const tableName = `tt${hash}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-postgres",
|
|
3
|
-
"version": "0.0.38-
|
|
3
|
+
"version": "0.0.38-dev230605182241",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"prepublishOnly": "npm run build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@malloydata/malloy": "^0.0.38-
|
|
22
|
+
"@malloydata/malloy": "^0.0.38-dev230605182241",
|
|
23
23
|
"@types/pg": "^8.6.1",
|
|
24
24
|
"pg": "^8.7.1",
|
|
25
25
|
"pg-query-stream": "4.2.3"
|