Allow configuration options for Postgres (#2873)

* Allow configuration options for Postgres

* Fix the use of incorrect options object.

* Refactor and test the postgres config parser.

* Remove unnecessary try/catch

* Remove unnecessary try/catch

* Add blank line at the end of the test file

* Rename file for consistency purposes
This commit is contained in:
Kulshekhar Kabra
2016-10-16 02:59:54 +05:30
committed by Florent Vilmart
parent 7af320932a
commit de36d9640b
5 changed files with 149 additions and 3 deletions

View File

@@ -260,7 +260,8 @@ class ParseServer {
case 'postgres:':
return new PostgresStorageAdapter({
uri: databaseURI,
collectionPrefix
collectionPrefix,
databaseOptions
});
default:
return new MongoStorageAdapter({