reth_db::mdbx

Function init_db_for

Source
pub fn init_db_for<P: AsRef<Path>, TS: TableSet>(
    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 the given TableSet if necessary. Read/Write mode.