Lines Matching full:statement
9 #include "app/sql/statement.h"
128 // A statement must be open for the preload command to work. If the meta
133 Statement dummy(GetUniqueStatement("SELECT * FROM meta"));
157 Statement begin(GetCachedStatement(SQL_FROM_HERE, "BEGIN TRANSACTION"));
199 Statement commit(GetCachedStatement(SQL_FROM_HERE, "COMMIT"));
229 // Statement is in the cache. It should still be active (we're the only
238 scoped_refptr<StatementRef> statement = GetUniqueStatement(sql);
239 if (statement->is_valid())
240 statement_cache_[id] = statement; // Only cache valid statements.
241 return statement;
247 return new StatementRef(this, NULL); // Return inactive statement.
262 Statement statement(const_cast<Connection*>(this)->GetUniqueStatement(
265 if (!statement)
267 statement.BindString(0, table_name);
268 return statement.Step(); // Table exists if any row was returned.
278 Statement statement(const_cast<Connection*>(this)->GetUniqueStatement(
280 if (!statement)
283 while (statement.Step()) {
284 if (!statement.ColumnString(1).compare(column_name))
386 Statement rollback(GetCachedStatement(SQL_FROM_HERE, "ROLLBACK"));
415 int Connection::OnSqliteError(int err, sql::Statement *stmt) {