#include <userver/storages/postgres/database.hpp>
Object for accessing PostgreSQL database instance (sharded or not)
Definition at line 24 of file database.hpp.
Public Member Functions | |
| ClusterPtr | GetCluster () const |
| Cluster accessor for default shard number. | |
| ClusterPtr | GetClusterForShard (size_t shard) const |
| Cluster accessor for specific shard number. | |
| size_t | GetShardCount () const |
| Get total shard count. | |
| void | UpdateClusterDescription (const std::vector< DsnList > &) |
|
inline |
Get total shard count.
Definition at line 33 of file database.hpp.
|
friend |
Definition at line 38 of file database.hpp.