Workspace 6.21.5
Public Member Functions | List of all members
Client Class Reference

Wrapper of mongoc_client_t, provides a connection to talk to a MongoDB server.

#include <Distributed/mongocxx.h>

Public Member Functions

 Client (const QString &address, const QString &appName="Workspace", const QString &preferredUser=QString::null)
 
 ~Client ()
 
bool databaseExists (const QString &name) const
 
mongoc_client_t * get ()
 
const mongoc_client_t * get () const
 
const QString & getAddress () const
 
const QString & getAppName () const
 
std::unique_ptr< Session::WrapperstartSession ()
 

Constructor & Destructor Documentation

◆ Client()

Client ( const QString &  address,
const QString &  appName = "Workspace",
const QString &  preferredUser = QString::null 
)

◆ ~Client()

~Client ( )
inline

Member Function Documentation

◆ databaseExists()

bool databaseExists ( const QString &  name) const

◆ get() [1/2]

mongoc_client_t * get ( )
inline

◆ get() [2/2]

const mongoc_client_t * get ( ) const
inline

◆ getAddress()

const QString & getAddress ( ) const
inline

◆ getAppName()

const QString & getAppName ( ) const
inline

◆ startSession()

std::unique_ptr< Session::Wrapper > startSession ( )