2016-12-24 12:34:27 +00:00
|
|
|
# purescript-postgresql-client
|
|
|
|
|
|
|
|
purescript-postgresql-client is a PostgreSQL client library for PureScript.
|
2016-12-25 22:58:29 +00:00
|
|
|
|
2018-04-22 14:47:07 +00:00
|
|
|
## Install
|
|
|
|
|
2018-04-21 11:12:20 +00:00
|
|
|
To use this library, you need to add `pg` and `decimal.js` as an npm dependency. You can also
|
2018-04-22 14:52:32 +00:00
|
|
|
find first of them on [https://github.com/brianc/node-postgres][pg].
|
2017-06-08 12:05:06 +00:00
|
|
|
|
2018-04-22 14:52:32 +00:00
|
|
|
## Generating SQL Queries
|
2018-04-22 14:47:07 +00:00
|
|
|
|
2017-06-03 12:06:09 +00:00
|
|
|
The purspgpp preprocessor has been replaced by [sqltopurs], which is a code
|
|
|
|
generator instead of a preprocessor, and easier to use.
|
|
|
|
|
|
|
|
[sqltopurs]: https://github.com/rightfold/sqltopurs
|
2018-04-22 14:47:07 +00:00
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
2018-04-22 14:52:32 +00:00
|
|
|
To run tests you have to prepare "purspg" database and use standard command: `pulp test`.
|