22 fResult = (sqlite3_stmt *) result;
55 Error(
"IsValid",
"result set closed");
59 Error(
"IsValid",
"field index out of bounds");
71 Error(
"GetFieldCount",
"result set closed");
74 return sqlite3_column_count(
fResult);
83 Error(
"GetFieldName",
"result set closed");
86 return sqlite3_column_name(
fResult, field);
96 Error(
"Next",
"result set closed");
100 int ret = sqlite3_step(
fResult);
101 if ((ret != SQLITE_DONE) && (ret != SQLITE_ROW)) {
102 Error(
"Statement",
"SQL Error: %d %s", ret, sqlite3_errmsg(sqlite3_db_handle(
fResult)));
105 if (ret == SQLITE_DONE) {
const char * GetFieldName(Int_t field)
Get name of specified field.
Bool_t IsValid(Int_t field)
Check if result set is open and field index within range.
void Close(Option_t *opt="")
Close query result.
~TSQLiteResult()
Cleanup SQLite query result.
Int_t GetFieldCount()
Get number of fields in result.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TSQLRow * Next()
Get next query result row.