@cubejs-backend/mssql-driver 0.29.35 → 0.29.49

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.49](https://github.com/cube-js/cube.js/compare/v0.29.48...v0.29.49) (2022-04-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **mssql:** Add uniqueidentifier type support -- Custom type 'uniqueidentifier' is not supported ([#4386](https://github.com/cube-js/cube.js/issues/4386)) Thanks [@jdeksup](https://github.com/jdeksup)! ([fb77332](https://github.com/cube-js/cube.js/commit/fb773325a7d2e8fa3c923a8c332e275e178b49c6))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.29.48](https://github.com/cube-js/cube.js/compare/v0.29.47...v0.29.48) (2022-04-14)
18
+
19
+ **Note:** Version bump only for package @cubejs-backend/mssql-driver
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.29.37](https://github.com/cube-js/cube.js/compare/v0.29.36...v0.29.37) (2022-03-29)
26
+
27
+ **Note:** Version bump only for package @cubejs-backend/mssql-driver
28
+
29
+
30
+
31
+
32
+
6
33
  ## [0.29.35](https://github.com/cube-js/cube.js/compare/v0.29.34...v0.29.35) (2022-03-24)
7
34
 
8
35
  **Note:** Version bump only for package @cubejs-backend/mssql-driver
@@ -5,8 +5,13 @@ const GenericTypeToMSSql = {
5
5
  string: 'nvarchar(max)',
6
6
  text: 'nvarchar(max)',
7
7
  timestamp: 'datetime2',
8
+ uuid: 'uniqueidentifier'
8
9
  };
9
10
 
11
+ const MSSqlToGenericType = {
12
+ uniqueidentifier: 'uuid'
13
+ }
14
+
10
15
  class MSSqlDriver extends BaseDriver {
11
16
  constructor(config) {
12
17
  super();
@@ -131,6 +136,10 @@ class MSSqlDriver extends BaseDriver {
131
136
  return GenericTypeToMSSql[columnType] || super.fromGenericType(columnType);
132
137
  }
133
138
 
139
+ toGenericType(columnType){
140
+ return MSSqlToGenericType[columnType] || super.toGenericType(columnType);
141
+ }
142
+
134
143
  readOnly() {
135
144
  return !!this.config.readOnly;
136
145
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@cubejs-backend/mssql-driver",
3
3
  "description": "Cube.js MS SQL database driver",
4
4
  "author": "Cube Dev, Inc.",
5
- "version": "0.29.35",
5
+ "version": "0.29.49",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/cube-js/cube.js.git",
@@ -13,12 +13,12 @@
13
13
  },
14
14
  "main": "driver/MSSqlDriver.js",
15
15
  "dependencies": {
16
- "@cubejs-backend/query-orchestrator": "^0.29.35",
16
+ "@cubejs-backend/query-orchestrator": "^0.29.48",
17
17
  "mssql": "^6.1.0"
18
18
  },
19
19
  "license": "Apache-2.0",
20
20
  "publishConfig": {
21
21
  "access": "public"
22
22
  },
23
- "gitHead": "15911bbb428a3a4dcc509edb84587f718b2ccdfd"
23
+ "gitHead": "012050499e26c47b28a6e7f8bd718f9cd668feac"
24
24
  }