Lines Matching refs:db_
129 db_.set_error_delegate(GetErrorHandlerForTextDb());
135 db_.set_page_size(4096);
141 db_.set_cache_size(512);
145 db_.set_exclusive_locking();
148 if (!db_.Open(file_name_))
152 if (!meta_table_.Init(&db_, kCurrentVersionNumber, kCompatibleVersionNumber))
169 db_.BeginTransaction();
173 db_.CommitTransaction();
178 if (!db_.DoesTableExist("pages")) {
179 if (!db_.Execute("CREATE VIRTUAL TABLE pages USING fts3("
190 if (!db_.DoesTableExist("info")) {
195 if (!db_.Execute("CREATE TABLE info(time INTEGER NOT NULL)"))
201 db_.Execute("CREATE INDEX info_time ON info(time)");
209 sql::Transaction committer(&db_);
214 sql::Statement add_to_pages(db_.GetCachedStatement(SQL_FROM_HERE,
217 NOTREACHED() << db_.GetErrorMessage();
224 NOTREACHED() << db_.GetErrorMessage();
228 int64 rowid = db_.GetLastInsertRowId();
231 sql::Statement add_to_info(db_.GetCachedStatement(SQL_FROM_HERE,
234 NOTREACHED() << db_.GetErrorMessage();
240 NOTREACHED() << db_.GetErrorMessage();
251 sql::Statement select_ids(db_.GetCachedStatement(SQL_FROM_HERE,
264 sql::Statement delete_page(db_.GetCachedStatement(SQL_FROM_HERE,
279 sql::Statement delete_info(db_.GetCachedStatement(SQL_FROM_HERE,
295 sql::Statement statement(db_.GetCachedStatement(SQL_FROM_HERE,
309 sql::Statement statement(db_.GetCachedStatement(SQL_FROM_HERE,