OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ParserWrapper.cpp} Namespace Reference

Functions

void validate_no_leading_comments (const std::string &query_str)
 

Variables

const std::string explain_str = {"explain"}
 
const std::string calcite_explain_str = {"explain calcite"}
 
const std::string calcite_explain_detailed_str = {"explain calcite detailed"}
 
const std::string optimized_explain_str = {"explain optimized"}
 
const std::string plan_explain_str = {"explain plan"}
 
const std::string plan_explain_detailed_str = {"explain plan detailed"}
 
const std::string optimize_str = {"optimize"}
 
const std::string validate_str = {"validate"}
 

Function Documentation

void anonymous_namespace{ParserWrapper.cpp}::validate_no_leading_comments ( const std::string &  query_str)

Definition at line 91 of file ParserWrapper.cpp.

Referenced by ParserWrapper::ParserWrapper().

91  {
92  if (boost::starts_with(query_str, "--") || boost::starts_with(query_str, "//") ||
93  boost::starts_with(query_str, "/*")) {
94  throw std::runtime_error(
95  "SQL statements starting with comments are currently not allowed.");
96  }
97 }

+ Here is the caller graph for this function:

Variable Documentation

const std::string anonymous_namespace{ParserWrapper.cpp}::calcite_explain_detailed_str = {"explain calcite detailed"}

Definition at line 34 of file ParserWrapper.cpp.

Referenced by ExplainInfo::ExplainInfo().

const std::string anonymous_namespace{ParserWrapper.cpp}::calcite_explain_str = {"explain calcite"}

Definition at line 33 of file ParserWrapper.cpp.

Referenced by ExplainInfo::ExplainInfo().

const std::string anonymous_namespace{ParserWrapper.cpp}::explain_str = {"explain"}

Definition at line 32 of file ParserWrapper.cpp.

Referenced by ExplainInfo::ExplainInfo().

const std::string anonymous_namespace{ParserWrapper.cpp}::optimize_str = {"optimize"}

Definition at line 99 of file ParserWrapper.cpp.

const std::string anonymous_namespace{ParserWrapper.cpp}::optimized_explain_str = {"explain optimized"}

Definition at line 35 of file ParserWrapper.cpp.

Referenced by ExplainInfo::ExplainInfo().

const std::string anonymous_namespace{ParserWrapper.cpp}::plan_explain_detailed_str = {"explain plan detailed"}

Definition at line 37 of file ParserWrapper.cpp.

Referenced by ExplainInfo::ExplainInfo().

const std::string anonymous_namespace{ParserWrapper.cpp}::plan_explain_str = {"explain plan"}

Definition at line 36 of file ParserWrapper.cpp.

Referenced by ExplainInfo::ExplainInfo().

const std::string anonymous_namespace{ParserWrapper.cpp}::validate_str = {"validate"}

Definition at line 100 of file ParserWrapper.cpp.