Go to the documentation of this file.
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);
198 #endif // vtkSQLiteQuery_h
bool NextRow()
Advance row, return false if past end.
bool SetQuery(const char *query)
Set the SQL query string.
const char * GetFieldName(int i)
Return the name of the specified query field.
bool BindParameter(int index, const vtkStdString &string)
static vtkSQLiteQuery * New()
bool BeginTransaction()
Begin, abort (roll back), or commit a transaction.
bool BindParameter(int index, int value)
bool BindParameter(int index, long long value)
bool RollbackTransaction()
bool Execute()
Execute the query.
friend class vtkSQLiteQuery
An array holding vtkVariants.
bool BindParameter(int index, signed char value)
bool BindParameter(int index, short value)
virtual bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
bool BindParameter(int index, unsigned long value)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool BindParameter(int index, const void *data, size_t length)
Bind a blob value.
bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
bool BindParameter(int index, float value)
bool BindParameter(int index, long value)
maintain a connection to an SQLite database
bool BindParameter(int index, vtkVariant value)
a simple class to control print indentation
bool HasError()
Return true if there is an error on the current query.
bool BindParameter(int index, unsigned int value)
A atomic type representing the union of many types.
bool BindParameter(int index, const char *stringValue)
Bind a string value – string must be null-terminated.
int GetFieldType(int i)
Return the type of the field, using the constants defined in vtkType.h.
bool BindParameter(int index, unsigned long long value)
int GetNumberOfFields()
The number of fields in the query result.
bool ClearParameterBindings()
Reset all parameter bindings to NULL.
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.
const char * GetLastErrorText()
Get the last error text from the query.
bool BindParameter(int index, unsigned short value)
bool BindParameter(int index, double value)
vtkVariant DataValue(vtkIdType c)
Return data in current row, field c.
vtkSQLQuery implementation for SQLite databases