updateById method
Future<ServerHealthMetric?>
updateById(
- DatabaseSession session,
- int id, {
- required ColumnValueListBuilder<
ServerHealthMetricUpdateTable> columnValues, - Transaction? transaction,
Updates a single ServerHealthMetric by its id with the specified columnValues.
Returns the updated row or null if no row with the given id exists.
Implementation
Future<ServerHealthMetric?> updateById(
_i1.DatabaseSession session,
int id, {
required _i1.ColumnValueListBuilder<ServerHealthMetricUpdateTable>
columnValues,
_i1.Transaction? transaction,
}) async {
return session.db.updateById<ServerHealthMetric>(
id,
columnValues: columnValues(ServerHealthMetric.t.updateTable),
transaction: transaction,
);
}