statement.hpp 774 B

12345678910111213141516171819202122232425262728
  1. //
  2. // Copyright (c) 2019-2023 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_IMPL_STATEMENT_HPP
  8. #define BOOST_MYSQL_IMPL_STATEMENT_HPP
  9. #pragma once
  10. #include <boost/mysql/statement.hpp>
  11. #include <boost/mysql/detail/auxiliar/access_fwd.hpp>
  12. #include <boost/mysql/detail/protocol/prepared_statement_messages.hpp>
  13. struct boost::mysql::detail::statement_access
  14. {
  15. static void reset(statement& stmt, const detail::com_stmt_prepare_ok_packet& msg) noexcept
  16. {
  17. stmt.valid_ = true;
  18. stmt.id_ = msg.statement_id;
  19. stmt.num_params_ = msg.num_params;
  20. }
  21. };
  22. #endif