updateWhere method
Future<List<ServerHealthMetric> >
updateWhere(
- DatabaseSession session, {
- required ColumnValueListBuilder<
ServerHealthMetricUpdateTable> columnValues, - required WhereExpressionBuilder<
ServerHealthMetricTable> where, - int? limit,
- int? offset,
- OrderByBuilder<
ServerHealthMetricTable> ? orderBy, - OrderByListBuilder<
ServerHealthMetricTable> ? orderByList, - bool orderDescending = false,
- Transaction? transaction,
Updates all ServerHealthMetrics matching the where expression with the specified columnValues.
Returns the list of updated rows.
Implementation
Future<List<ServerHealthMetric>> updateWhere(
_i1.DatabaseSession session, {
required _i1.ColumnValueListBuilder<ServerHealthMetricUpdateTable>
columnValues,
required _i1.WhereExpressionBuilder<ServerHealthMetricTable> where,
int? limit,
int? offset,
_i1.OrderByBuilder<ServerHealthMetricTable>? orderBy,
_i1.OrderByListBuilder<ServerHealthMetricTable>? orderByList,
bool orderDescending = false,
_i1.Transaction? transaction,
}) async {
return session.db.updateWhere<ServerHealthMetric>(
columnValues: columnValues(ServerHealthMetric.t.updateTable),
where: where(ServerHealthMetric.t),
limit: limit,
offset: offset,
orderBy: orderBy?.call(ServerHealthMetric.t),
orderByList: orderByList?.call(ServerHealthMetric.t),
orderDescending: orderDescending,
transaction: transaction,
);
}