exists method

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

Check if given id exists in the table.

Implementation

@override
Future<bool> exists(String table, String primaryColumn, int id) async {
  return _ref(table).where((item) => item[primaryColumn] == id).length == 1;
}