DerelictPQ

April 25, 2017 ยท View on GitHub

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.
    ...
}