Lines Matching refs:col

71 bool Statement::BindNull(int col) {
73 int err = CheckError(sqlite3_bind_null(ref_->stmt(), col + 1));
79 bool Statement::BindBool(int col, bool val) {
80 return BindInt(col, val ? 1 : 0);
83 bool Statement::BindInt(int col, int val) {
85 int err = CheckError(sqlite3_bind_int(ref_->stmt(), col + 1, val));
91 bool Statement::BindInt64(int col, int64 val) {
93 int err = CheckError(sqlite3_bind_int64(ref_->stmt(), col + 1, val));
99 bool Statement::BindDouble(int col, double val) {
101 int err = CheckError(sqlite3_bind_double(ref_->stmt(), col + 1, val));
107 bool Statement::BindCString(int col, const char* val) {
109 int err = CheckError(sqlite3_bind_text(ref_->stmt(), col + 1, val, -1,
116 bool Statement::BindString(int col, const std::string& val) {
118 int err = CheckError(sqlite3_bind_text(ref_->stmt(), col + 1, val.data(),
125 bool Statement::BindString16(int col, const string16& value) {
126 return BindString(col, UTF16ToUTF8(value));
129 bool Statement::BindBlob(int col, const void* val, int val_len) {
131 int err = CheckError(sqlite3_bind_blob(ref_->stmt(), col + 1,
146 ColType Statement::ColumnType(int col) const {
154 return static_cast<ColType>(sqlite3_column_type(ref_->stmt(), col));
157 bool Statement::ColumnBool(int col) const {
158 return !!ColumnInt(col);
161 int Statement::ColumnInt(int col) const {
166 return sqlite3_column_int(ref_->stmt(), col);
169 int64 Statement::ColumnInt64(int col) const {
174 return sqlite3_column_int64(ref_->stmt(), col);
177 double Statement::ColumnDouble(int col) const {
182 return sqlite3_column_double(ref_->stmt(), col);
185 std::string Statement::ColumnString(int col) const {
191 sqlite3_column_text(ref_->stmt(), col));
192 int len = sqlite3_column_bytes(ref_->stmt(), col);
200 string16 Statement::ColumnString16(int col) const {
205 std::string s = ColumnString(col);
209 int Statement::ColumnByteLength(int col) const {
214 return sqlite3_column_bytes(ref_->stmt(), col);
217 const void* Statement::ColumnBlob(int col) const {
223 return sqlite3_column_blob(ref_->stmt(), col);
226 bool Statement::ColumnBlobAsString(int col, std::string* blob) {
231 const void* p = ColumnBlob(col);
232 size_t len = ColumnByteLength(col);
241 void Statement::ColumnBlobAsVector(int col, std::vector<char>* val) const {
248 const void* data = sqlite3_column_blob(ref_->stmt(), col);
249 int len = sqlite3_column_bytes(ref_->stmt(), col);
257 int col,
259 ColumnBlobAsVector(col, reinterpret_cast< std::vector<char>* >(val));