declare this class scoped local to avoid exposing rapidjson in the header file
More...
declare this class scoped local to avoid exposing rapidjson in the header file
Definition at line 214 of file DdlCommandExecutor.cpp.
SQLTypes JsonColumnSqlType::getSqlType |
( |
const std::string & |
type | ) |
|
|
staticprivate |
Definition at line 1021 of file DdlCommandExecutor.cpp.
References kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, and kTINYINT.
1022 if (boost::iequals(
type,
"BIGINT")) {
1025 if (boost::iequals(
type,
"BOOLEAN")) {
1028 if (boost::iequals(
type,
"DATE")) {
1031 if (boost::iequals(
type,
"DECIMAL")) {
1034 if (boost::iequals(
type,
"DOUBLE")) {
1037 if (boost::iequals(
type,
"FLOAT")) {
1040 if (boost::iequals(
type,
"INTEGER")) {
1043 if (boost::iequals(
type,
"LINESTRING")) {
1046 if (boost::iequals(
type,
"MULTILINESTRING")) {
1049 if (boost::iequals(
type,
"MULTIPOLYGON")) {
1052 if (boost::iequals(
type,
"POINT")) {
1055 if (boost::iequals(
type,
"MULTIPOINT")) {
1058 if (boost::iequals(
type,
"POLYGON")) {
1061 if (boost::iequals(
type,
"SMALLINT")) {
1064 if (boost::iequals(
type,
"TEXT")) {
1067 if (boost::iequals(
type,
"TIME")) {
1070 if (boost::iequals(
type,
"TIMESTAMP")) {
1073 if (boost::iequals(
type,
"TINYINT")) {
1077 throw std::runtime_error{
"Unsupported type \"" +
type +
"\" specified."};