Database set builder.
More...
#include <userver/storages/mongo/multi_mongo.hpp>
|
| 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.
|
|
Database set builder.
Definition at line 24 of file multi_mongo.hpp.
◆ AddPool()
void storages::mongo::MultiMongo::PoolSet::AddPool |
( |
std::string |
dbalias | ) |
|
Adds a database to the set by its name.
- Parameters
-
dbalias | name of the database in secdist config |
◆ RemovePool()
bool storages::mongo::MultiMongo::PoolSet::RemovePool |
( |
const std::string & |
dbalias | ) |
|
Removes the database with the specified name from the set.
- Parameters
-
dbalias | name of the database passed to AddPool |
- Returns
- whether the database was in the set
The documentation for this class was generated from the following file: