OmniSciDB
b24e664e58
|
Namespaces | |
anonymous_namespace{ParserNode.cpp} | |
Typedefs | |
using | dbl = std::numeric_limits< double > |
Functions | |
template<typename DDLSTMT > | |
auto | parseDDL (const std::string &stmt_type, const std::string &stmt_str) |
std::shared_ptr< ResultSet > | getResultSet (QueryStateProxy query_state_proxy, const std::string select_stmt, std::vector< TargetMetaInfo > &targets, bool validate_only=false) |
void | check_alter_table_privilege (const Catalog_Namespace::SessionInfo &session, const TableDescriptor *td) |
std::vector< std::string > | splitObjectHierName (const std::string &hierName) |
std::string | extractObjectNameFromHierName (const std::string &objectHierName, const std::string &objectType, const Catalog_Namespace::Catalog &cat) |
static std::pair < AccessPrivileges, DBObjectType > | parseStringPrivs (const std::string &privs, const DBObjectType &objectType, const std::string &object_name) |
static DBObject | createObject (const std::string &objectName, DBObjectType objectType) |
static void | checkStringLiteral (const std::string &option_name, const std::unique_ptr< NameValueAssign > &p) |
static bool | readBooleanLiteral (const std::string &option_name, const std::unique_ptr< NameValueAssign > &p) |
void | parser_slistval_to_vector (std::list< std::string * > *l, std::vector< std::string > &v) |
using Parser::dbl = typedef std::numeric_limits<double> |
Definition at line 4138 of file ParserNode.cpp.
void Parser::check_alter_table_privilege | ( | const Catalog_Namespace::SessionInfo & | session, |
const TableDescriptor * | td | ||
) |
Definition at line 2915 of file ParserNode.cpp.
References AccessPrivileges::ALTER_TABLE, Catalog_Namespace::SessionInfo::get_currentUser(), Catalog_Namespace::SessionInfo::getCatalog(), Catalog_Namespace::UserMetadata::isSuper, DBObject::loadKey(), DBObject::setPrivileges(), TableDBObjectType, TableDescriptor::tableName, TableDescriptor::userId, and Catalog_Namespace::UserMetadata::userId.
Referenced by Parser::AddColumnStmt::check_executable(), Parser::RenameTableStmt::execute(), and Parser::RenameColumnStmt::execute().
|
static |
Definition at line 4453 of file ParserNode.cpp.
References CHECK().
Referenced by Parser::CreateDBStmt::execute(), Parser::CreateUserStmt::execute(), and Parser::AlterUserStmt::execute().
|
static |
Definition at line 3942 of file ParserNode.cpp.
References DashboardDBObjectType.
Referenced by Parser::GrantPrivilegesStmt::execute(), Parser::RevokePrivilegesStmt::execute(), and Parser::ShowPrivilegesStmt::execute().
std::string Parser::extractObjectNameFromHierName | ( | const std::string & | objectHierName, |
const std::string & | objectType, | ||
const Catalog_Namespace::Catalog & | cat | ||
) |
Definition at line 3822 of file ParserNode.cpp.
References splitObjectHierName().
Referenced by Parser::GrantPrivilegesStmt::execute(), Parser::RevokePrivilegesStmt::execute(), and Parser::ShowPrivilegesStmt::execute().
std::shared_ptr<ResultSet> Parser::getResultSet | ( | QueryStateProxy | query_state_proxy, |
const std::string | select_stmt, | ||
std::vector< TargetMetaInfo > & | targets, | ||
bool | validate_only = false |
||
) |
Definition at line 2249 of file ParserNode.cpp.
References CPU, query_state::QueryState::getConstSessionInfo(), Executor::getExecutor(), query_state::QueryStateProxy::getQueryState(), LoopStrengthReduction, pg_shim(), and run_benchmark_import::result.
Referenced by Parser::ExportQueryStmt::execute(), and Parser::InsertIntoTableAsSelectStmt::LocalConnector::query().
auto Parser::parseDDL | ( | const std::string & | stmt_type, |
const std::string & | stmt_str | ||
) |
|
inline |
Definition at line 1448 of file ParserNode.h.
References CHECK().
Referenced by Parser::GrantPrivilegesStmt::GrantPrivilegesStmt(), Parser::GrantRoleStmt::GrantRoleStmt(), Parser::RevokePrivilegesStmt::RevokePrivilegesStmt(), and Parser::RevokeRoleStmt::RevokeRoleStmt().
|
static |
Definition at line 3856 of file ParserNode.cpp.
References AccessPrivileges::ACCESS, AccessPrivileges::ALL_DASHBOARD, AccessPrivileges::ALL_DATABASE, AccessPrivileges::ALL_TABLE, AccessPrivileges::ALL_VIEW, AccessPrivileges::ALTER_TABLE, AccessPrivileges::CREATE_DASHBOARD, AccessPrivileges::CREATE_TABLE, AccessPrivileges::CREATE_VIEW, DashboardDBObjectType, DatabaseDBObjectType, AccessPrivileges::DELETE_DASHBOARD, AccessPrivileges::DELETE_FROM_TABLE, AccessPrivileges::DROP_TABLE, AccessPrivileges::DROP_VIEW, AccessPrivileges::EDIT_DASHBOARD, AccessPrivileges::INSERT_INTO_TABLE, run_benchmark_import::result, AccessPrivileges::SELECT_FROM_TABLE, AccessPrivileges::SELECT_FROM_VIEW, TableDBObjectType, AccessPrivileges::TRUNCATE_TABLE, AccessPrivileges::UPDATE_IN_TABLE, AccessPrivileges::VIEW_DASHBOARD, AccessPrivileges::VIEW_SQL_EDITOR, and ViewDBObjectType.
Referenced by Parser::GrantPrivilegesStmt::execute(), and Parser::RevokePrivilegesStmt::execute().
|
static |
Definition at line 4511 of file ParserNode.cpp.
References CHECK().
Referenced by Parser::CreateUserStmt::execute(), and Parser::AlterUserStmt::execute().
std::vector<std::string> Parser::splitObjectHierName | ( | const std::string & | hierName | ) |
Definition at line 3816 of file ParserNode.cpp.
References split().
Referenced by extractObjectNameFromHierName().