def rows_of
import cswap-bend-cli@0.1.0.0/daemon/gather.bend as Gatherimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/fs.bend as Fs
import cswap-bend-cli@0.1.0.0/store/seq.bend as SSeq
107# The cached rows (accounts object); {} for a missing, torn or other-schema file.
108def rows_of(r: Fs.Res(String)) -> Json.Json:
109 match r:
110 case Fail{e}:
111 SSeq.accounts_of(Json.JNull{})
112 case Done{t}:
113 rows2(Json.parse(t))