NebulaGraph CPP Client  release-3.4
Session Class Reference

Public Types

using ExecuteCallback = std::function< void(ExecutionResponse &&)>
 
using ExecuteJsonCallback = std::function< void(std::string &&)>
 

Public Member Functions

 Session (int64_t sessionId, Connection &&conn, ConnectionPool *pool, const std::string &username, const std::string &password, const std::string &timezoneName, int32_t offsetSecs)
 
 Session (const Session &)=delete
 
 Session (Session &&session)
 
void operator= (Session &&session)
 
ExecutionResponse execute (const std::string &stmt)
 
void asyncExecute (const std::string &stmt, ExecuteCallback cb)
 
ExecutionResponse executeWithParameter (const std::string &stmt, const std::unordered_map< std::string, Value > &parameters)
 
void asyncExecuteWithParameter (const std::string &stmt, const std::unordered_map< std::string, Value > &parameters, ExecuteCallback cb)
 
std::string executeJson (const std::string &stmt)
 
void asyncExecuteJson (const std::string &stmt, ExecuteJsonCallback cb)
 
std::string executeJsonWithParameter (const std::string &stmt, const std::unordered_map< std::string, Value > &parameters)
 
void asyncExecuteJsonWithParameter (const std::string &stmt, const std::unordered_map< std::string, Value > &parameters, ExecuteJsonCallback cb)
 
bool ping ()
 
ErrorCode retryConnect ()
 
void release ()
 
bool valid () const
 
const std::string & timeZoneName () const
 
int32_t timeZoneOffsetSecs () const
 
void toLocal (DataSet &data)
 

Static Public Member Functions

static void toLocal (DataSet &data, int32_t offsetSecs)
 

Detailed Description

Definition at line 16 of file Session.h.


The documentation for this class was generated from the following file: