36 #ifndef vtkMySQLQuery_h 37 #define vtkMySQLQuery_h 39 #include "vtkIOMySQLModule.h" 45 class vtkMySQLQueryInternals;
61 bool SetQuery(
const char *query)
override;
172 vtkSetStringMacro(LastErrorText);
178 vtkMySQLQueryInternals *Internals;
183 #endif // vtkMySQLQuery_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 bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
virtual bool CommitTransaction()
virtual vtkStdString EscapeString(vtkStdString s, bool addSurroundingQuotes=true)
Escape a string for inclusion into an SQL query.
A atomic type representing the union of many types.
virtual bool HasError()=0
Returns true if an error is set, otherwise false.
maintain a connection to a MySQL database
friend class vtkMySQLQuery
a simple class to control print indentation
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.
vtkSQLQuery implementation for MySQL databases
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...