libpqtypes home page
PQtypesObjectHooks(3) libpqtypes Manual PQtypesObjectHooks(3)
NAME
PQtypesObjectHooks - Gets the libpqtypes PGobjectHooks
SYNOPSIS
#include <libpqtypes.h>
PGobjectHooks *PQtypesObjectHooks(void);
DESCRIPTION
libpqtypes makes use of libpq's Object Hook system. Before using
libpqtypes, one must either call PQaddGlobalObjectHooks() or PQaddOb-
jectHooks() and provide the return of this function.
RETURN VALUE
The function always returns a pointer to a PGobjectHooks structure, it
will never return NULL.
EXAMPLES
Adding libpqtypes Object Hooks
The examples shows how to add libpqtypes Object Hooks globally or on a
per-conn basis.
/* Add libpqtypes Object Hooks globally */
PQaddGlobalObjectHooks(PQtypesObjectHooks());
/* Add libpqtypes Object Hooks on a per-conn basis */
PQaddObjectHooks(conn, PQtypesObjectHooks());
AUTHOR
A contribution of eSilo, LLC. for the PostgreSQL Database Management
System. Written by Andrew Chernow and Merlin Moncure.
REPORTING BUGS
Report bugs to <libpqtypes@esilo.com>.
COPYRIGHT
Copyright (c) 2008 eSilo, LLC. All rights reserved.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
SEE ALSO
None
libpqtypes 2008 PQtypesObjectHooks(3)
libpqtypes home page