Initial commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef MYSQLCLIENT_H
|
||||
#define MYSQLCLIENT_H
|
||||
|
||||
#include "MySQLResultSet.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace MySQL {
|
||||
|
||||
class MySQLClientImpl;
|
||||
|
||||
class MySQLClient
|
||||
{
|
||||
public:
|
||||
MySQLClient();
|
||||
~MySQLClient();
|
||||
|
||||
void Connect(const std::string& hostname, const std::string& username, const std::string& password);
|
||||
void Connect(const std::string& hostname, const std::string& username, const std::string& password, const std::string& database);
|
||||
void Disconnect();
|
||||
|
||||
std::string Database() const;
|
||||
|
||||
void Execute(const std::string& query) const;
|
||||
MySQLResultSet ExecuteQuery(const std::string& query) const;
|
||||
|
||||
private:
|
||||
std::unique_ptr<MySQLClientImpl> m_pMySQLClientImpl;
|
||||
};
|
||||
|
||||
} // namespace MySQL
|
||||
|
||||
#endif // MYSQLCLIENT_H
|
||||
Reference in New Issue
Block a user