File indexing completed on 2025-01-30 09:48:59
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_MYSQL_IMPL_COLUMN_TYPE_IPP
0009 #define BOOST_MYSQL_IMPL_COLUMN_TYPE_IPP
0010
0011 #pragma once
0012
0013 #include <boost/mysql/column_type.hpp>
0014
0015 #include <ostream>
0016
0017 std::ostream& boost::mysql::operator<<(std::ostream& os, column_type t)
0018 {
0019 switch (t)
0020 {
0021 case column_type::tinyint: return os << "tinyint";
0022 case column_type::smallint: return os << "smallint";
0023 case column_type::mediumint: return os << "mediumint";
0024 case column_type::int_: return os << "int_";
0025 case column_type::bigint: return os << "bigint";
0026 case column_type::float_: return os << "float_";
0027 case column_type::double_: return os << "double_";
0028 case column_type::decimal: return os << "decimal";
0029 case column_type::bit: return os << "bit";
0030 case column_type::year: return os << "year";
0031 case column_type::time: return os << "time";
0032 case column_type::date: return os << "date";
0033 case column_type::datetime: return os << "datetime";
0034 case column_type::timestamp: return os << "timestamp";
0035 case column_type::char_: return os << "char_";
0036 case column_type::varchar: return os << "varchar";
0037 case column_type::binary: return os << "binary";
0038 case column_type::varbinary: return os << "varbinary";
0039 case column_type::text: return os << "text";
0040 case column_type::blob: return os << "blob";
0041 case column_type::enum_: return os << "enum_";
0042 case column_type::set: return os << "set";
0043 case column_type::json: return os << "json";
0044 case column_type::geometry: return os << "geometry";
0045 default: return os << "<unknown column type>";
0046 }
0047 }
0048
0049 #endif