findFirstRow method

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

Implementation

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