mapToSqlLiteral method
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);
}
}