pqi-ffi: FFI adapter for pqi, backed by postgresql-libpq

[ database, library, mit, postgresql ] [ Propose Tags ] [ Report a vulnerability ]

A pqi adapter implemented as a thin pass-through over the postgresql-libpq package, which binds the C libpq library. Use this adapter when you want the fidelity of the reference C implementation; it is also the oracle that the pqi-native adapter is tested against.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1.0, 0.0.1.1
Change log CHANGELOG.md
Dependencies base (>=4.11 && <5), bytestring (>=0.10 && <0.13), postgresql-libpq (>=0.11 && <0.12), pqi (<0.1) [details]
License MIT
Copyright (c) 2026, Nikita Volkov
Author Nikita Volkov <nikita.y.volkov@mail.ru>
Maintainer Nikita Volkov <nikita.y.volkov@mail.ru>
Uploaded by NikitaVolkov at 2026-06-18T08:38:09Z
Category Database, PostgreSQL
Home page https://github.com/nikita-volkov/pqi-ffi
Bug tracker https://github.com/nikita-volkov/pqi-ffi/issues
Source repo head: git clone https://github.com/nikita-volkov/pqi-ffi
Distributions
Downloads 0 total (0 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for pqi-ffi-0.0.1.1

[back to package description]

pqi-ffi

Hackage Continuous Haddock

The FFI adapter for pqi, backed by postgresql-libpq (a binding to the C libpq library).

Pqi.Ffi.Connection wraps a C-backed PGconn and provides an IsConnection instance whose every method is a near-mechanical delegation to the matching Database.PostgreSQL.LibPQ function. The only work is converting between this family's portable types (OIDs as Word32, indices as Int32, the shared enums) and postgresql-libpq's C-specific newtypes.

This adapter is the fidelity reference for the pqi family: it is the oracle against which all other adapters are tested. The pqi-conformance suite runs every operation on both the candidate adapter and this one, asserts byte-identical output, and thereby defines what "correct" means for the family.