EasyQtSql
Easy SQL data access helper for QtSql
SqlFactory::DBSetting Struct Reference

#include <EasyQtSql_SqlFactory.h>

Public Types

typedef QPair< QString, QString > KeywordValuePair
 
typedef QVector< KeywordValuePairConnParameters
 

Public Member Functions

 DBSetting ()
 
 DBSetting (const QString &type, const QString &connectionString)
 
 DBSetting (const QString &type, const ConnParameters &params)
 
 DBSetting (const QString &type, const QString &host, int port, const QString &username, const QString &password, const QString &dbname)
 
QString getType () const
 

Static Public Member Functions

static DBSetting sqliteMemory ()
 
static DBSetting sqlite (const QString &fileName)
 
static DBSetting msSqlServerODBC (const QString &server, const QString &database, const QString &userID, const QString &password, const ConnParameters &extraParams=ConnParameters())
 
static DBSetting msSqlServerODBC (const QString &server, const QString &database, const ConnParameters &extraParams=ConnParameters())
 
static DBSetting msSqlServerNativeClient90ODBC (const QString &server, const QString &database, const QString &userID, const QString &password, const ConnParameters &extraParams=ConnParameters())
 
static DBSetting msSqlServerNativeClient90ODBC (const QString &server, const QString &database, const ConnParameters &extraParams=ConnParameters())
 

Friends

class ThreadDBPool
 

Member Typedef Documentation

◆ ConnParameters

◆ KeywordValuePair

typedef QPair<QString, QString> SqlFactory::DBSetting::KeywordValuePair

Constructor & Destructor Documentation

◆ DBSetting() [1/4]

SqlFactory::DBSetting::DBSetting ( )
inline

◆ DBSetting() [2/4]

SqlFactory::DBSetting::DBSetting ( const QString &  type,
const QString &  connectionString 
)
inline

◆ DBSetting() [3/4]

SqlFactory::DBSetting::DBSetting ( const QString &  type,
const ConnParameters params 
)
inline

◆ DBSetting() [4/4]

SqlFactory::DBSetting::DBSetting ( const QString &  type,
const QString &  host,
int  port,
const QString &  username,
const QString &  password,
const QString &  dbname 
)
inline

Member Function Documentation

◆ getType()

QString SqlFactory::DBSetting::getType ( ) const
inline

◆ msSqlServerNativeClient90ODBC() [1/2]

static DBSetting SqlFactory::DBSetting::msSqlServerNativeClient90ODBC ( const QString &  server,
const QString &  database,
const QString &  userID,
const QString &  password,
const ConnParameters extraParams = ConnParameters() 
)
inlinestatic

◆ msSqlServerNativeClient90ODBC() [2/2]

static DBSetting SqlFactory::DBSetting::msSqlServerNativeClient90ODBC ( const QString &  server,
const QString &  database,
const ConnParameters extraParams = ConnParameters() 
)
inlinestatic

◆ msSqlServerODBC() [1/2]

static DBSetting SqlFactory::DBSetting::msSqlServerODBC ( const QString &  server,
const QString &  database,
const QString &  userID,
const QString &  password,
const ConnParameters extraParams = ConnParameters() 
)
inlinestatic

◆ msSqlServerODBC() [2/2]

static DBSetting SqlFactory::DBSetting::msSqlServerODBC ( const QString &  server,
const QString &  database,
const ConnParameters extraParams = ConnParameters() 
)
inlinestatic

◆ sqlite()

static DBSetting SqlFactory::DBSetting::sqlite ( const QString &  fileName)
inlinestatic

◆ sqliteMemory()

static DBSetting SqlFactory::DBSetting::sqliteMemory ( )
inlinestatic

Friends And Related Function Documentation

◆ ThreadDBPool

friend class ThreadDBPool
friend

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