Home | History | Annotate | Download | only in sql

Lines Matching refs:db_

30       : db_(db) {
33 sqlite3_busy_timeout(db_, 0);
38 return sqlite3_busy_timeout(db_,
43 sqlite3* db_;
89 : db_(NULL),
116 if (db_) {
117 sqlite3_close(db_);
118 db_ = NULL;
123 if (!db_) {
140 sqlite3_preload(db_);
206 if (!db_)
208 return sqlite3_exec(db_, sql, NULL, NULL, NULL) == SQLITE_OK;
212 if (!db_)
215 ScopedBusyTimeout busy_timeout(db_);
217 return sqlite3_exec(db_, sql, NULL, NULL, NULL) == SQLITE_OK;
246 if (!db_)
250 if (sqlite3_prepare_v2(db_, sql, -1, &stmt, NULL) != SQLITE_OK) {
291 if (!db_) {
295 return sqlite3_last_insert_rowid(db_);
299 if (!db_) {
303 return sqlite3_changes(db_);
307 if (!db_)
309 return sqlite3_errcode(db_);
313 if (!db_)
317 if (SQLITE_OK != sqlite3_file_control(db_, NULL, SQLITE_LAST_ERRNO, &err))
324 if (!db_)
326 return sqlite3_errmsg(db_);
330 if (db_) {
335 int err = sqlite3_open(file_name.c_str(), &db_);
338 db_ = NULL;
347 err = sqlite3_extended_result_codes(db_, 1);