18 #ifndef vtkODBCQuery_h
19 #define vtkODBCQuery_h
21 #include "vtkIOODBCModule.h"
24 VTK_ABI_NAMESPACE_BEGIN
29 class vtkODBCQueryInternals;
98 bool SetQuery(
const char* queryString)
override;
151 vtkSetStringMacro(LastErrorText);
152 vtkSetStringMacro(QueryText);
153 vtkGetStringMacro(QueryText);
161 void ClearCurrentRow();
162 bool CacheCurrentRow();
164 bool CacheTimeColumn(
int column);
165 bool CacheIntervalColumn(
int column);
166 bool CacheCharColumn(
int column);
167 bool CacheLongLongColumn(
int column);
168 bool CacheBinaryColumn(
int column);
169 bool CacheBooleanColumn(
int column);
170 bool CacheStringColumn(
int column);
171 bool CacheWideStringColumn(
int column);
172 bool CacheDecimalColumn(
int column);
173 bool CacheNumericColumn(
int column);
174 bool CacheIntColumn(
int column);
175 bool CacheFloatColumn(
int column);
176 bool CacheDoubleColumn(
int column);
178 vtkODBCQueryInternals* Internals;
183 VTK_ABI_NAMESPACE_END
184 #endif // vtkODBCQuery_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool SetQuery(const char *query)
The query string to be executed.
Wrapper around std::string to keep symbols short.
virtual bool NextRow()=0
Advance row, return false if past end.
An array holding vtkVariants.
bool Execute() override=0
Execute the query.
virtual const char * GetFieldName(int i)=0
Return the name of the specified query field.
virtual const char * GetQuery()
The query string to be executed.
virtual bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
friend class vtkODBCQuery
virtual bool CommitTransaction()
A type representing the union of many types.
virtual bool HasError()=0
Returns true if an error is set, otherwise false.
Simple class to hide ODBC structures.
a simple class to control print indentation
maintain an ODBC connection to a SQL database
virtual int GetNumberOfFields()=0
The number of fields in the query result.
virtual bool RollbackTransaction()
virtual bool BeginTransaction()
Begin, commit, or roll back a transaction.
virtual int GetFieldType(int i)=0
Return the type of the field, using the constants defined in vtkType.h.
virtual bool ClearParameterBindings()
Reset all parameter bindings to nullptr.
virtual vtkVariant DataValue(vtkIdType c)=0
Return data in current row, field c.
executes an sql query and retrieves results
virtual const char * GetLastErrorText()=0
Get the last error text from the query.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkSQLQuery implementation for ODBC connections to databases