#include <userver/storages/postgres/database.hpp>
Object for accessing PostgreSQL database instance (sharded or not)
Definition at line 23 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. | |
|
inline |
Get total shard count.
Definition at line 32 of file database.hpp.
|
friend |
Definition at line 35 of file database.hpp.