Provides DuckDB-backed storage for analytics and request logging data.
- Initializes a DuckDB database and exposes it via the plugin registry
- Creates directories automatically and reuses the configured database path
- Optionally runs VACUUM/OPTIMIZE on shutdown for compactness
DuckDBStorageConfigtoggles enablement, database path, and optimizations- Other plugins reference the exposed
log_storageservice by name - Generate defaults with
python3 scripts/generate_config_from_model.py \ --format toml --plugin duckdb_storage --config-class DuckDBStorageConfig
[plugins.duckdb_storage]
# enabled = true
# database_path = "~/.local/share/ccproxy/metrics.duckdb"
# optimize_on_shutdown = falseplugin.py: runtime lifecycle and service registrationstorage.py:SimpleDuckDBStoragehelper for connectionsroutes.py: FastAPI router under/duckdbfor simple diagnostics