Commands.handle: def of bend-kit-commands@0.4.0.0 Import: import bend-kit-commands@0.4.0.0/commands.bend as Commands Lines 386-395 of bend-kit-commands@0.4.0.0/commands.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-commands@0.4.0.0/commands.bend&start_line=386&end_line=395 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # Runs one command in one transaction: find its record, read the rows that keys names, decide, and commit rows, record, and effects. # at is the record's time for prune, in seconds. decide sees the committed rows, one for each key in order, and the payload. def handle( ~keys: Bytes.Bytes -> List, ~decide: List -> Bytes.Bytes -> Decision, Bytes.Bytes, Bytes.Bytes>, +st: Store, id: String, payload: Bytes.Bytes, at: U32 ) -> Run(Reply): do IO>>: r : Result<&1, &1, U32 & String, Reply> <- handle.txn(~keys, ~decide, st, id, payload, at) handle.end(r, st) Uses (15): 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=List 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=Decision https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=Reply https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=Row https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=Run https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=Store https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=handle.end https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=handle.txn