OmniSciDB  29e35f4d58
query_state::SessionData Struct Reference

#include <QueryState.h>

+ Collaboration diagram for query_state::SessionData:

Public Member Functions

 SessionData ()=default
 
 SessionData (std::shared_ptr< Catalog_Namespace::SessionInfo const > const &)
 

Public Attributes

std::weak_ptr< Catalog_Namespace::SessionInfo const > session_info
 
std::string db_name
 
std::string user_name
 
std::string public_session_id
 

Detailed Description

Definition at line 112 of file QueryState.h.

Constructor & Destructor Documentation

◆ SessionData() [1/2]

query_state::SessionData::SessionData ( )
default

◆ SessionData() [2/2]

query_state::SessionData::SessionData ( std::shared_ptr< Catalog_Namespace::SessionInfo const > const &  session_info)

Definition at line 44 of file QueryState.cpp.

References query_state::QueryState::s_next_id.

47  , db_name(session_info->getCatalog().getCurrentDB().dbName)
48  , user_name(session_info->get_currentUser().userName)
49  , public_session_id(session_info->get_public_session_id()) {}
std::weak_ptr< Catalog_Namespace::SessionInfo const > session_info
Definition: QueryState.h:113
std::string public_session_id
Definition: QueryState.h:116

Member Data Documentation

◆ db_name

std::string query_state::SessionData::db_name

Definition at line 114 of file QueryState.h.

Referenced by query_state::operator<<().

◆ public_session_id

std::string query_state::SessionData::public_session_id

Definition at line 116 of file QueryState.h.

Referenced by query_state::operator<<().

◆ session_info

std::weak_ptr<Catalog_Namespace::SessionInfo const> query_state::SessionData::session_info

Definition at line 113 of file QueryState.h.

◆ user_name

std::string query_state::SessionData::user_name

Definition at line 115 of file QueryState.h.

Referenced by query_state::operator<<().


The documentation for this struct was generated from the following files: