OmniSciDB
85c2d10cdc
|
#include <SysCatalog.h>
Public Member Functions | |
UserMetadata (int32_t u, const std::string &n, const std::string &p, bool s, int32_t d, bool l) | |
UserMetadata () | |
UserMetadata (UserMetadata const &user_meta) | |
std::string | userLoggable () const |
void | setRestriction (Restriction in_restriction) |
Public Attributes | |
int32_t | userId |
std::string | userName |
std::string | passwd_hash |
std::atomic< bool > | isSuper {false} |
int32_t | defaultDbId |
bool | can_login {true} |
Restriction | restriction |
Definition at line 75 of file SysCatalog.h.
|
inline |
Definition at line 76 of file SysCatalog.h.
|
inline |
Definition at line 88 of file SysCatalog.h.
|
inline |
Definition at line 89 of file SysCatalog.h.
|
inline |
std::string Catalog_Namespace::UserMetadata::userLoggable | ( | ) | const |
Definition at line 125 of file SysCatalog.cpp.
References Catalog_Namespace::g_log_user_id, and to_string().
Referenced by checkPermissionForTables(), Catalog_Namespace::SysCatalog::checkPrivileges(), DBHandler::connect(), DBHandler::create_new_session(), Catalog_Namespace::SysCatalog::createDBObject(), Catalog_Namespace::SysCatalog::createUser(), Parser::TruncateTableStmt::execute(), Parser::CopyTableStmt::execute(), Catalog_Namespace::SysCatalog::hasAnyPrivileges(), DBHandler::internal_connect(), query_state::operator<<(), Catalog_Namespace::parseUserMetadataFromSQLite(), DBHandler::set_execution_mode_nolock(), and Catalog_Namespace::SysCatalog::switchDatabase().
bool Catalog_Namespace::UserMetadata::can_login {true} |
Definition at line 101 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::login(), and Catalog_Namespace::parseUserMetadataFromSQLite().
int32_t Catalog_Namespace::UserMetadata::defaultDbId |
Definition at line 100 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::getMetadataWithDefaultDB(), DBHandler::isInMemoryCalciteSession(), and Catalog_Namespace::parseUserMetadataFromSQLite().
std::atomic<bool> Catalog_Namespace::UserMetadata::isSuper {false} |
Definition at line 99 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::changeDBObjectOwnership(), Parser::check_alter_table_privilege(), Catalog_Namespace::SysCatalog::checkPrivileges(), Catalog_Namespace::SysCatalog::createDBObject(), Parser::RenameDatabaseStmt::execute(), Parser::RenameUserStmt::execute(), Parser::ShowCreateTableStmt::execute(), Parser::CreateDBStmt::execute(), Parser::DropDBStmt::execute(), Parser::CreateUserStmt::execute(), Parser::AlterUserStmt::execute(), Parser::DropUserStmt::execute(), DBHandler::get_valid_groups(), Catalog_Namespace::SysCatalog::getDBObjectPrivileges(), Catalog_Namespace::SysCatalog::grantDBObjectPrivileges_unsafe(), DBHandler::has_object_privilege(), Catalog_Namespace::SysCatalog::hasAnyPrivileges(), DBHandler::interruptQuery(), DBHandler::isInMemoryCalciteSession(), Catalog_Namespace::parseUserMetadataFromSQLite(), QueryRunner::QueryRunner::QueryRunner(), Catalog_Namespace::SysCatalog::revokeDBObjectPrivileges_unsafe(), Catalog_Namespace::SysCatalog::syncUserWithRemoteProvider(), and DBHandler::validateDashboardIdsForSharing().
std::string Catalog_Namespace::UserMetadata::passwd_hash |
Definition at line 98 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::checkPasswordForUserImpl(), Catalog_Namespace::parseUserMetadataFromSQLite(), and QueryRunner::QueryRunner::QueryRunner().
Restriction Catalog_Namespace::UserMetadata::restriction |
Definition at line 102 of file SysCatalog.h.
Referenced by DBHandler::connect(), and setRestriction().
int32_t Catalog_Namespace::UserMetadata::userId |
Definition at line 96 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::changeDBObjectOwnership(), AlterForeignServerCommand::changeForeignServerOwner(), Parser::check_alter_table_privilege(), Catalog_Namespace::SysCatalog::createDBObject(), Catalog_Namespace::SysCatalog::dropUser(), Parser::CreateTableStmt::execute(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::RenameDatabaseStmt::execute(), Parser::CreateViewStmt::execute(), Parser::CreateDBStmt::execute(), Parser::DropDBStmt::execute(), Parser::AlterUserStmt::execute(), DBHandler::get_dashboard_grantees(), Catalog_Namespace::SysCatalog::getMetadataWithDefaultDB(), DBHandler::isInMemoryCalciteSession(), Catalog_Namespace::parseUserMetadataFromSQLite(), QueryRunner::QueryRunner::QueryRunner(), DBHandler::replace_dashboard(), Catalog_Namespace::SysCatalog::syncUserWithRemoteProvider(), DBHandler::validateDashboardIdsForSharing(), and Catalog_Namespace::SysCatalog::verifyDBObjectOwnership().
std::string Catalog_Namespace::UserMetadata::userName |
Definition at line 97 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::changeDBObjectOwnership(), Catalog_Namespace::SysCatalog::checkPrivileges(), DBHandler::connect_impl(), Catalog_Namespace::SysCatalog::createDatabase(), Catalog_Namespace::SysCatalog::createDBObject(), DBHandler::get_dashboard(), DBHandler::get_dashboard_grantees(), DBHandler::get_dashboard_impl(), DBHandler::get_dashboards(), Calcite::getCompletionHints(), Catalog_Namespace::SysCatalog::getMetadataWithDefaultDB(), Catalog_Namespace::anonymous_namespace{Catalog.cpp}::getUserFromId(), Catalog_Namespace::SysCatalog::hasAnyPrivileges(), DBHandler::isInMemoryCalciteSession(), Catalog_Namespace::parseUserMetadataFromSQLite(), Catalog_Namespace::SysCatalog::populateRoleDbObjects(), omnisci.thrift.OmniSci.get_all_roles_for_user_args::read(), Catalog_Namespace::SysCatalog::verifyDBObjectOwnership(), and omnisci.thrift.OmniSci.get_all_roles_for_user_args::write().