@thisisagile/easy-bq 21.2.0 → 21.2.1
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/BqProvider.d.ts +0 -2
- package/dist/BqProvider.js +1 -2
- package/package.json +4 -4
package/dist/BqProvider.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { BigQuery } from "@google-cloud/bigquery";
|
|
2
2
|
import { Json, List } from "@thisisagile/easy";
|
|
3
3
|
import { Enum } from "@thisisagile/easy/Database";
|
|
4
|
-
//#region src/BqProvider.d.ts
|
|
5
4
|
export declare class BqProvider {
|
|
6
5
|
readonly db: Enum;
|
|
7
6
|
private readonly client;
|
|
8
7
|
constructor(db: Enum, client?: BigQuery);
|
|
9
8
|
query: (sql: string, params?: Record<string, unknown>) => Promise<List<Json>>;
|
|
10
9
|
}
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=BqProvider.d.ts.map
|
package/dist/BqProvider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Exception from "@thisisagile/easy/Exception";
|
|
2
2
|
import { BigQuery } from "@google-cloud/bigquery";
|
|
3
3
|
import { reject, resolve, toList } from "@thisisagile/easy";
|
|
4
|
-
|
|
4
|
+
// src/BqProvider.ts
|
|
5
5
|
var BqProvider = class {
|
|
6
6
|
db;
|
|
7
7
|
client;
|
|
@@ -15,7 +15,6 @@ var BqProvider = class {
|
|
|
15
15
|
params
|
|
16
16
|
})).then(([rows]) => toList(rows)).catch((e) => reject(Exception.CouldNotExecute(this.db).because(e)));
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { BqProvider };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=BqProvider.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisisagile/easy-bq",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.1",
|
|
4
4
|
"description": "Add support for Google BigQuery",
|
|
5
5
|
"author": "Sander Hoogendoorn",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"node": ">=20.19.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@thisisagile/easy-test": "
|
|
40
|
+
"@thisisagile/easy-test": "workspace:*"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@google-cloud/bigquery": "^
|
|
44
|
-
"@thisisagile/easy": "
|
|
43
|
+
"@google-cloud/bigquery": "^9.6.0",
|
|
44
|
+
"@thisisagile/easy": "workspace:^"
|
|
45
45
|
},
|
|
46
46
|
"exports": {
|
|
47
47
|
".": {
|