getRelation method
Get a relation (by id)
Implementation
@override
Relation getRelation(String relationId) {
final rows = _select(
'relations',
where: 'id = ?',
whereArgs: [relationId],
);
if (rows.isEmpty) {
throw StateError('Relation with id $relationId not found');
}
return _rowToRelation(rows.first);
}