OmniSciDB
a5dc49c757
|
Class specification and related data structures for DBObject class. More...
Go to the source code of this file.
Classes | |
struct | DBObjectKey |
struct | DatabasePrivileges |
struct | TablePrivileges |
struct | DashboardPrivileges |
struct | ViewPrivileges |
struct | ServerPrivileges |
struct | AccessPrivileges |
class | DBObject |
Namespaces | |
Catalog_Namespace | |
Enumerations | |
enum | DBObjectType { AbstractDBObjectType = 0, DatabaseDBObjectType, TableDBObjectType, DashboardDBObjectType, ViewDBObjectType, ServerDBObjectType } |
Functions | |
std::string | DBObjectTypeToString (DBObjectType type) |
DBObjectType | DBObjectTypeFromString (const std::string &type) |
Class specification and related data structures for DBObject class.
To support access privileges of DB users to DB entities (tables, columns, views, etc), the users are granted roles and included in the corresponding object of the Role class, and DB entities are being described as objects of DBObjects class
Definition in file DBObject.h.
enum DBObjectType |
Enumerator | |
---|---|
AbstractDBObjectType | |
DatabaseDBObjectType | |
TableDBObjectType | |
DashboardDBObjectType | |
ViewDBObjectType | |
ServerDBObjectType |
Definition at line 40 of file DBObject.h.
DBObjectType DBObjectTypeFromString | ( | const std::string & | type | ) |
Definition at line 110 of file DBObject.cpp.
References DashboardDBObjectType, DatabaseDBObjectType, ServerDBObjectType, TableDBObjectType, and ViewDBObjectType.
Referenced by Parser::GrantPrivilegesStmt::execute(), Parser::RevokePrivilegesStmt::execute(), and Parser::ShowPrivilegesStmt::execute().
std::string DBObjectTypeToString | ( | DBObjectType | type | ) |
Definition at line 92 of file DBObject.cpp.
References CHECK, DashboardDBObjectType, DatabaseDBObjectType, ServerDBObjectType, TableDBObjectType, and ViewDBObjectType.
Referenced by Catalog_Namespace::anonymous_namespace{Catalog.cpp}::convert_object_owners_map_to_string(), and Parser::verifyObject().