@hackage pqi-ffi1.0.1.0

FFI adapter for pqi, backed by postgresql-libpq

pqi-ffi

Hackage Continuous Haddock

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

Pqi.Ffi.adapter produces Pqi.Connection values whose fields close over a C-backed PGconn, each 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 identical output, and thereby defines what "correct" means for the family.