searchRowToParameters method

Map<String, Object> searchRowToParameters(
  1. SearchRow row
)

Converts a SearchRow to a value binding map of named SQL parameters.

Implementation

Map<String, Object> searchRowToParameters(SearchRow row) {
  checkState(index.columns.length == row.length);
  var fn = (int i, SearchColumn c) => MapEntry(":$i", row[c.name]!);
  return Map.fromEntries(index.columns.mapIndexed(fn));
}