31#ifndef vtkQtSQLDatabase_h
32#define vtkQtSQLDatabase_h
35#include "vtkGUISupportQtSQLModule.h"
38#include <QtSql/QSqlDatabase>
55 bool Open(
const char* password)
override;
a simple class to control print indentation
vtkStringArray * GetTables() override
Get the list of tables from the database.
const char * GetDatabaseType() override
String representing Qt database type (e.g.
bool Open(const char *password) override
Open a new connection to the database.
bool IsOpen() override
Return whether the database has an open connection.
vtkStringArray * GetColumns()
Returns a list of columns for a particular table.
vtkStdString GetURL() override
Get the URL of the database.
virtual int GetDbPort()
The port used for connecting to the database.
vtkSQLQuery * GetQueryInstance() override
Return an empty query on this database.
bool HasError() override
Did the last operation generate an error.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSQLDatabase * CreateFromURL(const char *URL)
Create a the proper subclass given a URL.
bool IsSupported(int feature) override
Return whether a feature is supported by the database.
friend class vtkQtSQLQuery
void SetColumnsTable(const char *table)
Set the table used by GetColumns() Note that this is mainly for use with the VTK parallel server.
const char * GetLastErrorText() override
Get the last error text from the database.
virtual void SetDbPort(int)
The port used for connecting to the database.
~vtkQtSQLDatabase() override
bool ParseURL(const char *url) override
Overridden to determine connection parameters given the URL.
vtkStringArray * GetRecord(const char *table) override
Get the list of fields for a particular table.
static vtkQtSQLDatabase * New()
void Close() override
Close the connection to the database.
executes an sql query and retrieves results
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
#define VTK_DEPRECATED_IN_9_1_0(reason)