TreeFrogFramework  1.18
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
TSqlDatabase Class Reference

#include <tsqldatabase.h>

Public Types

enum  DbmsType {
  UnknownDbms, MSSqlServer, MySqlServer, PostgreSQL,
  Oracle, Sybase, SQLite, Interbase,
  DB2
}
 

Public Member Functions

 TSqlDatabase (const QSqlDatabase &database=QSqlDatabase())
 
 TSqlDatabase (const TSqlDatabase &other)
 
 ~TSqlDatabase ()
 
TSqlDatabaseoperator= (const TSqlDatabase &other)
 
DbmsType dbmsType () const
 
bool isValid () const
 
QString connectionName () const
 
const QSqlDatabase & sqlDatabase () const
 
QSqlDatabase & sqlDatabase ()
 
QStringList postOpenStatements () const
 
void setPostOpenStatements (const QStringList &statements)
 
bool isUpsertEnabled () const
 
void setUpsertEnabled (bool enable)
 
bool isUpsertSupported () const
 
const TSqlDriverExtensiondriverExtension () const
 
void setDriverExtension (TSqlDriverExtension *extension)
 

Static Public Member Functions

static const TSqlDatabasedatabase (const QString &connectionName=QLatin1String(defaultConnection))
 
static TSqlDatabaseaddDatabase (const QString &driver, const QString &connectionName=QLatin1String(defaultConnection))
 
static void removeDatabase (const QString &connectionName=QLatin1String(defaultConnection))
 
static bool contains (const QString &connectionName=QLatin1String(defaultConnection))
 

Static Public Attributes

static const char *const defaultConnection
 

Member Enumeration Documentation

Enumerator
UnknownDbms 
MSSqlServer 
MySqlServer 
PostgreSQL 
Oracle 
Sybase 
SQLite 
Interbase 
DB2 

Constructor & Destructor Documentation

TSqlDatabase::TSqlDatabase ( const QSqlDatabase &  database = QSqlDatabase())
inlineexplicit
TSqlDatabase::TSqlDatabase ( const TSqlDatabase other)
inline
TSqlDatabase::~TSqlDatabase ( )
inline

Member Function Documentation

TSqlDatabase & TSqlDatabase::addDatabase ( const QString &  driver,
const QString &  connectionName = QLatin1String(defaultConnection) 
)
static
QString TSqlDatabase::connectionName ( ) const
inline
bool TSqlDatabase::contains ( const QString &  connectionName = QLatin1String(defaultConnection))
static
const TSqlDatabase & TSqlDatabase::database ( const QString &  connectionName = QLatin1String(defaultConnection))
static
TSqlDatabase::DbmsType TSqlDatabase::dbmsType ( ) const
const TSqlDriverExtension* TSqlDatabase::driverExtension ( ) const
inline
bool TSqlDatabase::isUpsertEnabled ( ) const
inline
bool TSqlDatabase::isUpsertSupported ( ) const
bool TSqlDatabase::isValid ( ) const
inline
TSqlDatabase & TSqlDatabase::operator= ( const TSqlDatabase other)
inline
QStringList TSqlDatabase::postOpenStatements ( ) const
inline
void TSqlDatabase::removeDatabase ( const QString &  connectionName = QLatin1String(defaultConnection))
static
void TSqlDatabase::setDriverExtension ( TSqlDriverExtension extension)
void TSqlDatabase::setPostOpenStatements ( const QStringList &  statements)
inline
void TSqlDatabase::setUpsertEnabled ( bool  enable)
inline
const QSqlDatabase& TSqlDatabase::sqlDatabase ( ) const
inline
QSqlDatabase& TSqlDatabase::sqlDatabase ( )
inline

Member Data Documentation

const char* const TSqlDatabase::defaultConnection
static

The documentation for this class was generated from the following files: