Loading [MathJax]/jax/output/NativeMML/config.js
 |
Isis 3 Programmer Reference
|
15 #include "DbProfile.h"
16 #include "IException.h"
17 #include <QSqlDatabase>
80 Database(
const QString &connName,
const QString &driverType);
102 static void remove(
const QString &name);
111 const QString &driverType =
"");
115 static QString _actualConnectionName;
120 void tossDbError(
const QString &message,
const char *f,
int l)
const;
bool isPersistant() const
Checks persistancy state of a database instantiation.
void tossDbError(const QString &message, const char *f, int l) const
Generic exception tosser.
@ Connect
Connect to database immediately.
static DbProfile getProfile(const QString &name)
Retrieves the named database access profile.
static void remove(const QString &name)
Removes the named database from pool.
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.
static bool addAccessConfig(const QString &confFile)
Adds a user specifed access configuration file to system.
void configureAccess(QSqlDatabase &db, const DbProfile &profile)
Set access parameters from a database DbProfile access specification.
void makePersistant()
Makes this instance persistant.
QString Name() const
Return the name of this database as specifed upon creation.
virtual ~Database()
Database destructor.
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.
@ DoNotConnect
Do not connect to database.
void setAsDefault()
Sets this database connection/profile as the default.
QStringList getSystemTables() const
Returns vector strings of all available system tables in the database.
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.
Access
Access status for database creation.
Database()
Default database constructor.
This is free and unencumbered software released into the public domain.
QString _name
Needed due to peculiar issues with Database construction techniques.