OmniSciDB
a5dc49c757
|
#include <ParserWrapper.h>
Public Types | |
enum | DMLType : int { DMLType::Insert = 0, DMLType::Delete, DMLType::Update, DMLType::NotDML } |
enum | QueryType { QueryType::Unknown, QueryType::Read, QueryType::Write, QueryType::SchemaRead, QueryType::SchemaWrite } |
Public Member Functions | |
ParserWrapper (std::string query_string) | |
std::string | process (std::string user, std::string passwd, std::string catalog, std::string sql_string, const bool legacy_syntax) |
virtual | ~ParserWrapper () |
DMLType | getDMLType () const |
QueryType | getQueryType () const |
bool | isUpdateDelete () const |
Public Attributes | |
bool | is_ddl = false |
bool | is_update_dml = false |
bool | is_ctas = false |
bool | is_itas = false |
bool | is_copy = false |
bool | is_copy_to = false |
bool | is_validate = false |
bool | is_other_explain = false |
bool | is_refresh = false |
Private Attributes | |
DMLType | dml_type_ = DMLType::NotDML |
QueryType | query_type_ = QueryType::Unknown |
Static Private Attributes | |
static const std::vector < std::string > | ddl_cmd |
static const std::vector < std::string > | update_dml_cmd |
Definition at line 91 of file ParserWrapper.h.
|
strong |
Enumerator | |
---|---|
Insert | |
Delete | |
Update | |
NotDML |
Definition at line 94 of file ParserWrapper.h.
|
strong |
Enumerator | |
---|---|
Unknown | |
Read | |
Write | |
SchemaRead | |
SchemaWrite |
Definition at line 96 of file ParserWrapper.h.
ParserWrapper::ParserWrapper | ( | std::string | query_string | ) |
Definition at line 104 of file ParserWrapper.cpp.
References ExplainInfo::isOtherExplain(), update_dml_cmd, and anonymous_namespace{ParserWrapper.cpp}::validate_no_leading_comments().
|
virtual |
Definition at line 175 of file ParserWrapper.cpp.
|
inline |
|
inline |
|
inline |
std::string ParserWrapper::process | ( | std::string | user, |
std::string | passwd, | ||
std::string | catalog, | ||
std::string | sql_string, | ||
const bool | legacy_syntax | ||
) |
|
staticprivate |
Definition at line 128 of file ParserWrapper.h.
|
private |
Definition at line 125 of file ParserWrapper.h.
Referenced by getDMLType(), and isUpdateDelete().
bool ParserWrapper::is_copy = false |
Definition at line 110 of file ParserWrapper.h.
bool ParserWrapper::is_copy_to = false |
Definition at line 111 of file ParserWrapper.h.
bool ParserWrapper::is_ctas = false |
Definition at line 108 of file ParserWrapper.h.
bool ParserWrapper::is_ddl = false |
Definition at line 106 of file ParserWrapper.h.
bool ParserWrapper::is_itas = false |
Definition at line 109 of file ParserWrapper.h.
bool ParserWrapper::is_other_explain = false |
Definition at line 113 of file ParserWrapper.h.
bool ParserWrapper::is_refresh = false |
Definition at line 114 of file ParserWrapper.h.
bool ParserWrapper::is_update_dml = false |
Definition at line 107 of file ParserWrapper.h.
bool ParserWrapper::is_validate = false |
Definition at line 112 of file ParserWrapper.h.
|
private |
Definition at line 126 of file ParserWrapper.h.
Referenced by getQueryType().
|
staticprivate |
Definition at line 129 of file ParserWrapper.h.
Referenced by ParserWrapper().