Update README with Postgres info (#125)

* Update the Postgres connection information

* Update instructions to run Postgres tests
This commit is contained in:
Attila Domokos 2019-06-13 11:02:19 -05:00 committed by Matt Parsons
parent aa07462d17
commit 91d66ef329

View File

@ -264,11 +264,11 @@ brew install libpq
Detailed instructions on the Postgres wiki [here](https://wiki.postgresql.org/wiki/Detailed_installation_guides)
The connection details are located near the bottom of the [test/Test.hs](test/Test.hs) file:
The connection details are located near the bottom of the [test/PostgreSQL/Test.hs](test/PostgreSQL/Test.hs) file:
```
#if defined(WITH_POSTGRESQL)
withPostgresqlConn "host=localhost port=5432 user=esqutest password=esqutest dbname=esqutest"
withConn =
R.runResourceT . withPostgresqlConn "host=localhost port=5432 user=esqutest password=esqutest dbname=esqutest"
```
You can change these if you like but to just get them working set up as follows on linux:
@ -295,4 +295,4 @@ postgres=# \password esqutest
```
Now ```stack test --flag esqueleto:postgresql``` should invoke and pass all the Postgres tests.
Now ```stack build --fast --test esqueleto:test:postgresql``` should invoke and pass all the Postgres tests.