|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
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) | |
Configuration for PostgreSQL connection pool.
Definition at line 20 of file postgresql_connection_pool.hpp.
| PostgreSQLConnectionParams relx::connection::PostgreSQLConnectionPoolConfig::connection_params |
Connection parameters for PostgreSQL.
Definition at line 22 of file postgresql_connection_pool.hpp.
| 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.
| size_t relx::connection::PostgreSQLConnectionPoolConfig::initial_size = 5 |
Initial number of connections to create.
Definition at line 25 of file postgresql_connection_pool.hpp.
| 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.
| size_t relx::connection::PostgreSQLConnectionPoolConfig::max_size = 10 |
Maximum number of connections allowed.
Definition at line 28 of file postgresql_connection_pool.hpp.
| bool relx::connection::PostgreSQLConnectionPoolConfig::validate_connections = true |
Whether to validate connections before returning them.
Definition at line 34 of file postgresql_connection_pool.hpp.