mapToSqlLiteral method

  1. @override
String mapToSqlLiteral(
  1. GenerationContext context,
  2. double dartValue
)
override

Maps the dartValue to a SQL snippet that can be embedded as a literal into SQL queries generated by drift.

Implementation

@override
String mapToSqlLiteral(GenerationContext context, double dartValue) {
  if (context.dialect == SqlDialect.sqlite) {
    return _doubleToSqliteLiteral(codec, dartValue);
  } else {
    return super.mapToSqlLiteral(context, dartValue);
  }
}