2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-01-21 17:12:14 +00:00
Files
mysql/test/unit/include/test_unit/create_row_message.hpp
Anarthal (Rubén Pérez) 793b678287 Updated file copyrights to 2025
2025-02-11 20:42:41 +01:00

37 lines
1017 B
C++

//
// Copyright (c) 2019-2025 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_UNIT_INCLUDE_TEST_UNIT_CREATE_ROW_MESSAGE_HPP
#define BOOST_MYSQL_TEST_UNIT_INCLUDE_TEST_UNIT_CREATE_ROW_MESSAGE_HPP
#include "test_common/create_basic.hpp"
#include "test_unit/create_frame.hpp"
namespace boost {
namespace mysql {
namespace test {
std::vector<std::uint8_t> serialize_text_row_impl(span<const field_view> fields);
template <class... Args>
std::vector<std::uint8_t> create_text_row_body(const Args&... args)
{
return serialize_text_row_impl(make_fv_arr(args...));
}
template <class... Args>
std::vector<std::uint8_t> create_text_row_message(std::uint8_t seqnum, const Args&... args)
{
return create_frame(seqnum, create_text_row_body(args...));
}
} // namespace test
} // namespace mysql
} // namespace boost
#endif