Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rowtype-yoga/purescript-yoga-postgres

PureScript bindings for node-postgres.
https://github.com/rowtype-yoga/purescript-yoga-postgres

Last synced: 4 months ago
JSON representation

PureScript bindings for node-postgres.

Awesome Lists containing this project

README

        

# 💾 purescript-yoga-postgres

**Note**: This is a fork of [purescript-node-postgres](https://github.com/epost/purescript-node-postgres) ([MIT Licence](./LICENSE/purescript-node-postgress.LICENSE)).

PureScript bindings for the [pg library](https://www.npmjs.org/package/pg) ([node-postgres](https://github.com/brianc/node-postgres) on GitHub).

## Installation

Clone the project and install its dependencies:

```bash
npm install pg --save
spago install yoga-postgres
```

## Building

Build:

```bash
spago build
# or
npm run build
```

## Testing

```bash
# start a postgres database
docker-compose up
```
Then run the tests:
```bash
spago -x test.dhall test
# or
npm run test
```