23 fResult = (sqlite3_stmt *) result;
56 Error(
"IsValid",
"result set closed");
60 Error(
"IsValid",
"field index out of bounds");
72 Error(
"GetFieldCount",
"result set closed");
75 return sqlite3_column_count(
fResult);
84 Error(
"GetFieldName",
"result set closed");
87 return sqlite3_column_name(
fResult, field);
106 Error(
"Next",
"result set closed");
111 if ((
ret != SQLITE_DONE) && (
ret != SQLITE_ROW)) {
112 Error(
"Statement",
"SQL Error: %d %s",
ret, sqlite3_errmsg(sqlite3_db_handle(
fResult)));
115 if (
ret == SQLITE_DONE) {
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void Close(Option_t *opt="") final
Close query result.
const char * GetFieldName(Int_t field) final
Get name of specified field.
Int_t GetRowCount() const final
SQLite can not determine the row count for a Query, return -1 instead.
~TSQLiteResult()
Cleanup SQLite query result.
TSQLRow * Next() final
Get next query result row.
Int_t GetFieldCount() final
Get number of fields in result.
Bool_t IsValid(Int_t field)
Check if result set is open and field index within range.
TSQLiteResult(void *result)
SQLite query result.