findFirstRow method

Future<ReadWriteTestEntry?> findFirstRow(
  1. DatabaseAccessor databaseAccessor, {
  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.DatabaseAccessor databaseAccessor, {
  _i1.WhereExpressionBuilder<ReadWriteTestEntryTable>? where,
  int? offset,
  _i1.OrderByBuilder<ReadWriteTestEntryTable>? orderBy,
  bool orderDescending = false,
  _i1.OrderByListBuilder<ReadWriteTestEntryTable>? orderByList,
  _i1.Transaction? transaction,
}) async {
  return databaseAccessor.db.findFirstRow<ReadWriteTestEntry>(
    where: where?.call(ReadWriteTestEntry.t),
    orderBy: orderBy?.call(ReadWriteTestEntry.t),
    orderByList: orderByList?.call(ReadWriteTestEntry.t),
    orderDescending: orderDescending,
    offset: offset,
    transaction: transaction ?? databaseAccessor.transaction,
  );
}