22 namespace Catalog_Namespace {
26 const std::string& objectName)
const {
29 DBObject object(objectName, permissionType);
31 object.setName(
cat.getCurrentDB().dbName);
34 object.setPrivileges(privs);
35 std::vector<DBObject> privObjects;
36 privObjects.push_back(
object);
47 localtime_r(&start_time, &st);
49 localtime_s(&st, &start_time);
51 std::ostringstream ss;
52 ss << (st.tm_min % 10) << std::setfill(
'0') << std::setw(2) << st.tm_sec <<
'-'
const std::string session_id_
std::string const & get_public_session_id() const
std::ostream & operator<<(std::ostream &os, const SessionInfo &session_info)
std::string public_session_id() const
This file contains the class specification and related data structures for Catalog.
bool checkPrivileges(const UserMetadata &user, const std::vector< DBObject > &privObjects) const
static SysCatalog & instance()
Catalog & getCatalog() const
time_t get_start_time() const
bool checkDBAccessPrivileges(const DBObjectType &permissionType, const AccessPrivileges &privs, const std::string &objectName="") const
const UserMetadata & get_currentUser() const