Session creation interface
[Session interface]

Collaboration diagram for Session creation interface:
Session creation functions. More...

Functions

struct evsqlevsql_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.

Detailed Description

Session creation functions.

See also:
evsql.h

Function Documentation

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

Parameters:
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
Returns:
the evsql context handle for use with other functions


Generated on Sat Dec 13 20:58:05 2008 for evsql by  doxygen 1.5.6