chenluhua1980
2026-01-09 6c373f004d79b28c735bbee2bd391bd412270535
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MYSQL_DATABASE_H
#define MYSQL_DATABASE_H
 
#include "Database.h"
#include <string>
#include <vector>
 
namespace BL {
    class DLL_API MySQLDatabase : public Database {
    public:
        MySQLDatabase();
        virtual ~MySQLDatabase() 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 // MYSQL_DATABASE_H