metadata_mode.hpp 853 B

123456789101112131415161718192021222324252627282930
  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_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. /// Retain the minimum metadata possible to be able to execute the operation.
  15. /// This is the most efficient mode, but will leave some fields in the \ref metadata
  16. /// class empty.
  17. minimal,
  18. /// Retain as much metadata as possible. All the fields in \ref metadata are usable,
  19. /// but causes more allocations.
  20. full
  21. };
  22. } // namespace mysql
  23. } // namespace boost
  24. #endif