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. None resolves to the default pipeline path.

Returns

True if an existing database was checkpointed, False if there was no database file.

Return type

bool