A native Haskell driver for PostgreSQL
Go to file
Anton Gushcha fda5e3b70c
Merge pull request #23 from quetz/time
pgtype time support
2019-01-29 11:11:44 +03:00
.images Updated README.md 2017-02-21 02:41:39 +03:00
bench Fixed benchmark 2017-07-13 15:12:22 +03:00
cbits More useful DataRows 2017-02-25 20:40:36 +03:00
src/Database/PostgreSQL pgtype timetz support (assume UTC) 2019-01-29 10:58:37 +03:00
tests pgtype timetz support (assume UTC) 2019-01-29 10:58:37 +03:00
tests_connection tests fix, removed builds for 7.10 / 8.0, pg 10, travis xenial base image 2019-01-24 06:51:04 +03:00
.gitignore Initial commit 2017-01-02 00:56:56 +03:00
.travis.yml tests fix, removed builds for 7.10 / 8.0, pg 10, travis xenial base image 2019-01-24 06:51:04 +03:00
LICENSE Initial commit 2017-01-02 00:56:56 +03:00
postgres-wire.cabal Refactor Driver directory 2017-07-13 17:04:30 +03:00
README.md Updated README.md 2017-02-21 02:41:39 +03:00
Setup.hs backbone for project 2017-01-02 03:48:20 +03:00
stack-ghc8.2.2.yaml build for 8.2.2 & 8.4.4 with cpp 2019-01-24 01:43:06 +03:00
stack-ghc8.4.4.yaml build for 8.2.2 & 8.4.4 with cpp 2019-01-24 01:43:06 +03:00
stack-ghc8.6.3.yaml build with ghc-8.6.3 2019-01-24 01:02:26 +03:00
stack.yaml build with ghc-8.6.3 2019-01-24 01:02:26 +03:00

License MIT Linux build

Postgres-wire

A native Haskell driver for PostgreSQL.

Postgres-wire is an efficient implementation of the PostgreSQL binary protocol designed specifically for the high performance and low latency.

Performance

Requests

Each test consisted of running queries that select 300 rows of 100 bytes each in a loop with 8 concurrent connections to the database server for 10 seconds. The benchmark results were obtained from Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, 32 GB DDR4, PostgreSQL 9.5.5.

Features

  • No dependencies on C libraries such as libpq-dev.
  • Concise Haskell API.
  • First-class notifications support.
  • Sending multiple queries in a single batch.
  • Built-in prepared statement cache.
  • Fast serialization/deserialization.
  • In progress. Built-in TLS.
  • In progress. Encoders/decoders for built-in PostgreSQL types and advanced types: arrays, ranges, composites.

Documentation and examples

Will be available on Hackage.