createMapperToDriftRow method

DriftRow Function(RawRow) createMapperToDriftRow(
  1. DriftDialect dialect
)

Creates a function that, given a RawRow, extracts the DriftRow for expressions.

Implementation

DriftRow Function(RawRow) createMapperToDriftRow(DriftDialect dialect) {
  final fakeResultSet = DriftResultSet(
    this,
    RawResultSet.fromRows(columnNames: [], rows: []),
    dialect,
  );
  return (row) => DriftRow(fakeResultSet, row);
}