findFirstRow<T extends TableRow> method

Future<T?> findFirstRow<T extends TableRow>({
  1. Expression? where,
  2. int? offset,
  3. Column? orderBy,
  4. List<Order>? orderByList,
  5. bool orderDescending = false,
  6. Transaction? transaction,
  7. Include? include,
})

Find a single TableRow from a table, using the provided where

Implementation

Future<T?> findFirstRow<T extends TableRow>({
  Expression? where,
  int? offset,
  Column? orderBy,
  List<Order>? orderByList,
  bool orderDescending = false,
  Transaction? transaction,
  Include? include,
}) async {
  return await _databaseConnection.findFirstRow<T>(
    _session,
    where: where,
    offset: offset,
    orderBy: orderBy,
    orderByList: orderByList,
    orderDescending: orderDescending,
    transaction: transaction,
    include: include,
  );
}