Lines Matching defs:db
28 #include <dns/db.h>
51 sqlite3 *db;
62 if (dbi.db) {
63 sqlite3_close(dbi.db);
64 dbi.db = NULL;
82 if (sqlite3_open(dbi->filename, &dbi->db) == SQLITE_OK) {
86 sqlite3_close(dbi->db);
87 dbi->db = NULL;
137 res = sqlite3_exec(dbi.db, sql, add_rdata_cb, NULL, &errmsg);
155 dns_db_t *db = NULL;
193 db = NULL;
195 dns_rdataclass_in, 0, NULL, &db);
198 result = dns_db_load(db, zonefile);
213 res = sqlite3_exec(dbi.db, sql, NULL, NULL, &errmsg);
225 res = sqlite3_exec(dbi.db, sql, NULL, NULL, &errmsg);
238 res = sqlite3_exec(dbi.db, sql, NULL, NULL, &errmsg);
247 result = dns_db_createiterator(db, 0, &dbiter);
266 result = dns_db_allrdatasets(db, node, NULL, 0, &rdsiter);
285 dns_db_detachnode(db, &node);
292 res = sqlite3_exec(dbi.db, sql, NULL, NULL, &errmsg);
301 dns_db_detach(&db);