Lines Matching refs:db_
31 db_.reset(CreateDB(db_name));
32 if (!db_.get())
35 bool does_meta_exist = sql::MetaTable::DoesTableExist(db_.get());
42 db_.reset(NULL);
49 db_.reset(CreateDB(db_name));
50 if (!db_.get())
54 if (!meta_table_.Init(db_.get(), kVersionNumber, kVersionNumber))
68 if (!db_->DoesTableExist("thumbnails")) {
69 if (!db_->Execute("CREATE TABLE thumbnails ("
79 LOG(WARNING) << db_->GetErrorMessage();
88 sql::Statement statement(db_->GetCachedStatement(
95 LOG(WARNING) << db_->GetErrorMessage();
146 sql::Transaction transaction(db_.get());
162 sql::Statement statement(db_->GetCachedStatement(
184 NOTREACHED() << db_->GetErrorMessage();
192 sql::Statement statement(db_->GetCachedStatement(
215 NOTREACHED() << db_->GetErrorMessage();
222 sql::Transaction transaction(db_.get());
240 sql::Statement shift_statement(db_->GetCachedStatement(
251 sql::Statement shift_statement(db_->GetCachedStatement(
263 sql::Statement set_statement(db_->GetCachedStatement(
276 sql::Statement statement(db_->GetCachedStatement(
282 LOG(WARNING) << db_->GetErrorMessage();
303 sql::Statement select_statement(db_->GetCachedStatement(
307 LOG(WARNING) << db_->GetErrorMessage();
319 sql::Statement select_statement(db_->GetCachedStatement(
324 LOG(WARNING) << db_->GetErrorMessage();
341 sql::Transaction transaction(db_.get());
344 sql::Statement shift_statement(db_->GetCachedStatement(
355 db_->GetCachedStatement(SQL_FROM_HERE,