30 #ifndef vtkQtSQLDatabase_h
31 #define vtkQtSQLDatabase_h
35 #if (QT_EDITION & QT_MODULE_SQL)
37 #include "vtkGUISupportQtSQLModule.h"
40 #include <QtSql/QSqlDatabase>
55 virtual bool Open(
const char* password);
80 void SetColumnsTable(
const char* table);
93 vtkGetStringMacro(DatabaseType);
94 vtkSetStringMacro(DatabaseType);
99 vtkSetStringMacro(HostName);
100 vtkGetStringMacro(HostName);
105 vtkSetStringMacro(UserName);
106 vtkGetStringMacro(UserName);
111 vtkSetStringMacro(DatabaseName);
112 vtkGetStringMacro(DatabaseName);
117 vtkSetStringMacro(ConnectOptions);
118 vtkGetStringMacro(ConnectOptions);
124 vtkGetMacro(Port,
int);
145 char* ConnectOptions;
147 QSqlDatabase QtDatabase;
175 #endif // (QT_EDITION & QT_MODULE_SQL)
176 #endif // vtkQtSQLDatabase_h
Wrapper around std::string to keep symbols short.
static vtkSQLDatabase * CreateFromURL(const char *URL)
virtual bool IsSupported(int vtkNotUsed(feature))
void PrintSelf(ostream &os, vtkIndent indent)
virtual bool Open(const char *password)=0
virtual bool ParseURL(const char *url)=0
virtual bool HasError()=0
a vtkAbstractArray subclass for strings
virtual vtkStdString GetURL()=0
virtual vtkStringArray * GetRecord(const char *table)=0
maintain a connection to an sql database
query class associated with vtkQtSQLDatabase
a simple class to control print indentation
virtual vtkSQLQuery * GetQueryInstance()=0
virtual const char * GetLastErrorText()=0
executes an sql query and retrieves results
virtual vtkStringArray * GetTables()=0
maintains a connection to an sql database