mapToSqlConstant method

  1. @override
String mapToSqlConstant(
  1. DateTime? content
)
override

Maps the given content to a sql literal that can be included in the query string.

Implementation

@override
String mapToSqlConstant(DateTime? content) {
  if (content == null) return 'NULL';

  return (content.millisecondsSinceEpoch ~/ 1000).toString();
}