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);
146 vtkSetStringMacro(DatabaseFileName);
176 sqlite3 *SQLiteInstance;
180 vtkSetStringMacro(DatabaseType);
185 char* DatabaseFileName;
193 #endif // vtkSQLiteDatabase_h
bool HasError()
Did the last operation generate an error.
vtkSQLQuery * GetQueryInstance()
Return an empty query on this database.
const char * GetLastErrorText()
Get the last error text from the database.
bool IsSupported(int feature)
Return whether a feature is supported by the database.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool IsOpen()
Return whether the database has an open connection.
virtual bool ParseURL(const char *url)
Overridden to determine connection parameters given the URL.
static vtkSQLiteDatabase * New()
virtual vtkStdString GetURL()
Get the URL of the database.
bool Open(const char *password, int mode)
bool Open(const char *password)
Open a new connection to the database.
maintain a connection to an SQLite database
a simple class to control print indentation
friend class vtkSQLiteDatabase
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void Close()
Close the connection to the database.
vtkStringArray * GetTables()
Get the list of tables from the database.
represent an SQL database schema
vtkStringArray * GetRecord(const char *table)
Get the list of fields for a particular table.
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.
a vtkAbstractArray subclass for strings
Wrapper around std::string to keep symbols short.
executes an sql query and retrieves results
maintain a connection to an sql database
vtkSQLQuery implementation for SQLite databases