NebulaGraph CPP Client  release-3.8
Connection Class Reference

Public Types

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

Public Member Functions

 Connection (const Connection &)=delete
 
Connectionoperator= (const Connection &c)=delete
 
 Connection (Connection &&c) noexcept
 
Connectionoperator= (Connection &&c)
 
bool open (const std::string &address, int32_t port, uint32_t timeout, bool enableSSL, const std::string &CAPath)
 
AuthResponse authenticate (const std::string &user, const std::string &password)
 
ExecutionResponse execute (int64_t sessionId, const std::string &stmt)
 
void asyncExecute (int64_t sessionId, const std::string &stmt, ExecuteCallback cb)
 
ExecutionResponse executeWithParameter (int64_t sessionId, const std::string &stmt, const std::unordered_map< std::string, Value > &parameters)
 
void asyncExecuteWithParameter (int64_t sessionId, const std::string &stmt, const std::unordered_map< std::string, Value > &parameters, ExecuteCallback cb)
 
std::string executeJson (int64_t sessionId, const std::string &stmt)
 
void asyncExecuteJson (int64_t sessionId, const std::string &stmt, ExecuteJsonCallback cb)
 
std::string executeJsonWithParameter (int64_t sessionId, const std::string &stmt, const std::unordered_map< std::string, Value > &parameters)
 
void asyncExecuteJsonWithParameter (int64_t sessionId, const std::string &stmt, const std::unordered_map< std::string, Value > &parameters, ExecuteJsonCallback cb)
 
VerifyClientVersionResp verifyClientVersion (const VerifyClientVersionReq &req)
 
bool isOpen ()
 
void close ()
 
bool ping ()
 
void signout (int64_t sessionId)
 

Detailed Description

Definition at line 28 of file Connection.h.


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