17 #ifndef SESSION_INFO_H
18 #define SESSION_INFO_H
38 namespace Catalog_Namespace {
51 const std::string& sid)
81 const std::string& objectName =
"")
const;
std::shared_ptr< Catalog > catalog_
const std::string session_id_
class for a per-database catalog. also includes metadata for the current database and the current use...
std::string const & get_public_session_id() const
std::ostream & operator<<(std::ostream &os, const SessionInfo &session_info)
const std::string public_session_id_
std::atomic< time_t > last_used_time_
SessionInfo(const SessionInfo &s)
std::string public_session_id() const
UserMetadata currentUser_
std::atomic< time_t > start_time_
std::atomic< ExecutorDeviceType > executor_device_type_
This file contains the class specification and related data structures for SysCatalog.
SessionInfo(std::shared_ptr< Catalog > cat, const UserMetadata &user, const ExecutorDeviceType t, const std::string &sid)
std::string const & get_connection_info() const
std::shared_ptr< Catalog > get_catalog_ptr() const
void update_last_used_time()
std::string get_session_id() const
Catalog & getCatalog() const
time_t get_start_time() const
void set_executor_device_type(ExecutorDeviceType t)
bool checkDBAccessPrivileges(const DBObjectType &permissionType, const AccessPrivileges &privs, const std::string &objectName="") const
void set_catalog_ptr(std::shared_ptr< Catalog > c)
time_t get_last_used_time() const
const UserMetadata & get_currentUser() const
std::string connection_info_
const ExecutorDeviceType get_executor_device_type() const
void set_connection_info(const std::string &connection)