Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/epost/purescript-any-db
- Owner: epost
- License: mit
- Created: 2015-05-02T17:52:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T12:18:53.000Z (over 6 years ago)
- Last Synced: 2024-10-04T17:48:32.165Z (about 1 month ago)
- Topics: mysql, postgres, purescript, sql, sqlite
- Language: PureScript
- Homepage:
- Size: 44.9 KB
- Stars: 9
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
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_srcClone the project:
#+begin_src bash
git clone https://github.com/epost/purescript-node-postgres
cd purescript-node-postgres
#+end_srcCreate 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]].