Searched refs:select_statement (Results 1 – 2 of 2) sorted by relevance
303 sql::Statement select_statement(db_->GetCachedStatement( in GetRowCount() local306 if (!select_statement) { in GetRowCount()311 if (select_statement.Step()) in GetRowCount()312 result = select_statement.ColumnInt(0); in GetRowCount()319 sql::Statement select_statement(db_->GetCachedStatement( in GetURLRank() local323 if (!select_statement) { in GetURLRank()328 select_statement.BindString(0, url.url.spec()); in GetURLRank()329 if (select_statement.Step()) in GetURLRank()330 result = select_statement.ColumnInt(0); in GetURLRank()
341 sql::Statement select_statement(db_.GetCachedStatement(SQL_FROM_HERE, in ThumbnailScoreForId() local344 if (!select_statement) { in ThumbnailScoreForId()347 select_statement.BindInt64(0, id); in ThumbnailScoreForId()348 if (select_statement.Step()) { in ThumbnailScoreForId()349 double current_boring_score = select_statement.ColumnDouble(0); in ThumbnailScoreForId()350 bool current_clipping = select_statement.ColumnBool(1); in ThumbnailScoreForId()351 bool current_at_top = select_statement.ColumnBool(2); in ThumbnailScoreForId()353 base::Time::FromTimeT(select_statement.ColumnInt64(3)); in ThumbnailScoreForId()