mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
28 lines
611 B
C++
28 lines
611 B
C++
#ifndef INTERFACE_DATABASE_H
|
|
#define INTERFACE_DATABASE_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <map>
|
|
#include "Query.h"
|
|
|
|
class IDatabase
|
|
{
|
|
public:
|
|
virtual db_nresults ReadN(std::string pQuery)=0;
|
|
virtual db_results Read(std::string pQuery)=0;
|
|
virtual bool Write(std::string pQuery)=0;
|
|
|
|
virtual void BeginTransaction(void)=0;
|
|
virtual bool EndTransaction(void)=0;
|
|
|
|
virtual IQuery* Prepare(std::string pQuery, bool autodestroy=true)=0;
|
|
virtual void destroyQuery(IQuery *q)=0;
|
|
virtual void destroyAllQueries(void)=0;
|
|
|
|
virtual _i64 getLastInsertID(void)=0;
|
|
|
|
};
|
|
|
|
#endif
|