findFirstRow method

Future<LogEntry?> findFirstRow(
  1. Session session, {
  2. WhereExpressionBuilder<LogEntryTable>? where,
  3. int? offset,
  4. OrderByBuilder<LogEntryTable>? orderBy,
  5. bool orderDescending = false,
  6. OrderByListBuilder<LogEntryTable>? orderByList,
  7. Transaction? transaction,
})

Implementation

Future<LogEntry?> findFirstRow(
  _i1.Session session, {
  _i1.WhereExpressionBuilder<LogEntryTable>? where,
  int? offset,
  _i1.OrderByBuilder<LogEntryTable>? orderBy,
  bool orderDescending = false,
  _i1.OrderByListBuilder<LogEntryTable>? orderByList,
  _i1.Transaction? transaction,
}) async {
  return session.db.findFirstRow<LogEntry>(
    where: where?.call(LogEntry.t),
    orderBy: orderBy?.call(LogEntry.t),
    orderByList: orderByList?.call(LogEntry.t),
    orderDescending: orderDescending,
    offset: offset,
    transaction: transaction,
  );
}