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