Go to the documentation of this file.
52 #ifndef vtkSQLiteDatabase_h
53 #define vtkSQLiteDatabase_h
55 #include "vtkIOSQLModule.h"
90 bool Open(
const char* password)
override;
140 return this->DatabaseType;
148 vtkGetStringMacro(DatabaseFileName);
149 vtkSetStringMacro(DatabaseFileName);
165 int colHandle )
override;
183 vtkSetStringMacro(DatabaseType);
188 char* DatabaseFileName;
196 #endif // vtkSQLiteDatabase_h
bool ParseURL(const char *url) override
Overridden to determine connection parameters given the URL.
bool HasError() override
Did the last operation generate an error.
bool IsOpen() override
Return whether the database has an open connection.
const char * GetLastErrorText() override
Get the last error text from the database.
bool IsSupported(int feature) override
Return whether a feature is supported by the database.
void Close() override
Close the connection to the database.
static vtkSQLiteDatabase * New()
bool Open(const char *password, int mode)
bool Open(const char *password) override
Open a new connection to the database.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
maintain a connection to an SQLite database
a simple class to control print indentation
vtkStdString GetColumnSpecification(vtkSQLDatabaseSchema *schema, int tblHandle, int colHandle) override
Return the SQL string with the syntax to create a column inside a "CREATE TABLE" SQL statement.
friend class vtkSQLiteDatabase
vtkStdString GetURL() override
Get the URL of the database.
vtkStringArray * GetTables() override
Get the list of tables from the database.
represent an SQL database schema
const char * GetDatabaseType() override
String representing database type (e.g.
a vtkAbstractArray subclass for strings
~vtkSQLiteDatabase() override
vtkSQLQuery * GetQueryInstance() override
Return an empty query on this database.
Wrapper around std::string to keep symbols short.
vtkStringArray * GetRecord(const char *table) override
Get the list of fields for a particular table.
executes an sql query and retrieves results
maintain a connection to an sql database
vtkSQLQuery implementation for SQLite databases