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 902 of file DdlCommandExecutor.cpp.
References kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kLINESTRING, kMULTIPOLYGON, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, and kTINYINT.
903 if (boost::iequals(
type,
"BIGINT")) {
906 if (boost::iequals(
type,
"BOOLEAN")) {
909 if (boost::iequals(
type,
"DATE")) {
912 if (boost::iequals(
type,
"DECIMAL")) {
915 if (boost::iequals(
type,
"DOUBLE")) {
918 if (boost::iequals(
type,
"FLOAT")) {
921 if (boost::iequals(
type,
"INTEGER")) {
924 if (boost::iequals(
type,
"LINESTRING")) {
927 if (boost::iequals(
type,
"MULTIPOLYGON")) {
930 if (boost::iequals(
type,
"POINT")) {
933 if (boost::iequals(
type,
"POLYGON")) {
936 if (boost::iequals(
type,
"SMALLINT")) {
939 if (boost::iequals(
type,
"TEXT")) {
942 if (boost::iequals(
type,
"TIME")) {
945 if (boost::iequals(
type,
"TIMESTAMP")) {
948 if (boost::iequals(
type,
"TINYINT")) {
952 throw std::runtime_error{
"Unsupported type \"" +
type +
"\" specified."};