#include <userver/storages/mongo/multi_mongo.hpp>
Database set builder.
Definition at line 24 of file multi_mongo.hpp.
Public Member Functions | |
PoolSet (MultiMongo &) | |
PoolSet (const PoolSet &) | |
PoolSet (PoolSet &&) noexcept | |
PoolSet & | operator= (const PoolSet &) |
PoolSet & | operator= (PoolSet &&) noexcept |
void | AddExistingPools () |
Adds all currently enabled databases to the set. | |
void | AddPool (std::string dbalias) |
Adds a database to the set by its name. | |
bool | RemovePool (const std::string &dbalias) |
Removes the database with the specified name from the set. | |
void | Activate () |
Replaces the working database set. | |
void storages::mongo::MultiMongo::PoolSet::AddPool | ( | std::string | dbalias | ) |
Adds a database to the set by its name.
dbalias | name of the database in secdist config |
bool storages::mongo::MultiMongo::PoolSet::RemovePool | ( | const std::string & | dbalias | ) |
Removes the database with the specified name from the set.
dbalias | name of the database passed to AddPool |