2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-15 13:12:21 +00:00
Files
mysql/test/integration/utils/include/er_network_variant.hpp
Ruben Perez 86e0eacd6a SSL/TLS and row reading rework (v0.2.0)
* SSL/TLS rework
* Unified connection object
* New prepared_statement::execute interface
* New resultset::read_one mechanic
* Unified row object
* null_t type
* Travis to GitHub actions migration
* Integration test rework
2022-03-21 16:09:48 +01:00

41 lines
1.1 KiB
C++

//
// Copyright (c) 2019-2022 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_INTEGRATION_UTILS_INCLUDE_ER_NETWORK_VARIANT_HPP
#define BOOST_MYSQL_TEST_INTEGRATION_UTILS_INCLUDE_ER_NETWORK_VARIANT_HPP
#include "er_connection.hpp"
#include <boost/asio/ssl/context.hpp>
#include <functional>
#include <boost/asio/io_context.hpp>
namespace boost {
namespace mysql {
namespace test {
class er_network_variant
{
public:
virtual ~er_network_variant() {}
virtual bool supports_ssl() const = 0;
virtual const char* stream_name() const = 0;
virtual const char* variant_name() const = 0;
virtual er_connection_ptr create(boost::asio::io_context::executor_type, boost::asio::ssl::context&) = 0;
};
const std::vector<er_network_variant*>& all_variants();
const std::vector<er_network_variant*>& ssl_variants();
const std::vector<er_network_variant*>& non_ssl_variants();
er_network_variant* tcp_sync_errc_variant();
} // test
} // mysql
} // boost
#endif