Skip to content

Commit d97e80c

Browse files
authored
Add postgresql protocol case to getDatabaseAdapter
- This should allow developers to designate either postgres:// or postgresql:// prefixed URIs for PostgreSQL.
1 parent 611bd9b commit d97e80c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Controllers/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ export function getDatabaseAdapter(databaseURI, collectionPrefix, databaseOption
232232
collectionPrefix,
233233
databaseOptions,
234234
});
235+
case 'postgresql:':
236+
return new PostgresStorageAdapter({
237+
uri: databaseURI,
238+
collectionPrefix,
239+
databaseOptions,
240+
});
235241
default:
236242
return new MongoStorageAdapter({
237243
uri: databaseURI,

0 commit comments

Comments
 (0)