46#ifndef vtkSQLiteDatabase_h
47#define vtkSQLiteDatabase_h
49#include "vtkIOSQLModule.h"
85 bool Open(
const char* password)
override;
176 vtkSetStringMacro(DatabaseType);
181 char* DatabaseFileName;
a simple class to control print indentation
represent an SQL database schema
maintain a connection to an sql database
executes an sql query and retrieves results
maintain a connection to an SQLite database
bool Open(const char *password) override
Open a new connection to the database.
bool Open(const char *password, int mode)
Open a new connection to the database.
bool HasError() override
Did the last operation generate an error.
const char * GetDatabaseType() override
String representing database type (e.g.
vtkStringArray * GetTables() override
Get the list of tables from the database.
bool IsOpen() override
Return whether the database has an open connection.
bool ParseURL(const char *url) override
Overridden to determine connection parameters given the URL.
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.
vtkSetFilePathMacro(DatabaseFileName)
String representing the database filename.
vtkStdString GetURL() override
Get the URL of 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.
const char * GetLastErrorText() override
Get the last error text from the database.
vtkGetFilePathMacro(DatabaseFileName)
String representing the database filename.
~vtkSQLiteDatabase() override
static vtkSQLiteDatabase * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSQLQuery * GetQueryInstance() override
Return an empty query on this database.
vtkStringArray * GetRecord(const char *table) override
Get the list of fields for a particular table.
vtkSQLQuery implementation for SQLite databases
friend class vtkSQLiteDatabase
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings