findFirstRow method
Future<ServerHealthMetric?>
findFirstRow(
- Session session, {
- WhereExpressionBuilder<
ServerHealthMetricTable> ? where, - int? offset,
- OrderByBuilder<
ServerHealthMetricTable> ? orderBy, - bool orderDescending = false,
- OrderByListBuilder<
ServerHealthMetricTable> ? orderByList, - 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,
);
}