stringifySqliteValue function

String stringifySqliteValue(
  1. Object? value
)

Renders a SQLite value for a table cell (omp's stringifySqliteValue).

Implementation

String stringifySqliteValue(Object? value) {
  if (value == null) return 'NULL';
  if (value is String) return value;
  if (value is num || value is bool) return '$value';
  if (value is Uint8List) return '<BLOB ${formatToolSize(value.length)}>';
  return '$value';
}