mirror of
https://github.com/boostorg/mysql.git
synced 2026-01-22 17:32:25 +00:00
39 lines
936 B
C++
39 lines
936 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_COMMON_INCLUDE_TEST_COMMON_CREATE_DIAGNOSTICS_HPP
|
|
#define BOOST_MYSQL_TEST_COMMON_INCLUDE_TEST_COMMON_CREATE_DIAGNOSTICS_HPP
|
|
|
|
#include <boost/mysql/diagnostics.hpp>
|
|
#include <boost/mysql/string_view.hpp>
|
|
|
|
#include <boost/mysql/detail/access.hpp>
|
|
|
|
namespace boost {
|
|
namespace mysql {
|
|
namespace test {
|
|
|
|
inline diagnostics create_server_diag(string_view s)
|
|
{
|
|
diagnostics res;
|
|
detail::access::get_impl(res).assign_server(s);
|
|
return res;
|
|
}
|
|
|
|
inline diagnostics create_client_diag(string_view s)
|
|
{
|
|
diagnostics res;
|
|
detail::access::get_impl(res).assign_client(s);
|
|
return res;
|
|
}
|
|
|
|
} // namespace test
|
|
} // namespace mysql
|
|
} // namespace boost
|
|
|
|
#endif
|