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

#include <GraySQLite.h>

Inheritance diagram for GraySQLite::cSQLiteDriver:
GrayLib::cSQLDriver Gray::cSingleton< cSQLiteDriver > GrayLib::cSQLBase Gray::cRefBase Gray::cSingletonStatic< TYPE > Gray::cSingletonRegister Gray::CObject Gray::cNonCopyable IUnknown Gray::CObject Gray::cHeapObject Gray::IHeapObject

Public Member Functions

 cSQLiteDriver ()
 
virtual ~cSQLiteDriver ()
 
virtual bool AllocISQLDriver () override
 
virtual int TestConnectionStringMatch (const cSQLConnectionString &rConnectionString) override
 
 UNITTEST_FRIEND (cSQLiteDriver)
 
- Public Member Functions inherited from GrayLib::cSQLDriver
 cSQLDriver (const char *pszName)
 
virtual ~cSQLDriver ()
 
const char * get_Name () const noexcept
 
virtual cSQLDriverget_SQLDriver () const override
 What driver ultimately owns this? More...
 
virtual cSQLBaseget_SQLParent () const override
 
ISQLDriverget_ISQLDriver () const
 
bool FreeISQLDriver ()
 
- Public Member Functions inherited from GrayLib::cSQLBase
virtual ~cSQLBase ()
 
HRESULT FillException (cExceptionHolder &exh, cStringA sCommand, const cDebugSourceLine &src) const
 
HRESULT ReturnError1 (cExceptionHolder &exh) const
 
HRESULT ReturnError2 (cStringA sCommand, const cDebugSourceLine &src) const
 
bool isISQLValid () const
 The SQL handle. More...
 
ITERATE_t get_ChildHandleCount () const noexcept
 
- Public Member Functions inherited from Gray::CObject
virtual ~CObject ()
 
virtual bool isValidCheck () const noexcept
 < memory allocation and structure definitions are valid. More...
 
virtual void AssertValid () const
 < memory allocation and structure definitions are valid. More...
 
virtual void Serialize (cArchive &a)
 
- Public Member Functions inherited from Gray::cRefBase
 cRefBase (int iRefCount=0) noexcept
 
virtual ~cRefBase ()
 
int get_RefCount () const noexcept
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept
 
virtual void onFinalRelease ()
 
bool isValidObj () const noexcept
 
 STDMETHOD_ (ULONG, AddRef)(void) override
 
 STDMETHOD_ (ULONG, Release)(void) override
 
STDMETHOD() QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
void IncRefCount ()
 
void DecRefCount ()
 
bool isStaticConstruct () const noexcept
 
void StaticConstruct ()
 
void StaticDestruct ()
 
bool isDestructing () noexcept
 
void SetDestructing ()
 
- Public Member Functions inherited from Gray::cHeapObject
 cHeapObject ()
 
virtual ~cHeapObject ()
 
bool IsValidInsideN (INT_PTR index) const
 
bool IsValidInsidePtr (void const *pTest) const
 
virtual size_t GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const
 
virtual bool isValidCheck () const noexcept
 

Static Public Member Functions

static void GRAYCALL AttachSQLMgr ()
 
static void GRAYCALL DetachSQLMgr ()
 
- Static Public Member Functions inherited from GrayLib::cSQLBase
static const FILECHAR_t *GRAYCALL RemoveDriverIdentification (const FILECHAR_t *pszError)
 
- Static Public Member Functions inherited from Gray::cSingleton< cSQLiteDriver >
static cSQLiteDriver *__stdcall get_Single ()
 
static TYPE2 *__stdcall get_SingleT ()
 
static cSQLiteDriver &__stdcall I ()
 
- Static Public Member Functions inherited from Gray::cSingletonStatic< TYPE >
static bool isSingleCreated () noexcept
 
static TYPEget_SingleU () noexcept
 
static TYPEget_Single ()
 
template<class TYPE2 >
static TYPE2 *__stdcall get_SingleCast ()
 
static TYPEI () noexcept
 
- Static Public Member Functions inherited from Gray::cSingletonRegister
static void __stdcall ReleaseModule (HMODULE hMod)
 

Static Public Attributes

static const char * k_DriverName = "SQLite"
 = "SQLite"; More...
 
static const char * k_Ext = ".sqlite"
 File Extension = .sqlite, .db, etc. NOT ".sdf". More...
 
- Static Public Attributes inherited from Gray::cSingletonRegister
static cThreadLockFast sm_LockSingle
 common lock for all cSingleton. More...
 

Additional Inherited Members

- Public Attributes inherited from GrayLib::cSQLDriver
const char *const m_pszName
 Unique Name for Provider in ConnectionString. More...
 
ITERATE_t m_iTotalHandles
 Total handles open. More...
 
ITERATE_t m_iTotalConnected
 Total cSQLDatabase open connects. More...
 
- Public Attributes inherited from GrayLib::cSQLBase
bool m_bLogOnError
 I want to log message if error. More...
 
- Protected Member Functions inherited from GrayLib::cSQLBase
bool AttachISQL (ISQLBase *pSQL)
 
void FreeISQL ()
 
bool FreeISQLTested ()
 
 cSQLBase ()
 
- Protected Member Functions inherited from Gray::cNonCopyable
 cNonCopyable () noexcept
 Force the use of Factory creation via protected constructor. More...
 
 ~cNonCopyable () noexcept
 
- Protected Member Functions inherited from Gray::cSingleton< cSQLiteDriver >
 cSingleton (cSQLiteDriver *pObject, const TYPEINFO_t &rAddrCode=typeid(cSQLiteDriver)) noexcept
 
virtual ~cSingleton ()
 
- Protected Member Functions inherited from Gray::cSingletonStatic< TYPE >
 cSingletonStatic (TYPE *pObject) noexcept
 
virtual ~cSingletonStatic () noexcept
 
- Protected Member Functions inherited from Gray::cSingletonRegister
 cSingletonRegister (const TYPEINFO_t &rAddrCode) noexcept
 
virtual ~cSingletonRegister ()
 
void RegisterSingleton ()
 
- Protected Member Functions inherited from Gray::cHeapObject
const void * get_HeapPtr () const noexcept override
 Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More...
 
- Protected Attributes inherited from GrayLib::cSQLBase
cIUnkPtr< ISQLBasem_pISQL
 ISQLBase to some SQL implementation object -> a Driver/environment, connection or recordset/statement. More...
 
- Protected Attributes inherited from Gray::cSingletonRegister
HMODULE m_hModuleLoaded
 What modules loaded this ? So singletons can be destroyed if DLL/SO unloads. More...
 
- Static Protected Attributes inherited from Gray::cSingletonStatic< TYPE >
static TYPEsm_pThe = nullptr
 pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More...
 

Constructor & Destructor Documentation

◆ cSQLiteDriver()

GraySQLite::cSQLiteDriver::cSQLiteDriver ( )

◆ ~cSQLiteDriver()

GraySQLite::cSQLiteDriver::~cSQLiteDriver ( )
virtual

Member Function Documentation

◆ AllocISQLDriver()

bool GraySQLite::cSQLiteDriver::AllocISQLDriver ( )
overridevirtual

Implements GrayLib::cSQLDriver.

◆ AttachSQLMgr()

void GRAYCALL GraySQLite::cSQLiteDriver::AttachSQLMgr ( )
static

Add this driver to cSQLMgr

◆ DetachSQLMgr()

void GRAYCALL GraySQLite::cSQLiteDriver::DetachSQLMgr ( )
static

◆ TestConnectionStringMatch()

int GraySQLite::cSQLiteDriver::TestConnectionStringMatch ( const cSQLConnectionString rConnectionString)
overridevirtual

is this connection string a match?

Reimplemented from GrayLib::cSQLDriver.

◆ UNITTEST_FRIEND()

GraySQLite::cSQLiteDriver::UNITTEST_FRIEND ( cSQLiteDriver  )

Member Data Documentation

◆ k_DriverName

const char * GraySQLite::cSQLiteDriver::k_DriverName = "SQLite"
static

= "SQLite";

◆ k_Ext

const char * GraySQLite::cSQLiteDriver::k_Ext = ".sqlite"
static

File Extension = .sqlite, .db, etc. NOT ".sdf".


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