44#ifndef vtkSQLiteQuery_h
45#define vtkSQLiteQuery_h
47#include "vtkIOSQLModule.h"
172 vtkSetStringMacro(LastErrorText);
178 sqlite3_stmt *Statement;
180 int InitialFetchResult;
182 bool TransactionInProgress;
189 bool BindIntegerParameter(
int index,
int value);
190 bool BindDoubleParameter(
int index,
double value);
191 bool BindInt64Parameter(
int index, vtkTypeInt64
value);
a simple class to control print indentation
executes an sql query and retrieves results
virtual bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
maintain a connection to an SQLite database
friend class vtkSQLiteQuery
vtkSQLQuery implementation for SQLite databases
bool BindParameter(int index, unsigned int value)
bool BindParameter(int index, const void *data, size_t length)
Bind a blob value.
int GetFieldType(int i)
Return the type of the field, using the constants defined in vtkType.h.
bool BindParameter(int index, float value)
const char * GetFieldName(int i)
Return the name of the specified query field.
const char * GetLastErrorText()
Get the last error text from the query.
int GetNumberOfFields()
The number of fields in the query result.
bool BindParameter(int index, long value)
bool ClearParameterBindings()
Reset all parameter bindings to NULL.
bool BindParameter(int index, int value)
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 long long value)
static vtkSQLiteQuery * New()
bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
bool BindParameter(int index, unsigned long value)
bool Execute()
Execute the query.
bool BeginTransaction()
Begin, abort (roll back), or commit a transaction.
bool SetQuery(const char *query)
Set the SQL query string.
vtkVariant DataValue(vtkIdType c)
Return data in current row, field c.
bool BindParameter(int index, const char *stringValue)
Bind a string value – string must be null-terminated.
bool BindParameter(int index, signed char value)
bool BindParameter(int index, short value)
bool BindParameter(int index, vtkVariant value)
bool BindParameter(int index, double value)
bool RollbackTransaction()
bool BindParameter(int index, long long value)
bool HasError()
Return true if there is an error on the current query.
bool BindParameter(int index, unsigned short value)
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, const vtkStdString &string)
Wrapper around std::string to keep symbols short.
An array holding vtkVariants.
A atomic type representing the union of many types.