metadata_mode.hpp 894 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // Copyright (c) 2019-2025 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_METADATA_MODE_HPP
  8. #define BOOST_MYSQL_METADATA_MODE_HPP
  9. namespace boost {
  10. namespace mysql {
  11. /// Describes how to handle metadata when running a query or statement.
  12. enum class metadata_mode
  13. {
  14. /**
  15. * \brief Retain the minimum metadata possible to be able to execute the operation.
  16. * This is the most efficient mode, but will leave some fields in the \ref metadata
  17. * class empty.
  18. */
  19. minimal,
  20. /**
  21. * \brief Retain as much metadata as possible. All the fields in \ref metadata are usable,
  22. * but causes more allocations.
  23. */
  24. full
  25. };
  26. } // namespace mysql
  27. } // namespace boost
  28. #endif