Go to the documentation of this file.
66 #include "vtkIOSQLModule.h"
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);
231 void operator=(
const vtkSQLQuery &) VTK_DELETE_FUNCTION;
234 #endif // vtkSQLQuery_h
virtual bool SetQuery(const char *query)
The query string to be executed.
virtual bool CommitTransaction()
bool IsActive()
Return true if the query is active (i.e.
virtual vtkStdString EscapeString(vtkStdString s, bool addSurroundingQuotes=true)
Escape a string for inclusion into an SQL query.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
An array holding vtkVariants.
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.
virtual bool Execute()=0
Execute the query.
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 NULL.
executes an sql query and retrieves results
maintain a connection to an sql database