68 lines
1.9 KiB
C++
68 lines
1.9 KiB
C++
// GZRsetPool.h: interface for the CGZRsetPool class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_GZRSETPOOL_H__CDF9C9E1_CCEA_11D4_964F_00C0F02C4B69__INCLUDED_)
|
|
#define AFX_GZRSETPOOL_H__CDF9C9E1_CCEA_11D4_964F_00C0F02C4B69__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
#include "gzrset.h"
|
|
#include <afxcoll.h>
|
|
|
|
class CGZRsetPool
|
|
{
|
|
public:
|
|
void SupressErrors(bool bNoErrors);
|
|
//Added 08/03/2001 to hide errors on update
|
|
bool m_bSupressErrors;
|
|
void GetDBProps();
|
|
CString m_strADOVersion;
|
|
CString m_strDBMSName;
|
|
CString m_strDBMSVersion;
|
|
CString m_strOLEDbVersion;
|
|
CString m_strProviderName;
|
|
CString m_strProviderVersion;
|
|
CString m_strDriverVersion;
|
|
CString m_strDriverName;
|
|
CString m_strDriverODBCVersion;
|
|
|
|
bool m_bSQLServer;
|
|
bool Compact(bool bKeepOld);
|
|
bool CopyFile(char *src, char *dest);
|
|
void DisplayProperties();
|
|
void Disconnect();
|
|
CString cstrErrMsg;
|
|
bool GoShared();
|
|
bool GoExclusive();
|
|
|
|
_ConnectionPtr pConnection;
|
|
void StartConnection();
|
|
void ShowAllOpenRS();
|
|
GZRset* rsGENERIC;
|
|
bool InitializeNewRS(GZRset* rs, bool bPrint);
|
|
CString m_strCloseQuery;
|
|
CString m_strDeadConnectString;
|
|
CString m_strLiveConnectStringExclusive;
|
|
CString m_strLiveConnectString;
|
|
CString strConnectString;
|
|
CString m_strDBPATH;
|
|
int GetFreeRecordsetID(bool bPrint);
|
|
int m_nTotalAllocated;
|
|
GZRset* GetRS(CString strCallerInfo);
|
|
GZRset* GetRSPrint(CString strCallerInfo);
|
|
|
|
void Empty();
|
|
bool ReleaseRS(int* nRSID);
|
|
|
|
virtual ~CGZRsetPool();
|
|
|
|
CGZRsetPool();
|
|
CObArray pool;
|
|
// if true will force all updates within transactions which ensures immediate write out as were not so much concerned with data integrity here but immediacy
|
|
bool m_bUseTransactions;
|
|
};
|
|
|
|
#endif // !defined(AFX_GZRSETPOOL_H__CDF9C9E1_CCEA_11D4_964F_00C0F02C4B69__INCLUDED_)
|