findFirstRow method

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

Implementation

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