def outbox.row

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

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
import bend-kit-sqlite@0.1.0.1/sqlite.bend as Sqlite

416def outbox.row(row: Bool, +s: U32) -> Run(Maybe<Pending>):
417  match row:
418    case False{}:
419      Run.pure(Maybe<Pending>, None{})
420    case True{}:
421      do Run<Maybe<Pending>>:
422        seq : U32 <- Sqlite.stmt.column.int(s, 0)
423        id : String <- Sqlite.stmt.column.text(s, 1)
424        e : Bytes.Bytes <- column(s, 2)
425        return Some{Pending{seq, id, e}}

Uses (12)

Used by (1)