purescript-selda is a SQL library which allows a user to write type-safe queries. Generated SQL is guaranteed to be correct by the type system. It supports arbitrarily nested queries with capabilities of filtering, joins and aggregation. We used standard monadic abstraction which supports writing queries in a linear, natural style.
Install postgresql-client's dependencies
npm install pg decimal.js
- Introductory End-to-End example that shows how to setup, write queries, use aggregation, deal with type errors and execute queries and inserts.
- For information about features, examples, usage, etc. refer to the test suite in
- My thesis
Supported by Lambda Terms
Inspired by selda