OmniSciDB
a5dc49c757
|
Functions | |
void | deleteObjectPrivileges (std::unique_ptr< SqliteConnector > &sqliteConnector, std::string roleName, bool userRole, DBObject &object) |
void | insertOrUpdateObjectPrivileges (std::unique_ptr< SqliteConnector > &sqliteConnector, std::string roleName, bool userRole, const DBObject &object) |
auto | get_users (SysCatalog &syscat, std::unique_ptr< SqliteConnector > &sqliteConnector, const int32_t dbId=-1) |
Variables | |
auto | append_with_commas |
void Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::deleteObjectPrivileges | ( | std::unique_ptr< SqliteConnector > & | sqliteConnector, |
std::string | roleName, | ||
bool | userRole, | ||
DBObject & | object | ||
) |
Definition at line 495 of file SysCatalog.cpp.
References DBObjectKey::dbId, DBObjectKey::objectId, DBObjectKey::permissionType, and to_string().
Referenced by Catalog_Namespace::SysCatalog::revokeDBObjectPrivileges_unsafe().
auto Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::get_users | ( | SysCatalog & | syscat, |
std::unique_ptr< SqliteConnector > & | sqliteConnector, | ||
const int32_t | dbId = -1 |
||
) |
Definition at line 1746 of file SysCatalog.cpp.
References Catalog_Namespace::SysCatalog::getUserGrantee(), Grantee::hasAnyPrivilegesOnDb(), Catalog_Namespace::SysCatalog::name(), Catalog_Namespace::parseUserMetadataFromSQLite(), Catalog_Namespace::SysCatalog::temporary_users_by_id_, and Catalog_Namespace::UserMetadata::userName.
Referenced by Catalog_Namespace::SysCatalog::getAllUserMetadata().
void Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::insertOrUpdateObjectPrivileges | ( | std::unique_ptr< SqliteConnector > & | sqliteConnector, |
std::string | roleName, | ||
bool | userRole, | ||
const DBObject & | object | ||
) |
Definition at line 514 of file SysCatalog.cpp.
References CHECK, DBObjectKey::dbId, DBObjectKey::objectId, DBObjectKey::permissionType, and to_string().
Referenced by Catalog_Namespace::SysCatalog::createRole_unsafe(), Catalog_Namespace::SysCatalog::grantDBObjectPrivileges_unsafe(), Catalog_Namespace::SysCatalog::migrateDBAccessPrivileges(), Catalog_Namespace::SysCatalog::migratePrivileges(), Catalog_Namespace::SysCatalog::populateRoleDbObjects(), and Catalog_Namespace::SysCatalog::revokeDBObjectPrivileges_unsafe().
auto Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::append_with_commas |
Definition at line 1159 of file SysCatalog.cpp.
Referenced by Catalog_Namespace::SysCatalog::alterUser().