17 #ifndef SESSION_INFO_H
18 #define SESSION_INFO_H
39 namespace Catalog_Namespace {
52 const std::string& sid)
99 const std::string& objectName =
"")
const;
std::lock_guard< T > lock_guard
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::shared_lock< T > shared_lock
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
const size_t CALCITE_SESSION_ID_LENGTH
std::shared_ptr< Catalog > get_catalog_ptr() const
const size_t SESSION_ID_LENGTH
void update_last_used_time()
std::string get_session_id() const
Catalog & getCatalog() const
heavyai::shared_mutex mtx_
time_t get_start_time() const
heavyai::shared_mutex & getLock()
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)
std::shared_timed_mutex shared_mutex
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)