CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::DatabaseConfiguration Struct Reference

Database configuration settings. More...

Static Public Member Functions

static DatabaseConfiguration Uninitialized ()
 Creates an uninitialized database configuration. More...
 
static DatabaseConfiguration LoadFromBag (const utils::ConfigurationBag &bag)
 Loads a database configuration from bag. More...
 
static DatabaseConfiguration LoadFromPath (const boost::filesystem::path &resourcesPath)
 Loads a database configuration from resourcesPath. More...
 

Public Attributes

std::string DatabaseUri
 Database uri. More...
 
std::string DatabaseName
 Database name. More...
 
uint32_t MaxWriterThreads
 Maximum number of database writer threads. More...
 
std::unordered_set< std::string > Plugins
 Named database plugins to enable. More...
 

Private Member Functions

 DatabaseConfiguration ()=default
 

Detailed Description

Database configuration settings.

Constructor & Destructor Documentation

◆ DatabaseConfiguration()

catapult::mongo::DatabaseConfiguration::DatabaseConfiguration ( )
privatedefault
Here is the caller graph for this function:

Member Function Documentation

◆ LoadFromBag()

DatabaseConfiguration catapult::mongo::DatabaseConfiguration::LoadFromBag ( const utils::ConfigurationBag bag)
static

Loads a database configuration from bag.

Here is the call graph for this function:

◆ LoadFromPath()

DatabaseConfiguration catapult::mongo::DatabaseConfiguration::LoadFromPath ( const boost::filesystem::path &  resourcesPath)
static

Loads a database configuration from resourcesPath.

◆ Uninitialized()

DatabaseConfiguration catapult::mongo::DatabaseConfiguration::Uninitialized ( )
static

Creates an uninitialized database configuration.

Here is the call graph for this function:

Member Data Documentation

◆ DatabaseName

std::string catapult::mongo::DatabaseConfiguration::DatabaseName

Database name.

◆ DatabaseUri

std::string catapult::mongo::DatabaseConfiguration::DatabaseUri

Database uri.

◆ MaxWriterThreads

uint32_t catapult::mongo::DatabaseConfiguration::MaxWriterThreads

Maximum number of database writer threads.

◆ Plugins

std::unordered_set<std::string> catapult::mongo::DatabaseConfiguration::Plugins

Named database plugins to enable.


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