EasyQtSql
Easy SQL data access helper for QtSql
SqlFactory Class Reference

#include <EasyQtSql_SqlFactory.h>

Classes

struct  DBSetting
 
class  ThreadDBPool
 

Public Member Functions

SqlFactoryconfig (const DBSetting &settings, const QString &connectionName=QSqlDatabase::defaultConnection)
 
SqlFactoryclone (const QString &newConnectionName, const QString &connectionName)
 
QSqlDatabase getDatabase (const QString &connectionName=QSqlDatabase::defaultConnection)
 

Static Public Member Functions

static SqlFactorygetInstance ()
 

Member Function Documentation

◆ clone()

SqlFactory* SqlFactory::clone ( const QString &  newConnectionName,
const QString &  connectionName 
)
inline

◆ config()

SqlFactory* SqlFactory::config ( const DBSetting settings,
const QString &  connectionName = QSqlDatabase::defaultConnection 
)
inline

◆ getDatabase()

QSqlDatabase SqlFactory::getDatabase ( const QString &  connectionName = QSqlDatabase::defaultConnection)
inline

◆ getInstance()

static SqlFactory* SqlFactory::getInstance ( )
inlinestatic

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