Definition at line 19 of file multi_mongo.hpp.
|
| storages::mongo::PoolPtr | GetPool (const std::string &dbalias) const |
| | Client pool accessor.
|
| |
| void | AddPool (std::string dbalias) |
| | Adds a database to the working set by its name. Equivalent to NewPoolSet()-AddExistingPools()-AddPool(dbalias)-Activate()
|
| |
| bool | RemovePool (const std::string &dbalias) |
| | Removes the database with the specified name from the working set. Equivalent to NewPoolSet()-AddExistingPools()-RemovePool(dbalias)-Activate()
|
| |
|
PoolSet | NewPoolSet () |
| | Creates an empty database set bound to the current MultiMongo instance.
|
| |
| const std::string & | GetName () const |
| |
◆ AddPool()
| void storages::mongo::MultiMongo::AddPool |
( |
std::string | dbalias | ) |
|
Adds a database to the working set by its name. Equivalent to NewPoolSet()-AddExistingPools()-AddPool(dbalias)-Activate()
- Parameters
-
| dbalias | name of the database in secdist config |
◆ GetName()
| const std::string & storages::mongo::MultiMongo::GetName |
( |
| ) |
const |
|
inline |
◆ GetPool()
| storages::mongo::PoolPtr storages::mongo::MultiMongo::GetPool |
( |
const std::string & | dbalias | ) |
const |
Client pool accessor.
- Parameters
-
| dbalias | name previously passed to AddPool |
- Exceptions
-
◆ RemovePool()
| bool storages::mongo::MultiMongo::RemovePool |
( |
const std::string & | dbalias | ) |
|
Removes the database with the specified name from the working set. Equivalent to NewPoolSet()-AddExistingPools()-RemovePool(dbalias)-Activate()
- Parameters
-
| dbalias | name of the database passed to AddPool |
- Returns
- whether the database was in the working set
The documentation for this class was generated from the following file: