DBInterface.h 568 B

1234567891011121314151617181920
  1. #ifndef __DBINTREFACE_20150930__
  2. #define __DBINTREFACE_20150930__
  3. interface DBInterface
  4. {
  5. public:
  6. virtual BOOL ConnectToDataBase( IN LPCTSTR lpConnString = NULL ) = 0;
  7. virtual void DisConnectDataBase() = 0;
  8. virtual BOOL ExecuteSQL( IN LPCTSTR lpSQL ) = 0;
  9. virtual INT GetTblRecordCount(IN LPCTSTR lpTblName, IN LPCTSTR lpFilters) = 0;
  10. public:
  11. // Get table from db;
  12. virtual BOOL GetVersionInfo( OUT LPVOID lpVerInfo ) = 0;
  13. virtual BOOL GetNetShareInfo( OUT LPVOID lpNetShareInfo ) = 0;
  14. //virtual BOOL IncrementalBackup( OUT LPVOID lpBackup ) = 0;
  15. };
  16. #endif