clj-r2dbc.impl.sql.result

R2DBC Result processing for clj-r2dbc.

Provides:
  map-result - processes a Result, dispatching on segment type, collects to vector.

Segment dispatch:
  Result$RowSegment  - passes Row to row-fn, emits the result.
  Result$UpdateCount - emits {:clj-r2dbc/update-count n}.
  Result$Message     - discarded silently (advisory messages).
  unknown segment    - discarded silently.

This namespace is an implementation detail; do not use from application code.

map-result

(map-result result row-fn)
Process an R2DBC Result, dispatching on segment type.

Args:
  result - the R2DBC Result to process.
  row-fn - 1-arity (Row -> value) function applied to each row segment.

Returns a Missionary task resolving to a persistent vector of all emitted values:
  Result$RowSegment  - (row-fn row), appended to result vector.
  Result$UpdateCount - {:clj-r2dbc/update-count n}, appended to result vector.
  Result$Message     - discarded (advisory messages do not appear in result).
  unknown segment    - discarded.

Example:
  (m/? (map-result result row-fn))