findFirstRow method

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

Implementation

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