DatumCustomSqlBuilder typedef

DatumCustomSqlBuilder = String? Function(Filter filter, String getPlaceholder(), List<Object?> params)

A builder function for custom SQL operator logic.

It receives the Filter and a function to get the next placeholder. It must add its own values to the params list. It should return the full SQL condition string (e.g., ST_Distance(location, ?) < ?).

Implementation

typedef DatumCustomSqlBuilder = String? Function(
  Filter filter,
  String Function() getPlaceholder,
  List<Object?> params,
);