@cubejs-backend/testing-shared 0.30.45 → 0.30.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.30.46](https://github.com/cube-js/cube.js/compare/v0.30.45...v0.30.46) (2022-08-10)
7
+
8
+
9
+ ### Features
10
+
11
+ * **drivers:** Bootstraps CrateDB driver ([#4929](https://github.com/cube-js/cube.js/issues/4929)) ([db87b8f](https://github.com/cube-js/cube.js/commit/db87b8f18686607498467c6ff0f71abcd1e38c5d))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.30.45](https://github.com/cube-js/cube.js/compare/v0.30.44...v0.30.45) (2022-08-05)
7
18
 
8
19
  **Note:** Version bump only for package @cubejs-backend/testing-shared
@@ -98,7 +98,7 @@ DriverTests.QUERY = `
98
98
  SELECT 2 AS id, 200 AS amount, 'new' AS status
99
99
  UNION ALL
100
100
  SELECT 3 AS id, 400 AS amount, 'processed' AS status
101
- )
101
+ ) AS data
102
102
  ORDER BY 1
103
103
  `;
104
104
  DriverTests.ROWS = [
@@ -0,0 +1,5 @@
1
+ import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract';
2
+ export declare class CrateDBRunner extends DbRunnerAbstract {
3
+ static startContainer(options: DBRunnerContainerOptions): Promise<import("testcontainers").StartedTestContainer>;
4
+ }
5
+ //# sourceMappingURL=crate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crate.d.ts","sourceRoot":"","sources":["../../../src/db/crate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAElF,qBAAa,aAAc,SAAQ,gBAAgB;WACnC,cAAc,CAAC,OAAO,EAAE,wBAAwB;CAgB/D"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CrateDBRunner = void 0;
4
+ const testcontainers_1 = require("testcontainers");
5
+ const db_runner_abstract_1 = require("./db-runner.abstract");
6
+ class CrateDBRunner extends db_runner_abstract_1.DbRunnerAbstract {
7
+ static startContainer(options) {
8
+ const version = process.env.TEST_CRATE_DB_VERSION || '5.0.0';
9
+ const container = new testcontainers_1.GenericContainer(`crate/crate:${version}`)
10
+ .withExposedPorts(5432)
11
+ .withStartupTimeout(10 * 1000);
12
+ if (options.volumes) {
13
+ // eslint-disable-next-line no-restricted-syntax
14
+ for (const { source, target, bindMode } of options.volumes) {
15
+ container.withBindMount(source, target, bindMode);
16
+ }
17
+ }
18
+ return container.start();
19
+ }
20
+ }
21
+ exports.CrateDBRunner = CrateDBRunner;
22
+ //# sourceMappingURL=crate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crate.js","sourceRoot":"","sources":["../../../src/db/crate.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAElD,6DAAkF;AAElF,MAAa,aAAc,SAAQ,qCAAgB;IAC1C,MAAM,CAAC,cAAc,CAAC,OAAiC;QAC5D,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,OAAO,CAAC;QAE7D,MAAM,SAAS,GAAG,IAAI,iCAAgB,CAAC,eAAe,OAAO,EAAE,CAAC;aAC7D,gBAAgB,CAAC,IAAI,CAAC;aACtB,kBAAkB,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;QAEjC,IAAI,OAAO,CAAC,OAAO,EAAE;YACnB,gDAAgD;YAChD,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,OAAO,CAAC,OAAO,EAAE;gBAC1D,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;aACnD;SACF;QAED,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;CACF;AAjBD,sCAiBC"}
@@ -3,4 +3,5 @@ export * from './postgres';
3
3
  export * from './cubestore';
4
4
  export * from './questdb';
5
5
  export * from './materialize';
6
+ export * from './crate';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/db/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/db/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
@@ -15,4 +15,5 @@ __exportStar(require("./postgres"), exports);
15
15
  __exportStar(require("./cubestore"), exports);
16
16
  __exportStar(require("./questdb"), exports);
17
17
  __exportStar(require("./materialize"), exports);
18
+ __exportStar(require("./crate"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,4CAA0B;AAC1B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,4CAA0B;AAC1B,gDAA8B;AAC9B,0CAAwB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-backend/testing-shared",
3
- "version": "0.30.45",
3
+ "version": "0.30.46",
4
4
  "description": "Cube.js Testing Helpers",
5
5
  "author": "Cube Dev, Inc.",
6
6
  "license": "Apache-2.0",
@@ -21,11 +21,11 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@cubejs-backend/dotenv": "^9.0.2",
24
- "@cubejs-backend/query-orchestrator": "^0.30.45",
25
- "@cubejs-backend/schema-compiler": "^0.30.45",
26
- "@cubejs-backend/shared": "^0.30.45",
24
+ "@cubejs-backend/query-orchestrator": "^0.30.46",
25
+ "@cubejs-backend/schema-compiler": "^0.30.46",
26
+ "@cubejs-backend/shared": "^0.30.46",
27
27
  "dedent": "^0.7.0",
28
- "testcontainers": "^7.5.0"
28
+ "testcontainers": "^8.12"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@cubejs-backend/linter": "^0.30.0",
@@ -52,5 +52,5 @@
52
52
  "eslintConfig": {
53
53
  "extends": "../cubejs-linter"
54
54
  },
55
- "gitHead": "103090c637da2a13d82a1dd44a45e9ad98553401"
55
+ "gitHead": "c29f3e26e595a96f140c55049131b764e852876e"
56
56
  }