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