Go to the documentation of this file.
66 #include "vtkIOSQLModule.h"
95 bool IsActive()
override {
return this->Active; }
162 virtual bool BindParameter(
int index,
unsigned long long value);
170 virtual bool BindParameter(
int index,
const char *stringValue);
174 virtual bool BindParameter(
int index,
const char *stringValue,
size_t length);
234 #endif // vtkSQLQuery_h
virtual bool SetQuery(const char *query)
The query string to be executed.
virtual bool CommitTransaction()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkStdString EscapeString(vtkStdString s, bool addSurroundingQuotes=true)
Escape a string for inclusion into an SQL query.
bool Execute() override=0
Execute the query.
An array holding vtkVariants.
bool IsActive() override
Return true if the query is active (i.e.
void SetDatabase(vtkSQLDatabase *db)
Set the database associated with the query.
virtual const char * GetQuery()
virtual bool RollbackTransaction()
a simple class to control print indentation
char * EscapeString(const char *src, bool addSurroundingQuotes)
Escape a string for inclusion into an SQL query.
A atomic type representing the union of many types.
virtual bool BeginTransaction()
Begin, commit, or roll back a transaction.
vtkSQLDatabase * Database
abstract interface for queries that return row-oriented results.
Wrapper around std::string to keep symbols short.
virtual bool ClearParameterBindings()
Reset all parameter bindings to nullptr.
executes an sql query and retrieves results
maintain a connection to an sql database