A dynamic and static binding to libpq.


Keywords
library, binding, database
License
BSL-1.0
Install
dub fetch derelict-pq --version 4.0.0

Documentation

DerelictPQ

A dynamic binding to the libpq library version 9.6 for the D Programming Language.

Please see the sections on Compiling and Linking and The Derelict Loader in the Derelict documentation for information on how to build DerelictPQ and load libpq at run time. In the meantime, here's some sample code.

import derelict.pq.pq;

void main() {
    // Load the Postgres library.
    DerelictPQ.load();

    // Now libpq functions can be called.
    ...
}