relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::connection::PostgreSQLConnectionPoolConfig Struct Reference

Configuration for PostgreSQL connection pool. More...

#include <relx/connection/postgresql_connection_pool.hpp>

Public Attributes

PostgreSQLConnectionParams connection_params
 Connection parameters for PostgreSQL.
 
size_t initial_size = 5
 Initial number of connections to create.
 
size_t max_size = 10
 Maximum number of connections allowed.
 
std::chrono::milliseconds connection_timeout {5000}
 Maximum time to wait for a connection before timeout (ms)
 
bool validate_connections = true
 Whether to validate connections before returning them.
 
std::chrono::milliseconds max_idle_time {60000}
 Maximum idle time before a connection is closed (ms)
 

Detailed Description

Configuration for PostgreSQL connection pool.

Definition at line 20 of file postgresql_connection_pool.hpp.

Member Data Documentation

◆ connection_params

PostgreSQLConnectionParams relx::connection::PostgreSQLConnectionPoolConfig::connection_params

Connection parameters for PostgreSQL.

Definition at line 22 of file postgresql_connection_pool.hpp.

◆ connection_timeout

std::chrono::milliseconds relx::connection::PostgreSQLConnectionPoolConfig::connection_timeout {5000}

Maximum time to wait for a connection before timeout (ms)

Definition at line 31 of file postgresql_connection_pool.hpp.

◆ initial_size

size_t relx::connection::PostgreSQLConnectionPoolConfig::initial_size = 5

Initial number of connections to create.

Definition at line 25 of file postgresql_connection_pool.hpp.

◆ max_idle_time

std::chrono::milliseconds relx::connection::PostgreSQLConnectionPoolConfig::max_idle_time {60000}

Maximum idle time before a connection is closed (ms)

Definition at line 37 of file postgresql_connection_pool.hpp.

◆ max_size

size_t relx::connection::PostgreSQLConnectionPoolConfig::max_size = 10

Maximum number of connections allowed.

Definition at line 28 of file postgresql_connection_pool.hpp.

◆ validate_connections

bool relx::connection::PostgreSQLConnectionPoolConfig::validate_connections = true

Whether to validate connections before returning them.

Definition at line 34 of file postgresql_connection_pool.hpp.


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