30 lines
674 B
TOML
30 lines
674 B
TOML
![]() |
# Base Database Configuration
|
||
|
# Database connection and pool settings that apply across environments
|
||
|
|
||
|
[database]
|
||
|
# Default database URL - will be overridden per environment
|
||
|
url = "sqlite:database.db"
|
||
|
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
|