File indexing completed on 2025-04-09 08:28:00
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_MYSQL_DETAIL_ENGINE_HPP
0009 #define BOOST_MYSQL_DETAIL_ENGINE_HPP
0010
0011 #include <boost/mysql/detail/any_resumable_ref.hpp>
0012
0013 #include <boost/asio/any_completion_handler.hpp>
0014 #include <boost/asio/any_io_executor.hpp>
0015
0016 namespace boost {
0017 namespace mysql {
0018 namespace detail {
0019
0020 class engine
0021 {
0022 public:
0023 using executor_type = asio::any_io_executor;
0024
0025 virtual ~engine() {}
0026 virtual executor_type get_executor() = 0;
0027 virtual bool supports_ssl() const = 0;
0028 virtual void set_endpoint(const void* endpoint) = 0;
0029 virtual void run(any_resumable_ref resumable, error_code& err) = 0;
0030 virtual void async_run(any_resumable_ref resumable, asio::any_completion_handler<void(error_code)>) = 0;
0031 };
0032
0033 }
0034 }
0035 }
0036
0037 #endif