@cubejs-backend/testing-shared 0.31.13 → 0.31.14

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.31.14](https://github.com/cube-js/cube.js/compare/v0.31.13...v0.31.14) (2022-11-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **@cubejs-backend/mssql-driver:** Make MSSQL `readOnly` by default ([#5584](https://github.com/cube-js/cube.js/issues/5584)) ([ddf0369](https://github.com/cube-js/cube.js/commit/ddf036992aebc61fdd99d2a67753c63528bba9db))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.31.13](https://github.com/cube-js/cube.js/compare/v0.31.12...v0.31.13) (2022-11-08)
7
18
 
8
19
 
@@ -5,4 +5,5 @@ export * from './questdb';
5
5
  export * from './materialize';
6
6
  export * from './crate';
7
7
  export * from './prestodb';
8
+ export * from './mssql';
8
9
  //# 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;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,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;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -17,4 +17,5 @@ __exportStar(require("./questdb"), exports);
17
17
  __exportStar(require("./materialize"), exports);
18
18
  __exportStar(require("./crate"), exports);
19
19
  __exportStar(require("./prestodb"), exports);
20
+ __exportStar(require("./mssql"), exports);
20
21
  //# 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;AAC9B,0CAAwB;AACxB,6CAA2B"}
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;AACxB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1,9 @@
1
+ import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract';
2
+ declare type MssqlStartOptions = DBRunnerContainerOptions & {
3
+ version?: string;
4
+ };
5
+ export declare class MssqlDbRunner extends DbRunnerAbstract {
6
+ static startContainer(options: MssqlStartOptions): Promise<import("testcontainers").StartedTestContainer>;
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=mssql.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mssql.d.ts","sourceRoot":"","sources":["../../../src/db/mssql.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAElF,aAAK,iBAAiB,GAAG,wBAAwB,GAAG;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,qBAAa,aAAc,SAAQ,gBAAgB;WACnC,cAAc,CAAC,OAAO,EAAE,iBAAiB;CAmBxD"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MssqlDbRunner = void 0;
4
+ const testcontainers_1 = require("testcontainers");
5
+ const db_runner_abstract_1 = require("./db-runner.abstract");
6
+ class MssqlDbRunner extends db_runner_abstract_1.DbRunnerAbstract {
7
+ static startContainer(options) {
8
+ const version = process.env.TEST_MSSQL_VERSION || options.version || '2022-latest';
9
+ const container = new testcontainers_1.GenericContainer(`mcr.microsoft.com/mssql/server:${version}`)
10
+ .withEnv('ACCEPT_EULA', 'Y')
11
+ .withEnv('MSSQL_SA_PASSWORD', process.env.TEST_DB_PASSWORD || 'Test1test')
12
+ .withExposedPorts(1433)
13
+ .withWaitStrategy(testcontainers_1.Wait.forLogMessage("Service Broker manager has started"))
14
+ .withStartupTimeout(30 * 1000);
15
+ if (options.volumes) {
16
+ // eslint-disable-next-line no-restricted-syntax
17
+ for (const { source, target, bindMode } of options.volumes) {
18
+ container.withBindMount(source, target, bindMode);
19
+ }
20
+ }
21
+ return container.start();
22
+ }
23
+ }
24
+ exports.MssqlDbRunner = MssqlDbRunner;
25
+ //# sourceMappingURL=mssql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mssql.js","sourceRoot":"","sources":["../../../src/db/mssql.ts"],"names":[],"mappings":";;;AAAA,mDAAwD;AAExD,6DAAkF;AAMlF,MAAa,aAAc,SAAQ,qCAAgB;IAC1C,MAAM,CAAC,cAAc,CAAC,OAA0B;QACrD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,OAAO,CAAC,OAAO,IAAI,aAAa,CAAC;QAEnF,MAAM,SAAS,GAAG,IAAI,iCAAgB,CAAC,kCAAkC,OAAO,EAAE,CAAC;aAChF,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;aAC3B,OAAO,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,WAAW,CAAC;aACzE,gBAAgB,CAAC,IAAI,CAAC;aACtB,gBAAgB,CAAC,qBAAI,CAAC,aAAa,CAAC,oCAAoC,CAAC,CAAC;aAC1E,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;AApBD,sCAoBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-backend/testing-shared",
3
- "version": "0.31.13",
3
+ "version": "0.31.14",
4
4
  "description": "Cube.js Testing Helpers",
5
5
  "author": "Cube Dev, Inc.",
6
6
  "license": "Apache-2.0",
@@ -53,5 +53,5 @@
53
53
  "eslintConfig": {
54
54
  "extends": "../cubejs-linter"
55
55
  },
56
- "gitHead": "a304fb5d37667569e2ee70c633587d096945a7b0"
56
+ "gitHead": "17a6ebd5c630f8cd74b1436fa8cef7d2e633cbaa"
57
57
  }