esqueleto
Version 3.3.1 revision 0 uploaded by parsonsmatt.
Package meta
- Synopsis
- Type-safe EDSL for SQL queries on persistent backends.
- Description
esqueleto
is a bare bones, type-safe EDSL for SQL queries that works with unmodifiedpersistent
SQL backends. Its language closely resembles SQL, so you don't have to learn new concepts, just new syntax, and it's fairly easy to predict the generated SQL and optimize it for your backend. Most kinds of errors committed when writing SQL are caught as compile-time errors---although it is possible to write type-checkedesqueleto
queries that fail at runtime.persistent
is a library for type-safe data serialization. It has many kinds of backends, such as SQL backends (persistent-mysql
,persistent-postgresql
,persistent-sqlite
) and NoSQL backends (persistent-mongoDB
). Whilepersistent
is a nice library for storing and retrieving records, including with filters, it does not try to support some of the features that are specific to SQL backends. In particular,esqueleto
is the recommended library for type-safeJOIN
s onpersistent
SQL backends. (The alternative is using raw SQL, but that's error prone and does not offer any composability.)Currently,
SELECT
s,UPDATE
s,INSERT
s andDELETE
s are supported. Not all SQL features are available, but most of them can be easily added (especially functions), so please open an issue or send a pull request if you need anything that is not covered byesqueleto
on https://github.com/bitemyapp/esqueleto.The name of this library means "skeleton" in Portuguese and contains all three SQL letters in the correct order =). It was inspired by Scala's Squeryl but created from scratch.
- Author
- Felipe Lessa
- Bug reports
- n/a
- Category
- Database
- Copyright
- (c) 2012-2016 Felipe Almeida Lessa
- Homepage
- https://github.com/bitemyapp/esqueleto
- Maintainer
- cma@bitemyapp.com
- Package URL
- n/a
- Stability
- n/a