@cubejs-backend/testing-shared 0.29.51 → 0.29.54

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,33 @@
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.29.54](https://github.com/cube-js/cube.js/compare/v0.29.53...v0.29.54) (2022-05-03)
7
+
8
+ **Note:** Version bump only for package @cubejs-backend/testing-shared
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.29.53](https://github.com/cube-js/cube.js/compare/v0.29.52...v0.29.53) (2022-04-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * **packages:** Materialize driver ([#4320](https://github.com/cube-js/cube.js/issues/4320)) ([d40d13b](https://github.com/cube-js/cube.js/commit/d40d13b0a80cd65b27337e87a523314af585dbc6))
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.29.52](https://github.com/cube-js/cube.js/compare/v0.29.51...v0.29.52) (2022-04-23)
26
+
27
+ **Note:** Version bump only for package @cubejs-backend/testing-shared
28
+
29
+
30
+
31
+
32
+
6
33
  ## [0.29.51](https://github.com/cube-js/cube.js/compare/v0.29.50...v0.29.51) (2022-04-22)
7
34
 
8
35
  **Note:** Version bump only for package @cubejs-backend/testing-shared
@@ -2,4 +2,5 @@ export * from './mysql';
2
2
  export * from './postgres';
3
3
  export * from './cubestore';
4
4
  export * from './questdb';
5
+ export * from './materialize';
5
6
  //# 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"}
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"}
@@ -14,4 +14,5 @@ __exportStar(require("./mysql"), exports);
14
14
  __exportStar(require("./postgres"), exports);
15
15
  __exportStar(require("./cubestore"), exports);
16
16
  __exportStar(require("./questdb"), exports);
17
+ __exportStar(require("./materialize"), exports);
17
18
  //# 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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,4CAA0B;AAC1B,gDAA8B"}
@@ -0,0 +1,9 @@
1
+ import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract';
2
+ declare type MaterializeStartOptions = DBRunnerContainerOptions & {
3
+ version?: string;
4
+ };
5
+ export declare class MaterializeDBRunner extends DbRunnerAbstract {
6
+ static startContainer(options: MaterializeStartOptions): Promise<import("testcontainers").StartedTestContainer>;
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=materialize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"materialize.d.ts","sourceRoot":"","sources":["../../../src/db/materialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAElF,aAAK,uBAAuB,GAAG,wBAAwB,GAAG;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,gBAAgB;WACzC,cAAc,CAAC,OAAO,EAAE,uBAAuB;CAoB9D"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaterializeDBRunner = void 0;
4
+ const testcontainers_1 = require("testcontainers");
5
+ const db_runner_abstract_1 = require("./db-runner.abstract");
6
+ class MaterializeDBRunner extends db_runner_abstract_1.DbRunnerAbstract {
7
+ static startContainer(options) {
8
+ /**
9
+ * Version v0.26.0 is latest Materialize release with Long Term Support
10
+ */
11
+ const version = process.env.TEST_MZSQL_VERSION || options.version || 'v0.26.0';
12
+ const container = new testcontainers_1.GenericContainer(`materialize/materialized:${version}`)
13
+ .withExposedPorts(6875)
14
+ // Postgresql do fast shutdown on start for db applying
15
+ .withStartupTimeout(10 * 1000);
16
+ if (options.volumes) {
17
+ // eslint-disable-next-line no-restricted-syntax
18
+ for (const { source, target, bindMode } of options.volumes) {
19
+ container.withBindMount(source, target, bindMode);
20
+ }
21
+ }
22
+ return container.start();
23
+ }
24
+ }
25
+ exports.MaterializeDBRunner = MaterializeDBRunner;
26
+ //# sourceMappingURL=materialize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"materialize.js","sourceRoot":"","sources":["../../../src/db/materialize.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAElD,6DAAkF;AAMlF,MAAa,mBAAoB,SAAQ,qCAAgB;IAChD,MAAM,CAAC,cAAc,CAAC,OAAgC;QAC3D;;WAEG;QACH,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,OAAO,CAAC,OAAO,IAAI,SAAS,CAAC;QAE/E,MAAM,SAAS,GAAG,IAAI,iCAAgB,CAAC,4BAA4B,OAAO,EAAE,CAAC;aAC1E,gBAAgB,CAAC,IAAI,CAAC;YACvB,uDAAuD;aACtD,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;AArBD,kDAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-backend/testing-shared",
3
- "version": "0.29.51",
3
+ "version": "0.29.54",
4
4
  "description": "Cube.js Testing Helpers",
5
5
  "author": "Cube Dev, Inc.",
6
6
  "license": "Apache-2.0",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "@cubejs-backend/dotenv": "^9.0.2",
24
24
  "@cubejs-backend/query-orchestrator": "^0.29.51",
25
- "@cubejs-backend/schema-compiler": "^0.29.51",
25
+ "@cubejs-backend/schema-compiler": "^0.29.54",
26
26
  "@cubejs-backend/shared": "^0.29.51",
27
27
  "dedent": "^0.7.0",
28
28
  "testcontainers": "^7.5.0"
@@ -52,5 +52,5 @@
52
52
  "eslintConfig": {
53
53
  "extends": "../cubejs-linter"
54
54
  },
55
- "gitHead": "44469b8ce956df50c2288194b550407bdb70c22d"
55
+ "gitHead": "c5383fcfaaa088e6ca09cee3384da163d3ad6af5"
56
56
  }