57 Error(
"IsValid",
"result set closed");
61 Error(
"IsValid",
"field index out of bounds");
73 Error(
"GetFieldCount",
"result set closed");
76 return sqlite3_column_count(
fResult);
85 Error(
"GetFieldName",
"result set closed");
88 return sqlite3_column_name(
fResult, field);
107 Error(
"Next",
"result set closed");
111 int ret = sqlite3_step(
fResult);
112 if ((ret != SQLITE_DONE) && (ret != SQLITE_ROW)) {
113 Error(
"Statement",
"SQL Error: %d %s", ret, sqlite3_errmsg(sqlite3_db_handle(
fResult)));
116 if (ret == SQLITE_DONE) {
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
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.