@malloydata/db-bigquery 0.0.63-dev230727220611 → 0.0.63-dev230728193024
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,7 +1,7 @@
|
|
|
1
1
|
import { RowMetadata } from '@google-cloud/bigquery';
|
|
2
2
|
import bigquery from '@google-cloud/bigquery/build/src/types';
|
|
3
3
|
import { ResourceStream } from '@google-cloud/paginator';
|
|
4
|
-
import { Connection, FieldTypeDef, MalloyQueryData, PersistSQLResults, PooledConnection, QueryData, QueryDataRow, QueryRunStats, SQLBlock, StreamingConnection, StructDef } from '@malloydata/malloy';
|
|
4
|
+
import { Connection, DialectProviderConnection, FieldTypeDef, MalloyQueryData, PersistSQLResults, PooledConnection, QueryData, QueryDataRow, QueryRunStats, SQLBlock, StreamingConnection, StructDef } from '@malloydata/malloy';
|
|
5
5
|
export interface BigQueryManagerOptions {
|
|
6
6
|
credentials?: {
|
|
7
7
|
clientId: string;
|
|
@@ -58,6 +58,7 @@ export declare class BigQueryConnection implements Connection, PersistSQLResults
|
|
|
58
58
|
isPool(): this is PooledConnection;
|
|
59
59
|
canPersist(): this is PersistSQLResults;
|
|
60
60
|
canStream(): this is StreamingConnection;
|
|
61
|
+
providesDialect(): this is DialectProviderConnection;
|
|
61
62
|
private _runSQL;
|
|
62
63
|
runSQL(sqlCommand: string, options?: Partial<BigQueryQueryOptions>, rowIndex?: number): Promise<MalloyQueryData>;
|
|
63
64
|
runSQLBlockAndFetchResultSchema(sqlBlock: SQLBlock, options?: {
|
|
@@ -152,6 +152,9 @@ class BigQueryConnection {
|
|
|
152
152
|
canStream() {
|
|
153
153
|
return true;
|
|
154
154
|
}
|
|
155
|
+
providesDialect() {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
155
158
|
async _runSQL(sqlCommand, options = {}, rowIndex = 0) {
|
|
156
159
|
var _a, _b, _c, _d;
|
|
157
160
|
const defaultOptions = this.readQueryOptions();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-bigquery",
|
|
3
|
-
"version": "0.0.63-
|
|
3
|
+
"version": "0.0.63-dev230728193024",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@google-cloud/bigquery": "^5.5.0",
|
|
26
26
|
"@google-cloud/common": "^3.6.0",
|
|
27
27
|
"@google-cloud/paginator": "^4.0.1",
|
|
28
|
-
"@malloydata/malloy": "^0.0.63-
|
|
28
|
+
"@malloydata/malloy": "^0.0.63-dev230728193024",
|
|
29
29
|
"gaxios": "^4.2.0"
|
|
30
30
|
}
|
|
31
31
|
}
|