31 #include <QSqlDatabase> 94 Database(
const QString &connName,
const QString &driverType);
116 static void remove(
const QString &name);
125 const QString &driverType =
"");
129 static QString _actualConnectionName;
134 void tossDbError(
const QString &message,
const char *f,
int l)
const;
bool isPersistant() const
Checks persistancy state of a database instantiation.
Do not connect to database.
Connect to database immediately.
Database clone(const QString &name) const
Clones this database into another giving it another name.
A DbProfile is a container for access parameters to a database.
static DbProfile getProfile(const QString &name)
Retrieves the named database access profile.
void setAsDefault()
Sets this database connection/profile as the default.
Access
Access status for database creation.
QSqlDatabase init(const DbProfile &profile, Access dbConn=Connect)
Create and initialize a new database connection from a DbProfile.
QStringList getViews() const
Returns a vector string containing all views within the database.
QString _name
Needed due to peculiar issues with Database construction techniques.
QStringList getSystemTables() const
Returns vector strings of all available system tables in the database.
QString Name() const
Return the name of this database as specifed upon creation.
virtual ~Database()
Database destructor.
QStringList getTables() const
Returns a vector string containing all the tables in the database.
Isis database class providing generalized access to a variety of databases.
void configureAccess(QSqlDatabase &db, const DbProfile &profile)
Set access parameters from a database DbProfile access specification.
void tossDbError(const QString &message, const char *f, int l) const
Generic exception tosser.
void makePersistant()
Makes this instance persistant.
Namespace for ISIS/Bullet specific routines.
static bool addAccessConfig(const QString &confFile)
Adds a user specifed access configuration file to system.
Database()
Default database constructor.