def create

mylsm-lsm-store@0.6.0.1 · src/ByteWalIo.bend:470

import mylsm-lsm-store@0.6.0.1/src/ByteWalIo.bend as ByteWalIo
import Base

470# Creates and durably publishes an empty generation-four byte WAL.
471def create(+path: String) -> IO(Result<&1, &1, U32 & String, Unit>):
472  do IO<Result<&1, &1, U32 & String, Unit>>:
473    opened : Result<&1, &1, U32 & String, File> <- File.open(path, "w")
474    create.opened(opened, path)

Uses (10)

Used by (2)