Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-02 08:19:42

0001 //
0002 // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_MYSQL_DETAIL_COLDEF_VIEW_HPP
0009 #define BOOST_MYSQL_DETAIL_COLDEF_VIEW_HPP
0010 
0011 #include <boost/mysql/column_type.hpp>
0012 #include <boost/mysql/string_view.hpp>
0013 
0014 #include <cstdint>
0015 
0016 namespace boost {
0017 namespace mysql {
0018 namespace detail {
0019 
0020 struct coldef_view
0021 {
0022     string_view database;
0023     string_view table;
0024     string_view org_table;
0025     string_view name;
0026     string_view org_name;
0027     std::uint16_t collation_id;
0028     std::uint32_t column_length;  // maximum length of the field
0029     column_type type;
0030     std::uint16_t flags;
0031     std::uint8_t decimals;  // max shown decimal digits. 0x00 for int/static strings; 0x1f for
0032                             // dynamic strings, double, float
0033 };
0034 
0035 }  // namespace detail
0036 }  // namespace mysql
0037 }  // namespace boost
0038 
0039 #endif