39#ifndef vtkPostgreSQLQuery_h
40#define vtkPostgreSQLQuery_h
42#include "vtkIOPostgreSQLModule.h"
48class 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)
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.
virtual vtkStdString EscapeString(vtkStdString s, bool addSurroundingQuotes=true)
Escape a string for inclusion into an SQL query.
const char * GetColumnRawData(int whichColumn)
bool NextRow()
Advance row, return false if past end.
vtkPostgreSQLQueryPrivate * QueryInternals
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.
const char * GetFieldName(int i)
Return the name of the specified query field.
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.
const char * GetLastErrorText()
Get the last error text from the query.
static vtkPostgreSQLQuery * New()
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.