PQtypesRegister3
Registers libpqtypes with the libpq event system.
Usage
#include <libpqtypes.h>
int PQtypesRegister(PGconn *conn);
Deprecated
THIS FUNCTION IS DEPRECATED. New applications should use PQinitTypes. This function is now a wrapper to PQinitTypes.
Overview
libpqtypes makes use of the libpq Event System. Before using libpqtypes, you must register libpqtypes as a libpq EventProc. The function takes a PGconn that libpqtypes will be registered with; each PGconn requires its own registration.
Return value
The function returns zero if it fails and non-zero if it succeeds.
Examples
Registering libpqtypes
The examples shows how to register libpqtypes with the libpq event system.
/* call prior to any other libpqtypes functions that operate on conn. */ PQtypesRegister(conn);
Releases
Unchanged in 5 releases since Debian 8 (Jessie).