mirror of
https://github.com/postgres-haskell/postgres-wire.git
synced 2024-11-21 11:58:27 +03:00
A native Haskell driver for PostgreSQL
fda5e3b70c
pgtype time support |
||
---|---|---|
.images | ||
bench | ||
cbits | ||
src/Database/PostgreSQL | ||
tests | ||
tests_connection | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
postgres-wire.cabal | ||
README.md | ||
Setup.hs | ||
stack-ghc8.2.2.yaml | ||
stack-ghc8.4.4.yaml | ||
stack-ghc8.6.3.yaml | ||
stack.yaml |
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
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.