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

Public Attributes | |
| backend_type | type { backend_type::postgres } |
| Database backend type. | |
| std::string | connection_string { "host=localhost port=5432 dbname=postgres" } |
| Connection string (format depends on backend) | |
| bool | enable_ssl { false } |
| Enable SSL/TLS for database connections. | |
| std::string | ssl_cert_path {} |
| Path to SSL certificate file. | |
| std::string | ssl_key_path {} |
| Path to SSL key file. | |
| bool | enable_prepared_statements { true } |
| Enable prepared statement caching. | |
| bool | enable_query_cache { false } |
| Enable query result caching. | |
| std::size_t | query_cache_size { 100 * 1024 * 1024 } |
| Maximum size of query cache in bytes. | |
| std::string | username {} |
| Database username. | |
| std::string | password {} |
| Database password (stored in memory - consider using secrets management) | |
Database-specific configuration.
Contains connection details and database-specific settings.
Definition at line 217 of file configuration.h.
| std::string database::integrated::database_config::connection_string { "host=localhost port=5432 dbname=postgres" } |
Connection string (format depends on backend)
Definition at line 223 of file configuration.h.
Referenced by test_default_values(), test_struct_semantics(), and test_zero_config().
| bool database::integrated::database_config::enable_prepared_statements { true } |
Enable prepared statement caching.
Definition at line 235 of file configuration.h.
Referenced by test_default_values().
| bool database::integrated::database_config::enable_query_cache { false } |
| bool database::integrated::database_config::enable_ssl { false } |
Enable SSL/TLS for database connections.
Definition at line 226 of file configuration.h.
Referenced by test_default_values().
| std::string database::integrated::database_config::password {} |
Database password (stored in memory - consider using secrets management)
Definition at line 247 of file configuration.h.
| std::size_t database::integrated::database_config::query_cache_size { 100 * 1024 * 1024 } |
Maximum size of query cache in bytes.
Definition at line 241 of file configuration.h.
| std::string database::integrated::database_config::ssl_cert_path {} |
| std::string database::integrated::database_config::ssl_key_path {} |
| backend_type database::integrated::database_config::type { backend_type::postgres } |
Database backend type.
Definition at line 220 of file configuration.h.
Referenced by test_config_construction(), test_default_values(), test_get_config(), test_struct_semantics(), and test_zero_config().
| std::string database::integrated::database_config::username {} |