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 to DEFAULT_VAULT_POST_DATABASE avoids each caller repeating the same environment lookup and path expansion logic.

The FEED_DB_PATH override takes precedence, falling back to the DB_PATH variable consumed by the post scanner, then the default path.

Returns

Path from FEED_DB_PATH, then DB_PATH, then the default vault post database path.

Return type

pathlib.Path