@malloydata/db-postgres 0.0.336 → 0.0.337

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.
Files changed (2) hide show
  1. package/dist/index.js +30 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -26,4 +26,34 @@ exports.PooledPostgresConnection = exports.PostgresConnection = void 0;
26
26
  var postgres_connection_1 = require("./postgres_connection");
27
27
  Object.defineProperty(exports, "PostgresConnection", { enumerable: true, get: function () { return postgres_connection_1.PostgresConnection; } });
28
28
  Object.defineProperty(exports, "PooledPostgresConnection", { enumerable: true, get: function () { return postgres_connection_1.PooledPostgresConnection; } });
29
+ const malloy_1 = require("@malloydata/malloy");
30
+ const postgres_connection_2 = require("./postgres_connection");
31
+ (0, malloy_1.registerConnectionType)('postgres', {
32
+ factory: (config) => {
33
+ return new postgres_connection_2.PostgresConnection(config);
34
+ },
35
+ properties: [
36
+ { name: 'host', displayName: 'Host', type: 'string', optional: true },
37
+ { name: 'port', displayName: 'Port', type: 'number', optional: true },
38
+ { name: 'username', displayName: 'Username', type: 'string', optional: true },
39
+ {
40
+ name: 'password',
41
+ displayName: 'Password',
42
+ type: 'password',
43
+ optional: true,
44
+ },
45
+ {
46
+ name: 'databaseName',
47
+ displayName: 'Database Name',
48
+ type: 'string',
49
+ optional: true,
50
+ },
51
+ {
52
+ name: 'connectionString',
53
+ displayName: 'Connection String',
54
+ type: 'string',
55
+ optional: true,
56
+ },
57
+ ],
58
+ });
29
59
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-postgres",
3
- "version": "0.0.336",
3
+ "version": "0.0.337",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "prepublishOnly": "npm run build"
23
23
  },
24
24
  "dependencies": {
25
- "@malloydata/malloy": "0.0.336",
25
+ "@malloydata/malloy": "0.0.337",
26
26
  "@types/pg": "^8.6.1",
27
27
  "pg": "^8.7.1",
28
28
  "pg-query-stream": "4.2.3"