userver: storages::postgres::PoolSettings Struct Reference
Loading...
Searching...
No Matches
storages::postgres::PoolSettings Struct Reference

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

Detailed Description

PostgreSQL connection pool options.

Dynamic option POSTGRES_CONNECTION_POOL_SETTINGS

Definition at line 177 of file options.hpp.

Public Member Functions

bool operator== (const PoolSettings &rhs) const
 

Public Attributes

std::size_t min_size {kDefaultPoolMinSize}
 Number of connections created initially.
 
std::size_t max_size {kDefaultPoolMaxSize}
 Maximum number of created connections.
 
std::size_t max_queue_size {kDefaultPoolMaxQueueSize}
 Maximum number of clients waiting for a connection.
 
std::size_t connecting_limit {kDefaultConnectingLimit}
 Limits number of concurrent establishing connections (0 - unlimited)
 

Member Function Documentation

◆ operator==()

bool storages::postgres::PoolSettings::operator== ( const PoolSettings & rhs) const
inline

Definition at line 190 of file options.hpp.

Member Data Documentation

◆ connecting_limit

std::size_t storages::postgres::PoolSettings::connecting_limit {kDefaultConnectingLimit}

Limits number of concurrent establishing connections (0 - unlimited)

Definition at line 188 of file options.hpp.

◆ max_queue_size

std::size_t storages::postgres::PoolSettings::max_queue_size {kDefaultPoolMaxQueueSize}

Maximum number of clients waiting for a connection.

Definition at line 185 of file options.hpp.

◆ max_size

std::size_t storages::postgres::PoolSettings::max_size {kDefaultPoolMaxSize}

Maximum number of created connections.

Definition at line 182 of file options.hpp.

◆ min_size

std::size_t storages::postgres::PoolSettings::min_size {kDefaultPoolMinSize}

Number of connections created initially.

Definition at line 179 of file options.hpp.


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