def exec
import bend-kit-commands@0.4.0.0/commands.bend as Commandsimport Base
import bend-kit-sqlite@0.1.0.1/sqlite.bend as Sqlite
113# Steps a statement and ignores any row, then resets it, also after a failed step.
114def exec(+stmt: U32) -> Run(Unit):
115 do IO<Result<&1, &1, U32 & String, Unit>>:
116 r : Result<&1, &1, U32 & String, Bool> <- Sqlite.stmt.step(stmt)
117 z : Result<&1, &1, U32 & String, Unit> <- Sqlite.stmt.reset(stmt)
118 return first(Unit, unit(Bool, r), z)