Go to the documentation of this file.
39 #ifndef vtkPostgreSQLQuery_h
40 #define vtkPostgreSQLQuery_h
42 #include "vtkIOPostgreSQLModule.h"
48 class vtkPostgreSQLQueryPrivate;
117 int GetNumberOfRows();
123 vtkSetStringMacro(LastErrorText);
125 bool IsColumnBinary(
int whichColumn);
126 const char *GetColumnRawData(
int whichColumn);
134 void DeleteQueryResults();
143 #endif // vtkPostgreSQLQuery_h
virtual const char * GetFieldName(int i)=0
Return the name of the specified query field.
virtual bool CommitTransaction()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual vtkStdString EscapeString(vtkStdString s, bool addSurroundingQuotes=true)
Escape a string for inclusion into an SQL query.
bool Execute() override=0
Execute the query.
maintain a connection to a PostgreSQL database
An array holding vtkVariants.
virtual bool HasError()=0
Returns true if an error is set, otherwise false.
virtual bool RollbackTransaction()
a simple class to control print indentation
vtkSQLQuery implementation for PostgreSQL databases
A atomic type representing the union of many types.
bool TransactionInProgress
virtual int GetNumberOfFields()=0
The number of fields in the query result.
virtual bool BeginTransaction()
Begin, commit, or roll back a transaction.
virtual vtkVariant DataValue(vtkIdType c)=0
Return data in current row, field c.
vtkPostgreSQLQueryPrivate * QueryInternals
virtual int GetFieldType(int i)=0
Return the type of the field, using the constants defined in vtkType.h.
friend class vtkPostgreSQLQuery
Wrapper around std::string to keep symbols short.
executes an sql query and retrieves results
virtual bool NextRow()=0
Advance row, return false if past end.
virtual const char * GetLastErrorText()=0
Get the last error text from the query.