2025-07-07 23:13:01 +01:00
|
|
|
# Base Database Configuration
|
|
|
|
|
# Database connection and pool settings that apply across environments
|
|
|
|
|
|
|
|
|
|
[database]
|
|
|
|
|
# Default database URL - will be overridden per environment
|
2025-07-11 20:53:20 +01:00
|
|
|
url = "sqlite//:database.db"
|
2025-07-07 23:13:01 +01:00
|
|
|
max_connections = 10
|
|
|
|
|
min_connections = 1
|
|
|
|
|
connect_timeout = 30
|
|
|
|
|
idle_timeout = 600
|
|
|
|
|
max_lifetime = 1800
|
|
|
|
|
|
|
|
|
|
# Database migration settings
|
|
|
|
|
[database.migrations]
|
|
|
|
|
auto_migrate = false
|
|
|
|
|
migration_dir = "migrations"
|
|
|
|
|
create_db_if_missing = true
|
|
|
|
|
|
|
|
|
|
# Connection pool health check
|
|
|
|
|
[database.health]
|
|
|
|
|
enable_ping = true
|
|
|
|
|
ping_timeout = 5
|
|
|
|
|
max_retries = 3
|
|
|
|
|
|
|
|
|
|
# Query logging and performance
|
|
|
|
|
[database.logging]
|
|
|
|
|
log_queries = false
|
|
|
|
|
log_slow_queries = true
|
|
|
|
|
slow_query_threshold = 1000 # milliseconds
|