Database
Boost stores metadata about deals in a sqlite database in the root directory of the Boost repo.
To open the database use a sqlite client:
sqlite3 boost.db
The database tables are
Deals
metadata about Boost storage deals (eg deal proposal) and their current state (eg checkpoint)FundsLogs
log of each change in funds reserved for a dealFundsTagged
how much FIL is tagged for deal collateral and publish message for a dealStorageLogs
log of each change in storage reserved for a dealStorageTagged
how much storage is tagged for a deal
Boost keeps a separate database just for deal logs, so as to make it easier to manage log data separately from deal metadata. The logs database is named boost.logs.db
and it has a single table DealLogs
that stores logs for each deal, indexed by uuid.
Migrations
Boost uses goose
(https://pressly.github.io/goose/) tool and library for handling sqlite3 migrations.
goose
can be installed following the instructions at https://pressly.github.io/goose/installation/
Migrations in Boost are stored in the /db/migrations
directory.
Boost handles database migrations on start-up. If a user is running an older version of Boost, migrations up to the latest version are automatically applied on start-up.
Developers can use goose
to inspect and apply migrations using the CLI:
Last updated