@malloydata/db-postgres 0.0.23 → 0.0.24-dev230215185525

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.
@@ -248,17 +248,14 @@ class PostgresConnection {
248
248
  structDef.fields.push(s);
249
249
  name = "value";
250
250
  }
251
- if (malloyType !== undefined) {
252
- s.fields.push({
253
- "type": malloyType,
254
- name
255
- });
251
+ if (malloyType) {
252
+ s.fields.push({ "type": malloyType, name });
256
253
  }
257
254
  else {
258
255
  s.fields.push({
259
- name,
260
- "type": "string",
261
- "e": [`'Postgres type "${postgresDataType}" not supported by Malloy'`]
256
+ "type": "unsupported",
257
+ "rawType": postgresDataType.toLowerCase(),
258
+ name
262
259
  });
263
260
  }
264
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-postgres",
3
- "version": "0.0.23",
3
+ "version": "0.0.24-dev230215185525",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "prepublishOnly": "npm run build"
20
20
  },
21
21
  "dependencies": {
22
- "@malloydata/malloy": "^0.0.23",
22
+ "@malloydata/malloy": "^0.0.24-dev230215185525",
23
23
  "@types/pg": "^8.6.1",
24
24
  "pg": "^8.7.1",
25
25
  "pg-query-stream": "4.2.3"