44 #ifndef vtkSQLiteQuery_h
45 #define vtkSQLiteQuery_h
47 #include "vtkIOSQLModule.h"
53 struct vtk_sqlite3_stmt;
69 bool SetQuery(
const char *query) VTK_OVERRIDE;
81 int GetNumberOfFields() VTK_OVERRIDE;
86 const
char* GetFieldName(
int i) VTK_OVERRIDE;
91 int GetFieldType(
int i) VTK_OVERRIDE;
96 bool NextRow() VTK_OVERRIDE;
107 bool BeginTransaction() VTK_OVERRIDE;
108 bool RollbackTransaction() VTK_OVERRIDE;
109 bool CommitTransaction() VTK_OVERRIDE;
131 bool BindParameter(
int index,
unsigned char value) VTK_OVERRIDE;
132 bool BindParameter(
int index,
signed char value) VTK_OVERRIDE;
133 bool BindParameter(
int index,
unsigned short value) VTK_OVERRIDE;
134 bool BindParameter(
int index,
short value) VTK_OVERRIDE;
135 bool BindParameter(
int index,
unsigned int value) VTK_OVERRIDE;
137 bool BindParameter(
int index,
int value) VTK_OVERRIDE;
139 bool BindParameter(
int index,
unsigned long value) VTK_OVERRIDE;
140 bool BindParameter(
int index,
long value) VTK_OVERRIDE;
141 bool BindParameter(
int index,
unsigned long long value) VTK_OVERRIDE;
142 bool BindParameter(
int index,
long long value) VTK_OVERRIDE;
144 bool BindParameter(
int index,
float value) VTK_OVERRIDE;
145 bool BindParameter(
int index,
double value) VTK_OVERRIDE;
149 bool BindParameter(
int index, const
char *stringValue) VTK_OVERRIDE;
153 bool BindParameter(
int index, const
char *stringValue,
size_t length) VTK_OVERRIDE;
155 bool BindParameter(
int index, const
vtkStdString &
string) VTK_OVERRIDE;
164 bool BindParameter(
int index, const
void *
data,
size_t length) VTK_OVERRIDE;
165 bool ClearParameterBindings() VTK_OVERRIDE;
170 ~vtkSQLiteQuery() VTK_OVERRIDE;
172 vtkSetStringMacro(LastErrorText);
175 vtkSQLiteQuery(const vtkSQLiteQuery &) VTK_DELETE_FUNCTION;
176 void operator=(const vtkSQLiteQuery &) VTK_DELETE_FUNCTION;
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
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool SetQuery(const char *query)
The query string to be executed.
Wrapper around std::string to keep symbols short.
An array holding vtkVariants.
bool HasError() override
Did the last operation generate an error.
bool Execute() override=0
Execute the query.
maintain a connection to an SQLite database
const char * GetLastErrorText() override
Get the last error text from the database.
A atomic type representing the union of many types.
vtkSQLQuery implementation for SQLite databases
a simple class to control print indentation
executes an sql query and retrieves results
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...