Go to the documentation of this file.
44 #ifndef vtkSQLiteQuery_h
45 #define vtkSQLiteQuery_h
47 #include "vtkIOSQLModule.h"
171 vtkSetStringMacro(LastErrorText);
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
int GetNumberOfFields() override
The number of fields in the query result.
~vtkSQLiteQuery() override
bool BindParameter(int index, unsigned long long value) override
bool BindParameter(int index, unsigned short value) override
static vtkSQLiteQuery * New()
bool BindParameter(int index, const char *stringValue, size_t length) override
Bind a string value by specifying an array and a size.
bool BindParameter(int index, double value) override
friend class vtkSQLiteQuery
An array holding vtkVariants.
bool BindParameter(int index, long value) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
bool BindParameter(int index, short value) override
bool ClearParameterBindings() override
Reset all parameter bindings to nullptr.
bool BindParameter(int index, float value) override
bool BindParameter(int index, int value) override
bool BindParameter(int index, unsigned int value) override
bool BindParameter(int index, signed char value) override
bool BindParameter(int index, const vtkStdString &string) override
bool NextRow() override
Advance row, return false if past end.
maintain a connection to an SQLite database
bool Execute() override
Execute the query.
a simple class to control print indentation
bool RollbackTransaction() override
bool CommitTransaction() override
A atomic type representing the union of many types.
bool BindParameter(int index, unsigned char value) override
Bind a parameter to a placeholder in a query.
bool BindParameter(int index, const void *data, size_t length) override
Bind a blob value.
bool BindParameter(int index, const char *stringValue) override
Bind a string value – string must be null-terminated.
bool SetQuery(const char *query) override
Set the SQL query string.
bool HasError() override
Return true if there is an error on the current query.
bool BindParameter(int index, vtkVariant value) override
const char * GetLastErrorText() override
Get the last error text from the query.
int GetFieldType(int i) override
Return the type of the field, using the constants defined in vtkType.h.
Wrapper around std::string to keep symbols short.
executes an sql query and retrieves results
bool BindParameter(int index, long long value) override
bool BeginTransaction() override
Begin, abort (roll back), or commit a transaction.
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.
vtkSQLQuery implementation for SQLite databases
bool BindParameter(int index, unsigned long value) override