Package

purescript-node-sqlite3

Repository
justinwoo/purescript-node-sqlite3
License
MIT
Uploaded by
justinwoo
Published on
2017-09-29T21:07:05Z

Really basic wrapper for 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!

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
Modules
SQLite3
Dependencies