reth_db

Function is_database_empty

Source
pub fn is_database_empty<P: AsRef<Path>>(path: P) -> bool
Available on crate feature mdbx only.
Expand description

Check if a db is empty. It does not provide any information on the validity of the data in it. We consider a database as non empty when it’s a non empty directory.