Package Info

ghc-postgresql-typed


PostgreSQL interface with compile-time SQL type checking, optional HDBC backend


Development/Libraries/Haskell

Automatically type-check SQL statements at compile time. Uses Template Haskell and the raw PostgreSQL protocol to describe SQL statements at compile time and provide appropriate type marshalling for both parameters and results. Allows not only syntax verification of your SQL but also full type safety between your SQL and Haskell. Supports many built-in PostgreSQL types already, including arrays and ranges, and can be easily extended in user code to support any other types.

Also includes an optional HDBC backend that, since it uses the raw PostgreSQL protocol, may be more efficient than the normal libpq backend in some cases (though provides no more type safety than HDBC-postgresql when used without templates).

Originally based on Chris Forno's templatepg library.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/postgresql-typed

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.5.1-bp150.1.3 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-postgresql-typed
  • ghc-postgresql-typed-devel