exists method

  1. @override
Future<bool> exists(
  1. String table,
  2. String primaryColumn,
  3. String id
)

Check if given id exists in the table.

Implementation

@override
Future<bool> exists(String table, String primaryColumn, String id) async {
  final snap = await _getDoc(primaryColumn, table, id);
  return snap?.exists ?? false;
}