Skip to content

Commit a5926d3

Browse files
committed
use pg-promise native pg-connection-string to parse uri instead of ParseConfigParser.js. The allows for a more felxible uri for ssl and other params
1 parent c2fa25d commit a5926d3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Adapters/Storage/Postgres/PostgresClient.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
const parser = require('./PostgresConfigParser');
2-
31
export function createClient(uri, databaseOptions) {
4-
let dbOptions = {};
2+
const dbOptions = {};
53
databaseOptions = databaseOptions || {};
64

75
if (uri) {
8-
dbOptions = parser.getDatabaseOptionsFromURI(uri);
6+
dbOptions.connectionString = uri;
97
}
108

119
for (const key in databaseOptions) {

0 commit comments

Comments
 (0)