def get.retained

mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:1395

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/VisibleStats.bend as VisibleStats
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

1395# Reads one raw byte key while retaining the database handle.
1396def get.retained(
1397  base_stats: VisibleStats.Stats,
1398  pair: Handle & Result<&1, &1, Error, Maybe<&1, Bytes.Bytes>>
1399) -> Handle & Result<&1, &1, Error, Maybe<&1, Bytes.Bytes>>:
1400  match pair:
1401    case (Handle{path, lock, table, state, _}, result):
1402      (Handle{path, lock, table, state, base_stats}, result)

Uses (8)

Used by (1)