Go to the documentation of this file.
36 #ifndef vtkMySQLQuery_h
37 #define vtkMySQLQuery_h
39 #include "vtkIOMySQLModule.h"
46 class vtkMySQLQueryInternals;
173 vtkSetStringMacro(LastErrorText);
179 vtkMySQLQueryInternals *Internals;
184 #endif // vtkMySQLQuery_h
friend class vtkMySQLQuery
bool BindParameter(int index, const void *data, size_t length)
Bind a blob value.
bool BindParameter(int index, signed short value)
bool BindParameter(int index, int value)
vtkVariant DataValue(vtkIdType c)
Return data in current row, field c.
bool BindParameter(int index, signed long value)
bool ClearParameterBindings()
Reset all parameter bindings to NULL.
bool BindParameter(int index, unsigned int value)
bool BindParameter(int index, unsigned long value)
An array holding vtkVariants.
bool HasError()
Return true if there is an error on the current query.
int GetNumberOfFields()
The number of fields in the query result.
virtual bool BeginTransaction()
Begin, commit, or roll back a transaction.
maintain a connection to a MySQL database
virtual bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
bool BindParameter(int index, long long value)
bool BindParameter(int index, const vtkStdString &string)
bool BindParameter(int index, unsigned long long value)
const char * GetLastErrorText()
Get the last error text from the query.
a simple class to control print indentation
bool SetQuery(const char *query)
Set the SQL query string.
int GetFieldType(int i)
Return the type of the field, using the constants defined in vtkType.h.
A atomic type representing the union of many types.
bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
virtual bool RollbackTransaction()
vtkSQLQuery implementation for MySQL databases
bool BindParameter(int index, signed char value)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
const char * GetFieldName(int i)
Return the name of the specified query field.
bool BindParameter(int index, double value)
bool NextRow()
Advance row, return false if past end.
bool BindParameter(int index, float value)
virtual vtkStdString EscapeString(vtkStdString src, bool addSurroundingQuotes=true)
Escape a string for use in a query.
virtual bool CommitTransaction()
static vtkMySQLQuery * New()
bool Execute()
Execute the query.
Wrapper around std::string to keep symbols short.
executes an sql query and retrieves results
bool BindParameter(int index, const char *stringValue, size_t length)
Bind a string value by specifying an array and a size.
bool BindParameter(int index, unsigned short value)
bool BindParameter(int index, const char *stringValue)
Bind a string value – string must be null-terminated.