purgeOlderThan method
Implementation
Future<int> purgeOlderThan(Duration age) async {
final threshold = DateTime.now().subtract(age);
final query = delete(tiles)..where((t) => t.createdAt.isSmallerThanValue(threshold));
return await query.go();
}