66 static void *sqlite_open_conn(
const DBConf *db_conf)
77 error(0,
"SQLite: can not open database file `%s'!",
79 error(0,
"SQLite: %s", errmsg);
87 info(0,
"SQLite: library version %s.", sqlite_version);
95 static void sqlite_close_conn(
void *conn)
100 sqlite_close((sqlite*) conn);
103 static int sqlite_check_conn(
void *conn)
113 static void sqlite_conf_destroy(
DBConf *db_conf)
123 static struct db_ops sqlite_ops = {
124 .
open = sqlite_open_conn,
125 .close = sqlite_close_conn,
126 .check = sqlite_check_conn,
127 .conf_destroy = sqlite_conf_destroy
void error(int err, const char *fmt,...)
void info(int err, const char *fmt,...)
#define octstr_get_cstr(ostr)
void octstr_destroy(Octstr *ostr)
void *(* open)(const DBConf *conf)