NebulaGraph CPP Client  release-3.8
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, bool retryConnect)
 
 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 bool isSessionError (const ExecutionResponse &resp)
 
static void toLocal (DataSet &data, int32_t offsetSecs)
 

Detailed Description

Definition at line 18 of file Session.h.


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