Lines Matching refs:ref_

15 // we don't have to NULL-check the ref_ to see if the statement is valid: we
18 : ref_(new Connection::StatementRef(NULL, NULL, false)),
24 : ref_(ref),
38 ref_ = ref;
49 DLOG_IF(FATAL, !ref_->was_valid())
56 ref_->AssertIOAllowed();
61 return CheckError(sqlite3_step(ref_->stmt())) == SQLITE_DONE;
65 ref_->AssertIOAllowed();
70 return CheckError(sqlite3_step(ref_->stmt())) == SQLITE_ROW;
74 ref_->AssertIOAllowed();
80 sqlite3_clear_bindings(ref_->stmt());
81 sqlite3_reset(ref_->stmt());
100 return CheckOk(sqlite3_bind_null(ref_->stmt(), col + 1));
112 return CheckOk(sqlite3_bind_int(ref_->stmt(), col + 1, val));
120 return CheckOk(sqlite3_bind_int64(ref_->stmt(), col + 1, val));
128 return CheckOk(sqlite3_bind_double(ref_->stmt(), col + 1, val));
137 sqlite3_bind_text(ref_->stmt(), col + 1, val, -1, SQLITE_TRANSIENT));
145 return CheckOk(sqlite3_bind_text(ref_->stmt(),
162 sqlite3_bind_blob(ref_->stmt(), col + 1, val, val_len, SQLITE_TRANSIENT));
169 return sqlite3_column_count(ref_->stmt());
180 return static_cast<ColType>(sqlite3_column_type(ref_->stmt(), col));
184 std::string column_type(sqlite3_column_decltype(ref_->stmt(), col));
207 return sqlite3_column_int(ref_->stmt(), col);
214 return sqlite3_column_int64(ref_->stmt(), col);
221 return sqlite3_column_double(ref_->stmt(), col);
229 sqlite3_column_text(ref_->stmt(), col));
230 int len = sqlite3_column_bytes(ref_->stmt(), col);
250 return sqlite3_column_bytes(ref_->stmt(), col);
257 return sqlite3_column_blob(ref_->stmt(), col);
293 const void* data = sqlite3_column_blob(ref_->stmt(), col);
294 int len = sqlite3_column_bytes(ref_->stmt(), col);
309 return sqlite3_sql(ref_->stmt());
324 if (!succeeded_ && ref_.get() && ref_->connection())
325 return ref_->connection()->OnSqliteError(err, this, NULL);