coldef_view.hpp 990 B

12345678910111213141516171819202122232425262728293031323334353637
  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 BHO_MYSQL_DETAIL_COLDEF_VIEW_HPP
  8. #define BHO_MYSQL_DETAIL_COLDEF_VIEW_HPP
  9. #include <asio2/bho/mysql/column_type.hpp>
  10. #include <asio2/bho/mysql/string_view.hpp>
  11. namespace bho {
  12. namespace mysql {
  13. namespace detail {
  14. struct coldef_view
  15. {
  16. string_view database;
  17. string_view table;
  18. string_view org_table;
  19. string_view name;
  20. string_view org_name;
  21. std::uint16_t collation_id;
  22. std::uint32_t column_length; // maximum length of the field
  23. column_type type;
  24. std::uint16_t flags;
  25. std::uint8_t decimals; // max shown decimal digits. 0x00 for int/static strings; 0x1f for
  26. // dynamic strings, double, float
  27. };
  28. } // namespace detail
  29. } // namespace mysql
  30. } // namespace bho
  31. #endif