reth_db::mdbx

Function init_db

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

Opens up an existing database or creates a new one at the specified path. Creates tables defined in Tables if necessary. Read/Write mode.