Mylsm.Bytes.backup_to.rooted: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm Lines 1130-1149 of mylsm-lsm-store@0.6.0.1/mylsm.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&start_line=1130&end_line=1149 import Base import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as RawByteDb import mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend as ByteRangeCursor import mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend as VisibleByteCursor def Bytes.backup_to.rooted( path: String, entries: Nat, fuel: Nat, pair: RawByteDb.Handle & Result<&1, &1, RawByteDb.Error, RawByteDb.SnapshotRoot> ) -> IO(Bytes.Handle & Result<&1, &1, Bytes.Error, Unit>): match pair: case (raw, Fail{error}): IO.pure(Bytes.Handle & Result<&1, &1, Bytes.Error, Unit>, (ByteHandle{raw}, Fail{Bytes.error(error)})) case (raw, Done{root}): do IO>: opened : Result<&1, &1, RawByteDb.Error, VisibleByteCursor.Cursor> <- RawByteDb.snapshot.root.cursor.open(root, ByteRangeCursor.Bounds{None{}, None{}, None{}}) exported : Bytes.Handle & Result<&1, &1, Bytes.Error, Unit> <- Bytes.backup_to.opened(path, entries, fuel, (raw, opened)) return exported Uses (20): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Handle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.backup_to.opened https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=Handle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=SnapshotRoot https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=snapshot.root.cursor.open https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend&name=Bounds https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend&name=Cursor