logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PQinitTypes - Initializes libpqtypes with the libpq event system.

Author

       A contribution of eSilo, LLC. for the PostgreSQL Database Management System.  Written by Andrew Chernow.

Description

       libpqtypes  makes use of the libpq Event System.  Before using libpqtypes, you must initialize libpqtypes
       as a libpq EventProc.  The PQinitTypes function takes a PGconn that libpqtypes will be initialized  with;
       each PGconn requires its own initialization.

       PQclearTypes  removes  all  registered  types  from  the  given  PGconn.   A good use for this is after a
       PQresetXXX call when it might be desired to re-register all types that may have gone stale.

Examples

Initializinglibpqtypes
       The examples shows how to initialize libpqtypes with the libpq event system.

              /*callpriortoanyotherlibpqtypesfunctionsthatoperateonconn.*/PQinitTypes(conn);

Name

       PQinitTypes - Initializes libpqtypes with the libpq event system.

Reporting Bugs

       Report bugs to <libpqtypes@esilo.com>.

Return Value

       PQinitTypes and PQclearTypes return zero if it fails and non-zero if it succeeds.

See Also

       None

libpqtypes                                            2011                                        PQinitTypes(3)

Synopsis

#include<libpqtypes.h>intPQinitTypes(PGconn*conn);intPQclearTypes(PGconn*conn);

See Also