@malloydata/db-postgres 0.0.113-dev231212022743 → 0.0.113

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.
@@ -10,6 +10,7 @@ interface PostgresConnectionConfiguration {
10
10
  username?: string;
11
11
  password?: string;
12
12
  databaseName?: string;
13
+ connectionString?: string;
13
14
  }
14
15
  type PostgresConnectionConfigurationReader = PostgresConnectionConfiguration | (() => Promise<PostgresConnectionConfiguration>);
15
16
  export declare class PostgresConnection implements Connection, StreamingConnection, PersistSQLResults {
@@ -150,13 +150,14 @@ class PostgresConnection {
150
150
  return inCache;
151
151
  }
152
152
  async getClient() {
153
- const { username: user, password, databaseName: database, port, host, } = await this.readConfig();
153
+ const { username: user, password, databaseName: database, port, host, connectionString, } = await this.readConfig();
154
154
  return new pg_1.Client({
155
155
  user,
156
156
  password,
157
157
  database,
158
158
  port,
159
159
  host,
160
+ connectionString,
160
161
  });
161
162
  }
162
163
  async runPostgresQuery(sqlCommand, _pageSize, _rowIndex, deJSON) {
@@ -342,13 +343,14 @@ class PooledPostgresConnection extends PostgresConnection {
342
343
  }
343
344
  async getPool() {
344
345
  if (!this._pool) {
345
- const { username: user, password, databaseName: database, port, host, } = await this.readConfig();
346
+ const { username: user, password, databaseName: database, port, host, connectionString, } = await this.readConfig();
346
347
  this._pool = new pg_1.Pool({
347
348
  user,
348
349
  password,
349
350
  database,
350
351
  port,
351
352
  host,
353
+ connectionString,
352
354
  });
353
355
  this._pool.on('acquire', client => client.query("SET TIME ZONE 'UTC'"));
354
356
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-postgres",
3
- "version": "0.0.113-dev231212022743",
3
+ "version": "0.0.113",
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.113-dev231212022743",
25
+ "@malloydata/malloy": "^0.0.113",
26
26
  "@types/pg": "^8.6.1",
27
27
  "pg": "^8.7.1",
28
28
  "pg-query-stream": "4.2.3"