Lines Matching refs:db_
72 db_.set_error_delegate(GetErrorHandlerForHistoryDb());
78 db_.set_page_size(4096);
84 db_.set_cache_size(6000);
90 if (!db_.Open(history_name))
95 sql::Transaction committer(&db_);
109 db_.Preload();
114 if (!meta_table_.Init(&db_, GetCurrentVersion(), kCompatibleVersionNumber))
128 ComputeDatabaseMetrics(history_name, db_);
135 db_.Execute("PRAGMA locking_mode=EXCLUSIVE");
144 db_.BeginTransaction();
148 db_.CommitTransaction();
175 DCHECK_EQ(0, db_.transaction_nesting()) <<
177 db_.Execute("VACUUM");
191 sql::Statement s(db_.GetCachedStatement(SQL_FROM_HERE,
194 NOTREACHED() << db_.GetErrorMessage();
199 DCHECK(db_.GetLastChangeCount() == 1);
204 sql::Statement s(db_.GetCachedStatement(SQL_FROM_HERE,
207 NOTREACHED() << db_.GetErrorMessage();
243 return db_;
327 db_.Execute(
331 db_.Execute(
335 db_.Execute(