44 #ifndef vtkSQLiteQuery_h
45 #define vtkSQLiteQuery_h
47 #include "vtkIOSQLModule.h"
53 struct vtk_sqlite3_stmt;
172 vtkSetStringMacro(LastErrorText);
178 vtk_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);
192 bool BindStringParameter(
int index, const
char *
data,
int length);
193 bool BindBlobParameter(
int index, const
void *data,
int length);
198 #endif // vtkSQLiteQuery_h
virtual bool SetQuery(const char *query)
The query string to be executed.
Wrapper around std::string to keep symbols short.
virtual bool NextRow()=0
Advance row, return false if past end.
An array holding vtkVariants.
virtual const char * GetFieldName(int i)=0
Return the name of the specified query field.
virtual bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
maintain a connection to an SQLite database
virtual bool CommitTransaction()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
A atomic type representing the union of many types.
virtual bool HasError()=0
Returns true if an error is set, otherwise false.
friend class vtkSQLiteQuery
vtkSQLQuery implementation for SQLite databases
a simple class to control print indentation
virtual int GetNumberOfFields()=0
The number of fields in the query result.
virtual bool RollbackTransaction()
virtual bool BeginTransaction()
Begin, commit, or roll back a transaction.
virtual int GetFieldType(int i)=0
Return the type of the field, using the constants defined in vtkType.h.
virtual bool Execute()=0
Execute the query.
virtual bool ClearParameterBindings()
Reset all parameter bindings to NULL.
virtual vtkVariant DataValue(vtkIdType c)=0
Return data in current row, field c.
executes an sql query and retrieves results
virtual const char * GetLastErrorText()=0
Get the last error text from the query.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...