Update README
This commit is contained in:
parent
65ab796238
commit
83afa43b23
12
README.md
12
README.md
@ -238,17 +238,18 @@ We re-export many symbols from `persistent` for convenience:
|
|||||||
There are many differences between SQL syntax and functions supported by different RDBMSs. Since version 2.2.8, `esqueleto` includes modules containing functions that are specific to a given RDBMS.
|
There are many differences between SQL syntax and functions supported by different RDBMSs. Since version 2.2.8, `esqueleto` includes modules containing functions that are specific to a given RDBMS.
|
||||||
|
|
||||||
- PostgreSQL: `Database.Esqueleto.PostgreSQL`
|
- PostgreSQL: `Database.Esqueleto.PostgreSQL`
|
||||||
|
- MySQL: `Database.Esqueleto.MySQL`
|
||||||
|
- SQLite: `Database.Esqueleto.SQLite`
|
||||||
|
|
||||||
In order to use these functions, you need to explicitly import their corresponding modules.
|
In order to use these functions, you need to explicitly import their corresponding modules.
|
||||||
|
|
||||||
|
|
||||||
### Tests and Postgres
|
### Tests and Postgres
|
||||||
|
|
||||||
To ```stack test``` with Postgresql you'll need to set the Postgres flag for [esqueleto.cabal](esqueleto.cabal)
|
To run the tests, do `stack test`. This tests all the backends, so you'll need
|
||||||
Do this from the command line with: ```stack test --flag esqueleto:postgresql```
|
to have MySQL and Postgresql installed.
|
||||||
|
|
||||||
If you don't have Postgres install it.
|
Using apt-get, you should be able to do:
|
||||||
Using apt-get it's just:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt-get install postgresql postgresql-contrib
|
sudo apt-get install postgresql postgresql-contrib
|
||||||
@ -293,6 +294,3 @@ And on osx
|
|||||||
$ psql postgres
|
$ psql postgres
|
||||||
postgres=# \password esqutest
|
postgres=# \password esqutest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Now ```stack build --fast --test esqueleto:test:postgresql``` should invoke and pass all the Postgres tests.
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user