Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/epost/purescript-any-db

PureScript Bindings for the node-any-db library.
https://github.com/epost/purescript-any-db

mysql postgres purescript sql sqlite

Last synced: 23 days ago
JSON representation

PureScript Bindings for the node-any-db library.

Awesome Lists containing this project

README

        

#+title: PureScript any-db bindings

* Caveat

This is alpha quality software.

* About

Bindings for [[https://github.com/grncdr/node-any-db][node-any-db]] forked from [[https://github.com/epost/purescript-node-postgres][purescript-node-postgres]], with a slightly more fine-grained API.

* Installation

I'll assume you have [[http://www.purescript.org/][PureScript]] and [[http://www.postgresql.org/][PostgreSQL]] installed. You'll also need [[https://github.com/bodil/pulp][purescript-pulp]] and the postgres version of [[https://github.com/grncdr/node-any-db][node-any-db]]:

#+begin_src bash
npm install any-db-postgres any-db-transaction
npm install pulp
#+end_src

Clone the project:

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

Create a Postgres database and run the tests:

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

* Building and running

Let's run some tests:

#+begin_src bash
pulp test
#+end_src

* Usage

See [[file:./MODULE.md][Module documentation]].