|
Functions | |
| struct evsql * | evsql_new_pq (struct event_base *ev_base, const char *pq_conninfo, evsql_error_cb error_fn, void *cb_arg) |
| Create a new PostgreSQL/libpq (evpq) -based evsql using the given conninfo. | |
| struct evsql* evsql_new_pq | ( | struct event_base * | ev_base, | |
| const char * | pq_conninfo, | |||
| evsql_error_cb | error_fn, | |||
| void * | cb_arg | |||
| ) | [read] |
Create a new PostgreSQL/libpq (evpq) -based evsql using the given conninfo.
The given pq_conninfo pointer must stay valid for the duration of the evsql's lifetime.
See the libpq reference manual for the syntax of pq_conninfo
| ev_base | the libevent base to use | |
| pq_conninfo | the libpq connection information | |
| error_fn | XXX: not used, may be NULL | |
| cb_arg,: | XXX: not used, argument for error_fn |
1.5.6