forCustomer method
Implementation
@override
Future<List<DVPurchaseGrant>> forCustomer(String customerKey) async {
await _ensureTables();
final List<Map<String, Object?>> rows = await db.query(
'SELECT * FROM $grantsTable WHERE customer_key = ?',
<Object?>[customerKey],
);
return rows.map(_read).toList();
}