39#include "vtkIOODBCModule.h"
46class vtkODBCQueryInternals;
168 vtkSetStringMacro(LastErrorText);
169 vtkSetStringMacro(QueryText);
176 void operator=(
const vtkODBCQuery &) VTK_DELETE_FUNCTION;
178 void ClearCurrentRow();
179 bool CacheCurrentRow();
181 bool CacheTimeColumn(
int column);
182 bool CacheIntervalColumn(
int column);
183 bool CacheCharColumn(
int column);
184 bool CacheLongLongColumn(
int column);
185 bool CacheBinaryColumn(
int column);
186 bool CacheBooleanColumn(
int column);
187 bool CacheStringColumn(
int column);
188 bool CacheWideStringColumn(
int column);
189 bool CacheDecimalColumn(
int column);
190 bool CacheNumericColumn(
int column);
191 bool CacheIntColumn(
int column);
192 bool CacheFloatColumn(
int column);
193 bool CacheDoubleColumn(
int column);
195 vtkODBCQueryInternals *Internals;
a simple class to control print indentation
maintain an ODBC connection to a SQL database
friend class vtkODBCQuery
Simple class to hide ODBC structures.
vtkSQLQuery implementation for ODBC connections to databases
bool BindParameter(int index, const char *stringValue)
Bind a string value – string must be null-terminated.
bool BindParameter(int index, int value)
bool BindParameter(int index, float value)
int GetNumberOfFields()
The number of fields in the query result.
bool BeginTransaction()
Begin, commit, or roll back a transaction.
bool BindParameter(int index, double value)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool Execute()
Execute the query.
bool ClearParameterBindings()
Reset all parameter bindings to NULL.
bool BindParameter(int index, unsigned short value)
bool SetQuery(const char *queryString)
Set the query string to be used.
bool BindParameter(int index, unsigned long value)
bool BindParameter(int index, const vtkStdString &string)
static vtkODBCQuery * New()
vtkVariant DataValue(vtkIdType c)
Return data in current row, field c.
bool HasError()
Return true if there is an error on the current query.
bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
bool BindParameter(int index, signed long value)
bool BindParameter(int index, unsigned int value)
bool RollbackTransaction()
bool BindParameter(int index, long long value)
const char * GetFieldName(int i)
Return the name of the specified query field.
bool BindParameter(int index, signed short value)
int GetFieldType(int i)
Return the type of the field, using the constants defined in vtkType.h.
bool BindParameter(int index, const char *stringValue, size_t length)
Bind a string value by specifying an array and a size.
bool NextRow()
Advance row, return false if past end.
bool BindParameter(int index, unsigned long long value)
bool BindParameter(int index, signed char value)
bool BindParameter(int index, const void *data, size_t length)
Bind a blob 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.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.