def row.put

bend-kit-commands@0.4.0.0 · commands.bend:295

import bend-kit-commands@0.4.0.0/commands.bend as Commands
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

295def row.put(v: Maybe<Bytes.Bytes>, +save: U32, +del: U32, k: Bytes.Bytes) -> Run(Unit):
296  match v:
297    case Some{x}:
298      do Run<Unit>:
299        bind(save, 1, k)
300        bind(save, 2, x)
301        exec(save)
302    case None{}:
303      do Run<Unit>:
304        bind(del, 1, k)
305        exec(del)

Uses (8)

Used by (1)