Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/epost/purescript-node-postgres

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

node-js postgres purescript sql

Last synced: 2 days ago
JSON representation

PureScript bindings for node-postgres.

Awesome Lists containing this project

README

        

#+title: PureScript bindings for node-postgres

#+BEGIN_HTML

purescript-node-postgres on Pursuit




#+END_HTML

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

* Installation

Clone the project and install its dependencies:

#+begin_src bash
git clone https://github.com/epost/purescript-node-postgres
cd purescript-node-postgres
npm install
#+end_src

* Building

Build:

#+begin_src bash
npm run build
#+end_src

* Testing

Assuming you have [[http://www.postgresql.org/][PostgreSQL]] installed, create a database with some test data:

#+begin_src bash
psql --command="create database test"
psql --command="create user testuser"
psql --username=testuser test -f schema.sql
#+end_src

Then run the tests:

#+begin_src bash
npm run test
#+end_src

* Documentation

See [[https://pursuit.purescript.org/packages/purescript-node-postgres/5.0.0][Module documentation]].