6
struct pgsql_connection;
9
typedef void pgqsl_query_callback_t(struct pgsql_connection *conn,
10
struct pgsql_request *request,
13
struct pgsql_settings {
15
const char *password_query;
16
const char *user_query;
17
const char *allowed_chars;
18
const char *default_pass_scheme;
21
struct pgsql_connection {
22
struct pgsql_connection *next;
28
struct pgsql_settings set;
32
unsigned int connected:1;
35
struct pgsql_request {
36
pgqsl_query_callback_t *callback;
40
void db_pgsql_query(struct pgsql_connection *conn, const char *query,
41
struct pgsql_request *request);
43
struct pgsql_connection *db_pgsql_init(const char *config_path);
44
void db_pgsql_unref(struct pgsql_connection *conn);