mysql/test/common/test_channel.hpp
Ruben Perez ed007e31ae Multi-resultset
Added support for running stored procedures that SELECT data
Added support for running multiple semicolon-separated queries
Added support for running stored procedures with OUT params
Added resultset and resultset_view
Fixed documentation typos and wording
Refactored object creation in tests

Close #133
Close #132
Close #8
2023-03-31 00:44:46 +02:00

33 lines
792 B
C++

//
// Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_MYSQL_TEST_COMMON_TEST_CHANNEL_HPP
#define BOOST_MYSQL_TEST_COMMON_TEST_CHANNEL_HPP
#include <boost/mysql/detail/channel/channel.hpp>
#include <cstddef>
#include "test_stream.hpp"
namespace boost {
namespace mysql {
namespace test {
using test_channel = detail::channel<test_stream>;
inline test_channel create_channel(std::vector<std::uint8_t> messages = {}, std::size_t buffer_size = 1024)
{
return test_channel(buffer_size, std::move(messages));
}
} // namespace test
} // namespace mysql
} // namespace boost
#endif