def absorb

bend-kit-postgres@0.3.0.0 · postgres.bend:494

import bend-kit-postgres@0.3.0.0/postgres.bend as Postgres
import Base
import bend-kit-postgres@0.3.0.0/codec.bend as Codec

494def absorb(a: Acc, m: Codec.Back) -> Step:
495  match m:
496    case Codec.DataRow{cols}:
497      Go{acc.row(a, cols)}
498    case Codec.RowDescription{fs}:
499      Go{acc.fields(a, fs)}
500    case Codec.CommandComplete{t}:
501      Go{acc.tag(a, t)}
502    case Codec.ErrorResponse{fs}:
503      Go{acc.err(a, err.of(fs))}
504    case Codec.ReadyForQuery{+s}:
505      Stop{a, s}
506    case Codec.ParseComplete{}:
507      Go{a}
508    case Codec.BindComplete{}:
509      Go{a}
510    case Codec.NoData{}:
511      Go{a}
512    case Codec.EmptyQuery{}:
513      Go{a}
514    case Codec.CloseComplete{}:
515      Go{a}
516    case Codec.PortalSuspended{}:
517      Go{a}
518    case _:
519      Odd{}

Uses (8)

Used by (1)