SqlProjection<R>.column constructor

SqlProjection<R>.column(
  1. SqlSelection<R> column
)

Creates a scalar projection for one column.

Implementation

factory SqlProjection.column(SqlSelection<R> column) {
  return SqlProjection<R>(
    columns: <SqlSelection<Object?>>[column],
    decode: (row) => row.read(column),
  );
}