pub async fn init(
init: impl FnOnce(&Connection) -> Result<()> + Send + Sync + 'static,
) -> Result<(Snapshot, Log)>Expand description
Initializes a new database by running the provided initialization script and returns a snapshot and the first Log. Note: The snapshot already includes the initialization script, so the log should not be reapplied.