forCustomer method

  1. @override
Future<List<DVPurchaseGrant>> forCustomer(
  1. String customerKey
)
override

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();
}