52 #ifndef vtkSQLiteDatabase_h 53 #define vtkSQLiteDatabase_h 55 #include "vtkIOSQLModule.h" 90 bool Open(
const char* password) VTK_OVERRIDE;
91 bool Open(
const char* password,
int mode);
97 void Close() VTK_OVERRIDE;
102 bool IsOpen() VTK_OVERRIDE;
122 bool IsSupported(
int feature) VTK_OVERRIDE;
138 const
char* GetDatabaseType() VTK_OVERRIDE
140 return this->DatabaseType;
149 vtkSetStringMacro(DatabaseFileName);
165 int colHandle ) VTK_OVERRIDE;
179 vtk_sqlite3 *SQLiteInstance;
183 vtkSetStringMacro(DatabaseType);
188 char* DatabaseFileName;
196 #endif // vtkSQLiteDatabase_h friend class vtkSQLiteDatabase
Wrapper around std::string to keep symbols short.
virtual vtkStdString GetColumnSpecification(vtkSQLDatabaseSchema *schema, int tblHandle, int colHandle)
Return the SQL string with the syntax to create a column inside a "CREATE TABLE" SQL statement...
virtual bool Open(const char *password)=0
Open a new connection to the database.
virtual bool ParseURL(const char *url)=0
Subclasses should override this method to determine connection parameters given the URL...
maintain a connection to an SQLite database
a vtkAbstractArray subclass for strings
virtual vtkStdString GetURL()=0
Get the URL of the database.
represent an SQL database schema
const char * GetLastErrorText() override
Get the last error text from the query.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
maintain a connection to an sql database
vtkSQLQuery implementation for SQLite databases
virtual void Close()=0
Close the connection to the database.
a simple class to control print indentation
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
bool HasError() override
Return true if there is an error on the current query.
executes an sql query and retrieves results
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...