getById method
Return data that is referenced by the given Id
in the table
.
Implementation
@override
Future<Map<String, dynamic>> getById(
String table,
String primaryColumn,
int id,
) async {
final response =
await _from(table).select().eq(primaryColumn, id).single().execute();
if (response.error != null) {
throw response.error!;
}
return response.data as Map<String, dynamic>;
}