Module forest_filecoin::db::db_mode
source ยท Enumsยง
- Represents different modes of access to the database
Constantsยง
- FOREST_DB_DEV_MODE ๐Environment variable used to set the development mode It is used for development purposes. Possible values:
Functionsยง
- Chooses the correct database directory to use based on the
[FOREST_DB_DEV_MODE]
environment variable (or the lack of it). - Returns the latest versioned database in the chain data directory (if such one exists).
- Lists all versioned databases in the chain data directory. Versioned databases are directories with a
SemVer
version as their name. The rest is discarded.