Package3.6.0.3Database
esqueleto
Type-safe EDSL for SQL queries on persistent backends.
- Version3.6.0.3
- CategoryDatabase
- LicenceBSD-3-Clause
- AuthorFelipe Lessa
- Maintainercma@bitemyapp.com
- Homepagegithub.com/bitemyapp/esqueleto
- Pinned byhackage esqueleto 3.6.0.3
- Sourcehackage.haskell.org/package/esqueleto-3.6.0.3
Modules
17 modules- Database.Esqueleto371The esqueleto EDSL (embedded domain specific language).
- Database.Esqueleto.Experimental398This module contains a new way (introduced in 3.3.3.0) of using FROM in
- Database.Esqueleto.Experimental.From7
- Database.Esqueleto.Experimental.From.CommonTableExpression3
- Database.Esqueleto.Experimental.From.Join23
- Database.Esqueleto.Experimental.From.SqlSetOperation7
- Database.Esqueleto.Experimental.ToAlias1
- Database.Esqueleto.Experimental.ToAliasReference1
- Database.Esqueleto.Experimental.ToMaybe3
- Database.Esqueleto.Legacy371WARNING This module is introduced in version 3.5.0.0 to provide a smooth migration
- Database.Esqueleto.MySQL2This module contain MySQL-specific functions.
- Database.Esqueleto.PostgreSQL38This module contain PostgreSQL-specific functions.
- Database.Esqueleto.PostgreSQL.JSON17This module contains PostgreSQL-specific JSON functions. A couple of things to keep in mind about this module: The Type column in the Pos…
- Database.Esqueleto.Record6
- Database.Esqueleto.SQLite1This module contain SQLite-specific functions.
Internal modules · 2
- Database.Esqueleto.Internal.ExprParser9This is an internal module. This module may have breaking changes without
- Database.Esqueleto.Internal.Internal296This is an internal module, anything exported by this module
Description
esqueleto is a bare bones, type-safe EDSL for SQL queries that works with unmodified persistent 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-checked esqueleto 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). While persistent 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-safe JOINs on persistent SQL backends. (The alternative is using raw SQL, but that's error prone and does not offer any composability.)
Currently, SELECTs, UPDATEs, INSERTs and DELETEs 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 by esqueleto 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.
Depends on
17 packages- aeson-2.2.5.1in this set
- attoparsec-0.14.4in this set
- base-4.23.0.0with GHC
- blaze-html-0.9.2.0in this set
- bytestring-0.12.2.0with GHC
- conduit-1.3.6.1in this set
- containers-0.8with GHC
- monad-logger-0.3.42in this set
- persistent-2.18.1.0in this set
- resourcet-1.3.0in this set
- tagged-0.8.11in this set
- template-haskell-2.25.0.0with GHC
- text-2.1.4with GHC
- time-1.16.0.1with GHC
- transformers-0.6.3.0with GHC
- unliftio-0.2.25.1in this set
- unordered-containers-0.2.21in this set
Used by in this set · 0
Nothing in this set depends on it.