Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justinwoo/purescript-bingsu
Cool query building library for Node-SQLite3
https://github.com/justinwoo/purescript-bingsu
purescript sqlite
Last synced: about 1 month 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-22T18:56:51.000Z (over 5 years ago)
- Last Synced: 2024-09-30T02:04:58.785Z (about 2 months ago)
- Topics: purescript, sqlite
- Language: PureScript
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- 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).
![](https://upload.wikimedia.org/wikipedia/commons/7/75/Patbingsu.jpg)
## 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 ")"
```