58 #ifndef vtkSQLDatabase_h
59 #define vtkSQLDatabase_h
74 #define VTK_SQL_FEATURE_TRANSACTIONS 1000
75 #define VTK_SQL_FEATURE_QUERY_SIZE 1001
76 #define VTK_SQL_FEATURE_BLOB 1002
77 #define VTK_SQL_FEATURE_UNICODE 1003
78 #define VTK_SQL_FEATURE_PREPARED_QUERIES 1004
79 #define VTK_SQL_FEATURE_NAMED_PLACEHOLDERS 1005
80 #define VTK_SQL_FEATURE_POSITIONAL_PLACEHOLDERS 1006
81 #define VTK_SQL_FEATURE_LAST_INSERT_ID 1007
82 #define VTK_SQL_FEATURE_BATCH_OPERATIONS 1008
83 #define VTK_SQL_FEATURE_TRIGGERS 1009 // supported
87 #define VTK_SQL_DEFAULT_COLUMN_SIZE 32
100 virtual bool Open(
const char* password) = 0;
103 virtual void Close() = 0;
106 virtual bool IsOpen() = 0;
112 virtual bool HasError() = 0;
118 virtual const char* GetLastErrorText() = 0;
121 virtual char* GetDatabaseType() = 0;
130 virtual bool IsSupported(
int vtkNotUsed(feature)) {
return false; }
203 static void RegisterCreateFromURLCallback(CreateFunction callback);
204 static void UnRegisterCreateFromURLCallback(CreateFunction callback);
205 static void UnRegisterAllCreateFromURLCallbacks();
226 virtual bool ParseURL(
const char*
url ) = 0;
234 class vtkCallbackVector;
235 static vtkCallbackVector* Callbacks;
240 #endif // vtkSQLDatabase_h
Wrapper around std::string to keep symbols short.
abstract base class for most VTK objects
virtual bool IsSupported(int vtkNotUsed(feature))
a vtkAbstractArray subclass for strings
represent an SQL database schema
virtual vtkStdString GetTablePreamble(bool)
maintain a connection to an sql database
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
executes an sql query and retrieves results