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

PostgreSQL connection pool options. More...

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

Public Member Functions

bool operator== (const PoolSettings &rhs) const
 

Public Attributes

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

Detailed Description

PostgreSQL connection pool options.

Dynamic option POSTGRES_CONNECTION_POOL_SETTINGS

Definition at line 174 of file options.hpp.

Member Function Documentation

◆ operator==()

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

Definition at line 187 of file options.hpp.

Member Data Documentation

◆ connecting_limit

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

Limits number of concurrent establishing connections (0 - unlimited)

Definition at line 185 of file options.hpp.

◆ max_queue_size

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

Maximum number of clients waiting for a connection.

Definition at line 182 of file options.hpp.

◆ max_size

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

Maximum number of created connections.

Definition at line 179 of file options.hpp.

◆ min_size

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

Number of connections created initially.

Definition at line 176 of file options.hpp.


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