def snapshot.root.get.copied
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:2977
import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb
import Base
import mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend as RangeCursor
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
2977def snapshot.root.get.copied(
2978 root: SnapshotRoot,
2979 copies: Bytes.Bytes & Bytes.Bytes
2980) -> IO(Result<&1, &1, Error, Maybe<&1, Bytes.Bytes>>):
2981 match copies:
2982 case (query, lower):
2983 do IO<Result<&1, &1, Error, Maybe<&1, Bytes.Bytes>>>:
2984 opened : Result<&1, &1, Error, SnapshotCursorRoot> <-
2985 snapshot.root.cursor.open.state(root,
2986 RangeCursor.Bounds{Some{lower}, None{}, None{}})
2987 snapshot.root.get.opened(query, opened)