#ifndef SQLITE_DATABASE_H
|
#define SQLITE_DATABASE_H
|
|
#include "Database.h"
|
#include <string>
|
#include <vector>
|
|
namespace BL {
|
class DLL_API SQLiteDatabase : public Database {
|
public:
|
SQLiteDatabase();
|
virtual ~SQLiteDatabase() override;
|
|
bool connect(const std::string& connectionString, bool createIfNotExists = false) override;
|
void disconnect() override;
|
bool executeQuery(const std::string& query) override;
|
std::vector<std::vector<std::string>> fetchResults(const std::string& query) override;
|
|
private:
|
class Impl; // ÉùÃ÷ÄÚ²¿ÊµÏÖÀà
|
Impl* m_impl; // Ö¸ÏòÄÚ²¿ÊµÏÖÀàµÄÖ¸Õë
|
};
|
}
|
|
#endif // SQLITE_DATABASE_H
|