reth_db::mdbx

Function create_db

source
pub fn create_db<P: AsRef<Path>>(
    path: P,
    args: DatabaseArguments,
) -> Result<DatabaseEnv>
Available on crate feature mdbx only.
Expand description

Creates a new database at the specified path if it doesn’t exist. Does NOT create tables. Check init_db.