Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cSQLConfigDB Class Reference

#include <cSQLConfig.h>

Inheritance diagram for GrayLib::cSQLConfigDB:
GrayLib::cSQLConfigCmd

Public Member Functions

 cSQLConfigDB ()
 
void Clear ()
 
cStringA get_DatabaseName () const
 
cStringA get_DataSourceName () const
 
bool get_SupportsTransactions () const
 
bool get_AutoCommit () const
 
void put_AutoCommit (bool bAutoCommit)
 
- Public Member Functions inherited from GrayLib::cSQLConfigCmd
 cSQLConfigCmd (UINT uCmdFlags=CMDFLG_MSSQL)
 
bool isConvertEscapes () const noexcept
 
bool isUseLIMITCommand () const noexcept
 
bool isDateWrap () const noexcept
 
cStringA GetSQLTypeName (const cSQLColumnInfo &f) const
 
bool ConvertEscapeQuotes (cStringA &a_cs) const
 

Public Attributes

bool m_bPopulated
 Have we tested the db/connection for capabilities ? More...
 
bool m_bAutoCommit
 
bool m_bSupportsTransactions
 We can do a Rollback? More...
 
cStringA m_sDatabaseName
 SQL_DATABASE_NAME - Database = reset at each m_bIsConnected. More...
 
cStringA m_sDataSourceName
 SQL_DATA_SOURCE_NAME - DSN = reset at each m_bIsConnected. parsed from m_ConnectionString. More...
 
- Public Attributes inherited from GrayLib::cSQLConfigCmd
UINT m_uCmdFlags
 These flags effect how a command might be built. options supported (or not) by drivers. More...
 

Additional Inherited Members

- Public Types inherited from GrayLib::cSQLConfigCmd
enum  CMDFLG_TYPE { CMDFLG_MSSQL = 0 , CMDFLG_MySQL = 0x08 , CMDFLG_DateWrap = 0x10 }
 

Constructor & Destructor Documentation

◆ cSQLConfigDB()

GrayLib::cSQLConfigDB::cSQLConfigDB ( )
inline

Member Function Documentation

◆ Clear()

void GrayLib::cSQLConfigDB::Clear ( )
inline

◆ get_AutoCommit()

bool GrayLib::cSQLConfigDB::get_AutoCommit ( ) const
inline

auto SQL_COMMIT after Execute?

◆ get_DatabaseName()

cStringA GrayLib::cSQLConfigDB::get_DatabaseName ( ) const
inline

Get the name of the database driver type. SQL_DBMS_NAME = "Microsoft SQL Server" NOT the same as SQL_DATA_SOURCE_NAME

◆ get_DataSourceName()

cStringA GrayLib::cSQLConfigDB::get_DataSourceName ( ) const
inline

Get the name of the windows DSN= entry. SQL_DATA_SOURCE_NAME = m_sDataSourceName Empty if not using DSN (i.e. using ODBC string)

◆ get_SupportsTransactions()

bool GrayLib::cSQLConfigDB::get_SupportsTransactions ( ) const
inline

Does it support transactions ? CanTransact() supports ROLLBACK and COMMIT? Multiple statements before using the SQL_COMMIT ?

◆ put_AutoCommit()

void GrayLib::cSQLConfigDB::put_AutoCommit ( bool  bAutoCommit)
inline

auto SQL_COMMIT after Execute else we need to call EndTransaction(true) manually

Member Data Documentation

◆ m_bAutoCommit

bool GrayLib::cSQLConfigDB::m_bAutoCommit

◆ m_bPopulated

bool GrayLib::cSQLConfigDB::m_bPopulated

Have we tested the db/connection for capabilities ?

◆ m_bSupportsTransactions

bool GrayLib::cSQLConfigDB::m_bSupportsTransactions

We can do a Rollback?

◆ m_sDatabaseName

cStringA GrayLib::cSQLConfigDB::m_sDatabaseName

SQL_DATABASE_NAME - Database = reset at each m_bIsConnected.

◆ m_sDataSourceName

cStringA GrayLib::cSQLConfigDB::m_sDataSourceName

SQL_DATA_SOURCE_NAME - DSN = reset at each m_bIsConnected. parsed from m_ConnectionString.


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