|< < 26 > >|

Postgres C API

Top-down view.
#include <stdio.h> #include <stdlib.h> #include <libpq-fe.h> static void oops(PGconn *cnxn, const char* problem) { fprintf(stderr, "%s: %s", problem, PQerrorMessage(cnxn)); PQfinish(cnxn); exit(1); } int main(int argc, char **argv) { PGresult *res; PGconn *cnxn; ... return 0; }

|< < 26 > >|