syntaxis/config/api/features/database.toml.template

25 lines
927 B
Plaintext
Raw Normal View History

# Database Feature Configuration
#
# This configuration controls database migrations and connection pooling.
# This file is loaded ONLY if [server.features.database].enabled = true in the main config.
# (The enabled flag is set in the main lifecycle-api-config.toml file)
[database]
# Path to directory containing SQL migration files
# Migrations should be named with timestamps: YYYYMMDD_HHmmss_description.sql
# Can be absolute or relative to the config file location
migrations_path = "./migrations"
# Enable automatic migrations on server startup
# When true: pending migrations are automatically applied when the server starts
# When false: migrations must be run manually via CLI command
auto_migrate = true
# Connection pool size (number of concurrent database connections)
# Recommended: 10 for development, 20-50 for production
connection_pool_size = 10
# Enable query logging (for debugging)
log_queries = false