unix.hpp 696 B

12345678910111213141516171819202122232425262728
  1. //
  2. // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BOOST_MYSQL_UNIX_HPP
  8. #define BOOST_MYSQL_UNIX_HPP
  9. #include <boost/mysql/connection.hpp>
  10. #include <boost/asio/local/stream_protocol.hpp>
  11. namespace boost {
  12. namespace mysql {
  13. #if defined(BOOST_ASIO_HAS_LOCAL_SOCKETS) || defined(BOOST_MYSQL_DOXYGEN)
  14. /// A connection to MySQL over a UNIX domain socket.
  15. using unix_connection = connection<boost::asio::local::stream_protocol::socket>;
  16. #endif
  17. } // namespace mysql
  18. } // namespace boost
  19. #endif