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