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 215 of file DdlCommandExecutor.cpp.
SQLTypes JsonColumnSqlType::getSqlType |
( |
const std::string & |
type | ) |
|
|
staticprivate |
Definition at line 719 of file DdlCommandExecutor.cpp.
References kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kLINESTRING, kMULTIPOLYGON, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, and kTINYINT.
720 if (boost::iequals(
type,
"BIGINT")) {
723 if (boost::iequals(
type,
"BOOLEAN")) {
726 if (boost::iequals(
type,
"DATE")) {
729 if (boost::iequals(
type,
"DECIMAL")) {
732 if (boost::iequals(
type,
"DOUBLE")) {
735 if (boost::iequals(
type,
"FLOAT")) {
738 if (boost::iequals(
type,
"INTEGER")) {
741 if (boost::iequals(
type,
"LINESTRING")) {
744 if (boost::iequals(
type,
"MULTIPOLYGON")) {
747 if (boost::iequals(
type,
"POINT")) {
750 if (boost::iequals(
type,
"POLYGON")) {
753 if (boost::iequals(
type,
"SMALLINT")) {
756 if (boost::iequals(
type,
"TEXT")) {
759 if (boost::iequals(
type,
"TIME")) {
762 if (boost::iequals(
type,
"TIMESTAMP")) {
765 if (boost::iequals(
type,
"TINYINT")) {
769 throw std::runtime_error{
"Unsupported type \"" +
type +
"\" specified."};