resolve_feed_database_path
Documentation for eth_defi.feed.database.resolve_feed_database_path function.
- resolve_feed_database_path()
Resolve the vault post feed DuckDB database path.
Mirrors the resolution used by the post scanner (
scripts/erc-4626/scan-vault-posts.py) so the JSON export reads the same database the feed collector writes. Keeping the resolver next toDEFAULT_VAULT_POST_DATABASEavoids each caller repeating the same environment lookup and path expansion logic.The
FEED_DB_PATHoverride takes precedence, falling back to theDB_PATHvariable consumed by the post scanner, then the default path.- Returns
Path from
FEED_DB_PATH, thenDB_PATH, then the default vault post database path.- Return type