| version 1.1, 2008/09/26 18:50:40 |
version 1.2, 2008/09/26 18:55:11 |
| Line 10 int PQtypesRegister(PGconn *conn); |
|
| Line 10 int PQtypesRegister(PGconn *conn); |
|
| \fP |
\fP |
| .SH DESCRIPTION |
.SH DESCRIPTION |
| .LP |
.LP |
| libpqtypes makes use of libpq's Event System. Before using |
libpqtypes makes use of the libpq Event System. Before using |
| libpqtypes, you must register libpqtypes as a libpq EventProc. |
libpqtypes, you must register libpqtypes as a libpq EventProc. |
| It takes a PGconn that libpqtypes is registered with. |
The function takes a PGconn that libpqtypes will be registered |
| |
with; each PGconn requires its own registration. |
| .SH RETURN VALUE |
.SH RETURN VALUE |
| .LP |
.LP |
| The function returns zero if it fails and non-zero if it succeeds. |
The function returns zero if it fails and non-zero if it succeeds. |
| Line 23 The examples shows how to register libpq |
|
| Line 24 The examples shows how to register libpq |
|
| .RS |
.RS |
| .nf |
.nf |
| .LP |
.LP |
| \fB/* call prior to any other libpqtypes functions. */ |
\fB/* call prior to any other libpqtypes functions that operate on conn. */ |
| PQtypesRegister(conn); |
PQtypesRegister(conn); |
| \fP |
\fP |
| .fi |
.fi |