12 #ifndef vtkQtSQLQuery_h
13 #define vtkQtSQLQuery_h
15 #include "vtkGUISupportQtSQLModule.h"
18 VTK_ABI_NAMESPACE_BEGIN
20 class vtkQtSQLQueryInternals;
80 vtkSetStringMacro(LastErrorText);
89 #endif // vtkQtSQLQuery_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool NextRow()=0
Advance row, return false if past end.
bool Execute() override=0
Execute the query.
virtual const char * GetFieldName(int i)=0
Return the name of the specified query field.
A type representing the union of many types.
virtual bool HasError()=0
Returns true if an error is set, otherwise false.
query class associated with vtkQtSQLDatabase
a simple class to control print indentation
virtual int GetNumberOfFields()=0
The number of fields in the query result.
vtkQtSQLQueryInternals * Internals
virtual int GetFieldType(int i)=0
Return the type of the field, using the constants defined in vtkType.h.
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...
friend class vtkQtSQLQuery
maintains a connection to an sql database