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

#include <cSQLMgr.Tests.h>

Public Member Functions

 cSQLUnitTest (cStringA sTable, bool bCreate)
 
HRESULT TestInsert (cSQLDatabase *pDatabase)
 
HRESULT TestCreate (cSQLDatabase *pDatabase)
 
HRESULT TestSelect (cSQLDatabase *pDatabase, cSQLCmdSelect &oSelect, bool bDump)
 
HRESULT TestSelect1 (cSQLDatabase *pDatabase)
 
bool TestStart (cSQLDatabase *pDatabase)
 
bool TestStart (cStringF sConnectionString, cStringF sDriverName)
 

Public Attributes

cStringA m_sTable
 
bool m_bCreate
 

Static Public Attributes

static const char * k_TableDef = CATOM_STATIC(TestTable1)
 
static const char * k_FieldName = CATOM_STATIC(FieldName)
 
static const char * k_FieldInt = CATOM_STATIC(FieldInt)
 
static const char * k_FieldFloat = CATOM_STATIC(FieldFloat)
 
static const char * k_FieldDateTime = CATOM_STATIC(FieldDateTime)
 
static const char * k_FieldBit = CATOM_STATIC(FieldBit)
 
static const char * k_FieldInt64 = CATOM_STATIC(FieldInt64)
 
static const char * k_FieldDouble = CATOM_STATIC(FieldDouble)
 
static const char * k_FieldBlob = CATOM_STATIC(FieldBlob)
 

Detailed Description

define a table in the database for testing.

Constructor & Destructor Documentation

◆ cSQLUnitTest()

GrayLib::cSQLUnitTest::cSQLUnitTest ( cStringA  sTable,
bool  bCreate 
)
inline

Member Function Documentation

◆ TestCreate()

HRESULT GrayLib::cSQLUnitTest::TestCreate ( cSQLDatabase pDatabase)

◆ TestInsert()

HRESULT GrayLib::cSQLUnitTest::TestInsert ( cSQLDatabase pDatabase)

◆ TestSelect()

HRESULT GrayLib::cSQLUnitTest::TestSelect ( cSQLDatabase pDatabase,
cSQLCmdSelect oSelect,
bool  bDump 
)

◆ TestSelect1()

HRESULT GrayLib::cSQLUnitTest::TestSelect1 ( cSQLDatabase pDatabase)

◆ TestStart() [1/2]

bool GrayLib::cSQLUnitTest::TestStart ( cSQLDatabase pDatabase)

◆ TestStart() [2/2]

bool GrayLib::cSQLUnitTest::TestStart ( cStringF  sConnectionString,
cStringF  sDriverName 
)
Note
test drivers don't exist in 64 bit !?

Member Data Documentation

◆ k_FieldBit

const char * GrayLib::cSQLUnitTest::k_FieldBit = CATOM_STATIC(FieldBit)
static

◆ k_FieldBlob

const char * GrayLib::cSQLUnitTest::k_FieldBlob = CATOM_STATIC(FieldBlob)
static

◆ k_FieldDateTime

const char * GrayLib::cSQLUnitTest::k_FieldDateTime = CATOM_STATIC(FieldDateTime)
static

◆ k_FieldDouble

const char * GrayLib::cSQLUnitTest::k_FieldDouble = CATOM_STATIC(FieldDouble)
static

◆ k_FieldFloat

const char * GrayLib::cSQLUnitTest::k_FieldFloat = CATOM_STATIC(FieldFloat)
static

◆ k_FieldInt

const char * GrayLib::cSQLUnitTest::k_FieldInt = CATOM_STATIC(FieldInt)
static

◆ k_FieldInt64

const char * GrayLib::cSQLUnitTest::k_FieldInt64 = CATOM_STATIC(FieldInt64)
static

◆ k_FieldName

const char * GrayLib::cSQLUnitTest::k_FieldName = CATOM_STATIC(FieldName)
static

◆ k_TableDef

const char * GrayLib::cSQLUnitTest::k_TableDef = CATOM_STATIC(TestTable1)
static

◆ m_bCreate

bool GrayLib::cSQLUnitTest::m_bCreate

◆ m_sTable

cStringA GrayLib::cSQLUnitTest::m_sTable

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