get method

Future<List<T>> get()

---------- GET ----------

Implementation

Future<List<T>> get() async {
  final rows = await model.dbService.get(
    model.table,
    select: base.selectColumns,
    distinct: base.distinctValue,
    joins: base.joins,
    where: base.where,
    params: base.params,
    groupBy: base.groupByColumns,
    orderBy: base.orderByClause,
    limit: base.limitValue,
    offset: base.offsetValue,
  );

  var items = rows.map((row) => model.fromMap(row)).toList();

  if (_relations.isNotEmpty) {
    items = await model.loadRelations(items, include: _relations);
  }

  return items;
}