Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justinwoo/purescript-node-sqlite3
Basic Purescript wrapper for node-sqlite3
https://github.com/justinwoo/purescript-node-sqlite3
database purescript sqlite3
Last synced: 7 days ago
JSON representation
Basic Purescript wrapper for node-sqlite3
- Host: GitHub
- URL: https://github.com/justinwoo/purescript-node-sqlite3
- Owner: justinwoo
- License: mit
- Created: 2016-07-31T16:30:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-14T22:05:50.000Z (over 2 years ago)
- Last Synced: 2024-11-28T15:06:28.102Z (25 days ago)
- Topics: database, purescript, sqlite3
- Language: PureScript
- Size: 44.9 KB
- Stars: 14
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-node-sqlite3 [![Build Status](https://travis-ci.org/justinwoo/purescript-node-sqlite3.svg?branch=master)](https://travis-ci.org/justinwoo/purescript-node-sqlite3)
Really basic wrapper for [node-sqlite3](https://github.com/mapbox/node-sqlite3)
Of course, this is nowhere near done, so please suggest improvements and additions!
## Installation
`bower i -S purescript-node-sqlite3 && npm i -S sqlite3`
## Usage
[See the tests!](test/Main.purs)
```haskell
launchAff do
conn <- newDB "./data"exists <- (\rows -> 1 == length rows) <$> queryDB conn "SELECT 1 from foods where name = ?" ["gulerodskage-med-flødest"]
log $ "do we have this?: " <> (show exists)closeDB conn
```## Other libraries
In addition to this base library, you might also consider one of these libraries to give you some additional modeling and type safety capabilities: