Lines Matching refs:stmt
27 sqlite3_stmt *stmt;
167 result->stmt = NULL;
170 rc = sqlite3_prepare(db->sqlite, query, -1, &result->stmt, NULL);
173 result->cols = sqlite3_column_count(result->stmt);
177 result->stmt = NULL;
196 if (result->stmt != NULL) {
197 if ((rc = sqlite3_finalize(result->stmt)) != SQLITE_OK) {
210 switch (sqlite3_step(result->stmt)) {
234 return sqlite3_column_name(result->stmt, idx);
244 const char *col = sqlite3_column_name(result->stmt, i);
259 return (const char*)sqlite3_column_text(result->stmt, idx);
268 *size_r = sqlite3_column_bytes(result->stmt, idx);
269 return sqlite3_column_blob(result->stmt, idx);