2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-15 01:02:17 +00:00

Added first version of query (text protocol)

Added deserialize_text_row
Added deserialize_text_value
Added execute_query
Added fetch_text_row
Added resultset
Added connection::query
This commit is contained in:
ruben
2019-11-08 20:31:31 +00:00
parent ddfa446d6e
commit 0cf0be1005
19 changed files with 671 additions and 314 deletions

33
test/handshake.cpp Normal file
View File

@@ -0,0 +1,33 @@
/*
* handshake.cpp
*
* Created on: Oct 27, 2019
* Author: ruben
*/
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "mysql/impl/handshake.hpp"
using namespace testing;
using namespace mysql;
using namespace detail;
namespace
{
class MockChannel
{
public:
MOCK_METHOD2(read_impl, void(std::vector<std::uint8_t>&, error_code&));
MOCK_METHOD2(write, void(boost::asio::const_buffer, error_code&));
template <typename Allocator>
void read(bytestring<Allocator>& buffer, error_code& errc)
{
read_impl(buffer, errc);
}
};
}