|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
Connection pool configuration. More...
#include <configuration.h>

Public Attributes | |
| std::string | pool_name { "default_pool" } |
| Unique name for this pool (for logging and monitoring) | |
| std::size_t | min_connections { 2 } |
| Minimum number of connections to maintain. | |
| std::size_t | max_connections { 10 } |
| Maximum number of connections allowed. | |
| std::chrono::seconds | connection_timeout { 30 } |
| Timeout for acquiring a connection from the pool. | |
| std::chrono::seconds | idle_timeout { 300 } |
| Time before an idle connection is closed. | |
| bool | enable_health_checks { true } |
| Enable periodic health checks on connections. | |
| std::chrono::seconds | health_check_interval { 60 } |
| Interval between health checks. | |
| bool | enable_priority_queue { false } |
| Enable priority-based connection acquisition. | |
Connection pool configuration.
Controls the behavior of the database connection pool including sizing, timeouts, and health checking.
Definition at line 90 of file configuration.h.
| std::chrono::seconds database::integrated::pool_config::connection_timeout { 30 } |
Timeout for acquiring a connection from the pool.
Definition at line 102 of file configuration.h.
Referenced by database::integrated::unified_database_system::builder::builder(), database::integrated::unified_db_config::set_timeouts(), and test_default_values().
| bool database::integrated::pool_config::enable_health_checks { true } |
Enable periodic health checks on connections.
Definition at line 108 of file configuration.h.
Referenced by test_default_values().
| bool database::integrated::pool_config::enable_priority_queue { false } |
Enable priority-based connection acquisition.
Definition at line 114 of file configuration.h.
Referenced by database::integrated::unified_db_config::enable_priority_scheduling(), and test_default_values().
| std::chrono::seconds database::integrated::pool_config::health_check_interval { 60 } |
| std::chrono::seconds database::integrated::pool_config::idle_timeout { 300 } |
Time before an idle connection is closed.
Definition at line 105 of file configuration.h.
Referenced by database::integrated::unified_db_config::set_timeouts(), and test_default_values().
| std::size_t database::integrated::pool_config::max_connections { 10 } |
Maximum number of connections allowed.
Definition at line 99 of file configuration.h.
Referenced by database::integrated::unified_database_system::builder::builder(), database::integrated::unified_db_config::set_pool_size(), test_config_construction(), test_default_values(), test_get_config(), test_struct_semantics(), and test_zero_config().
| std::size_t database::integrated::pool_config::min_connections { 2 } |
Minimum number of connections to maintain.
Definition at line 96 of file configuration.h.
Referenced by database::integrated::unified_database_system::builder::builder(), database::integrated::unified_db_config::set_pool_size(), test_config_construction(), test_default_values(), test_get_config(), test_struct_semantics(), and test_zero_config().
| std::string database::integrated::pool_config::pool_name { "default_pool" } |
Unique name for this pool (for logging and monitoring)
Definition at line 93 of file configuration.h.
Referenced by database::integrated::unified_db_config::set_pool_name(), and test_default_values().