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