Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:39

0001 //
0002 // Copyright (c) 2019-2023 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_FLAGS_HPP
0009 #define BOOST_MYSQL_DETAIL_FLAGS_HPP
0010 
0011 #include <cstdint>
0012 
0013 namespace boost {
0014 namespace mysql {
0015 namespace detail {
0016 
0017 namespace column_flags {
0018 
0019 constexpr std::uint16_t not_null = 1;             // Field can't be NULL.
0020 constexpr std::uint16_t pri_key = 2;              // Field is part of a primary key.
0021 constexpr std::uint16_t unique_key = 4;           // Field is part of a unique key.
0022 constexpr std::uint16_t multiple_key = 8;         // Field is part of a key.
0023 constexpr std::uint16_t blob = 16;                // Field is a blob.
0024 constexpr std::uint16_t unsigned_ = 32;           // Field is unsigned.
0025 constexpr std::uint16_t zerofill = 64;            // Field is zerofill.
0026 constexpr std::uint16_t binary = 128;             // Field is binary.
0027 constexpr std::uint16_t enum_ = 256;              // field is an enum
0028 constexpr std::uint16_t auto_increment = 512;     // field is a autoincrement field
0029 constexpr std::uint16_t timestamp = 1024;         // Field is a timestamp.
0030 constexpr std::uint16_t set = 2048;               // field is a set
0031 constexpr std::uint16_t no_default_value = 4096;  // Field doesn't have default value.
0032 constexpr std::uint16_t on_update_now = 8192;     // Field is set to NOW on UPDATE.
0033 constexpr std::uint16_t part_key = 16384;         // Intern; Part of some key.
0034 constexpr std::uint16_t num = 32768;              // Field is num (for clients)
0035 
0036 }  // namespace column_flags
0037 
0038 namespace status_flags {
0039 
0040 constexpr std::uint32_t more_results = 8;
0041 constexpr std::uint32_t out_params = 4096;
0042 
0043 }  // namespace status_flags
0044 
0045 }  // namespace detail
0046 }  // namespace mysql
0047 }  // namespace boost
0048 
0049 #endif