checkpoint_vault_settlement_database_if_exists
Documentation for eth_defi.vault.settlement_data.checkpoint_vault_settlement_database_if_exists function.
- checkpoint_vault_settlement_database_if_exists(path=None)
Checkpoint the settlement DuckDB database if it exists.
DuckDB can keep recent writes in a WAL file while a connection is open. Backup and export code copies only
vault-settlements.duckdb, so make sure the main database file is self-contained before copying it.- Parameters
path (Optional[pathlib.Path]) – Optional DuckDB path.
Noneresolves to the default pipeline path.- Returns
Trueif an existing database was checkpointed,Falseif there was no database file.- Return type