def open_existing
import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDbimport Base
import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs
468# Opens an existing byte database and replays its binary WAL.
469def open_existing(+path: String) -> IO(Result<&1, &1, Error, Handle>):
470 do IO<Result<&1, &1, Error, Handle>>:
471 present : Result<&1, &1, U32 & String, Bool> <- Fs.exists(path ++ "/WAL")
472 open.existing.present(path, present)