Go to the documentation of this file.
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;
234 class vtkCallbackVector;
235 static vtkCallbackVector* Callbacks;
240 #endif // vtkSQLDatabase_h
virtual vtkStringArray * GetRecord(const char *table)=0
virtual bool IsSupported(int vtkNotUsed(feature))
virtual bool HasError()=0
static vtkSQLDatabase * CreateFromURL(const char *URL)
static void UnRegisterAllCreateFromURLCallbacks()
static void RegisterCreateFromURLCallback(CreateFunction callback)
virtual char * GetDatabaseType()=0
#define vtkTypeMacro(thisClass, superclass)
virtual vtkStdString GetIndexSpecification(vtkSQLDatabaseSchema *schema, int tblHandle, int idxHandle, bool &skipped)
abstract base class for most VTK objects
virtual vtkSQLQuery * GetQueryInstance()=0
GLenum GLsizei GLenum GLenum const GLvoid * table
virtual vtkStdString GetTriggerSpecification(vtkSQLDatabaseSchema *schema, int tblHandle, int trgHandle)
virtual bool Open(const char *password)=0
static void UnRegisterCreateFromURLCallback(CreateFunction callback)
a simple class to control print indentation
static vtkInformationObjectBaseKey * DATABASE()
virtual bool EffectSchema(vtkSQLDatabaseSchema *, bool dropIfExists=false)
virtual vtkStringArray * GetTables()=0
void PrintSelf(ostream &os, vtkIndent indent)
represent an SQL database schema
virtual vtkStdString GetURL()=0
virtual vtkStdString GetColumnSpecification(vtkSQLDatabaseSchema *schema, int tblHandle, int colHandle)
a vtkAbstractArray subclass for strings
virtual bool ParseURL(const char *url)=0
Wrapper around std::string to keep symbols short.
virtual vtkStdString GetTablePreamble(bool)
virtual const char * GetLastErrorText()=0
executes an sql query and retrieves results
maintain a connection to an sql database