https://github.com/justinwoo/purescript-bingsu
Cool query building library for Node-SQLite3
https://github.com/justinwoo/purescript-bingsu
purescript sqlite
Last synced: 3 months ago
JSON representation
Cool query building library for Node-SQLite3
- Host: GitHub
- URL: https://github.com/justinwoo/purescript-bingsu
- Owner: justinwoo
- License: mit
- Created: 2019-06-20T12:02:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-22T18:56:51.000Z (about 6 years ago)
- Last Synced: 2025-04-10T02:14:57.309Z (3 months ago)
- Topics: purescript, sqlite
- Language: PureScript
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PureScript-Bingsu
Cool query building library for [Node-SQLite3](https://github.com/justinwoo/purescript-node-sqlite3).

## Usage
See the tests.
```purs
someAff = void $ B.queryDB db insert { name: "apples", count: 3 }
where
insert
= B.literal "insert into mytable values ("
<<>> B.param (B.Param :: _ "name" String)
<<>> B.literal ","
<<>> B.param (B.Param :: _ "count" Int)
<<>> B.literal ")"
```