23 #ifndef vtkPostgreSQLQuery_h
24 #define vtkPostgreSQLQuery_h
26 #include "vtkIOPostgreSQLModule.h"
29 VTK_ABI_NAMESPACE_BEGIN
33 class vtkPostgreSQLQueryPrivate;
108 vtkSetStringMacro(LastErrorText);
128 VTK_ABI_NAMESPACE_END
a simple class to control print indentation
maintain a connection to a PostgreSQL database
friend class vtkPostgreSQLQuery
vtkSQLQuery implementation for PostgreSQL databases
vtkStdString EscapeString(vtkStdString s, bool addSurroundingQuotes=true) override
Escape a string for inclusion into an SQL query.
int GetNumberOfFields() override
The number of fields in the query result.
bool TransactionInProgress
bool HasError() override
Return true if there is an error on the current query.
bool IsColumnBinary(int whichColumn)
const char * GetColumnRawData(int whichColumn)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetLastErrorText() override
Get the last error text from the query.
bool Execute() override
Execute the query.
vtkPostgreSQLQueryPrivate * QueryInternals
int GetFieldType(int i) override
Return the type of the field, using the constants defined in vtkType.h.
static vtkPostgreSQLQuery * New()
bool RollbackTransaction() override
Begin, abort (roll back), or commit a transaction.
int GetNumberOfRows()
Unlike some databases, Postgres can tell you right away how many rows are in the results of your quer...
bool NextRow() override
Advance row, return false if past end.
vtkVariant DataValue(vtkIdType c) override
Return data in current row, field c.
~vtkPostgreSQLQuery() override
bool BeginTransaction() override
Begin, abort (roll back), or commit a transaction.
bool CommitTransaction() override
Begin, abort (roll back), or commit a transaction.
void DeleteQueryResults()
const char * GetFieldName(int i) override
Return the name of the specified query field.
executes an sql query and retrieves results
Wrapper around std::string to keep symbols short.
An array holding vtkVariants.
A type representing the union of many types.