userver: storages::postgres::Database Class Reference
No Matches
storages::postgres::Database Class Reference

#include <userver/storages/postgres/database.hpp>

Detailed Description

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.

Member Function Documentation

◆ GetShardCount()

size_t storages::postgres::Database::GetShardCount ( ) const

Get total shard count.

Definition at line 32 of file database.hpp.

Friends And Related Symbol Documentation

◆ components::Postgres

friend class components::Postgres

Definition at line 35 of file database.hpp.

The documentation for this class was generated from the following file: