exists method
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;
}
Check if given id
exists in the table
.
@override
Future<bool> exists(String table, String primaryColumn, int id) async {
return _ref(table).where((item) => item[primaryColumn] == id).length == 1;
}