updateWhere method

Future<List<ServerHealthConnectionInfo>> updateWhere(
  1. DatabaseSession session, {
  2. required ColumnValueListBuilder<ServerHealthConnectionInfoUpdateTable> columnValues,
  3. required WhereExpressionBuilder<ServerHealthConnectionInfoTable> where,
  4. int? limit,
  5. int? offset,
  6. OrderByBuilder<ServerHealthConnectionInfoTable>? orderBy,
  7. OrderByListBuilder<ServerHealthConnectionInfoTable>? orderByList,
  8. @Deprecated('Use desc() on the orderBy column instead.') bool orderDescending = false,
  9. Transaction? transaction,
})

Updates all ServerHealthConnectionInfos matching the where expression with the specified columnValues. Returns the list of updated rows.

Implementation

Future<List<ServerHealthConnectionInfo>> updateWhere(
  _i1.DatabaseSession session, {
  required _i1.ColumnValueListBuilder<ServerHealthConnectionInfoUpdateTable>
  columnValues,
  required _i1.WhereExpressionBuilder<ServerHealthConnectionInfoTable> where,
  int? limit,
  int? offset,
  _i1.OrderByBuilder<ServerHealthConnectionInfoTable>? orderBy,
  _i1.OrderByListBuilder<ServerHealthConnectionInfoTable>? orderByList,
  @Deprecated('Use desc() on the orderBy column instead.')
  bool orderDescending = false,
  _i1.Transaction? transaction,
}) async {
  return session.db.updateWhere<ServerHealthConnectionInfo>(
    columnValues: columnValues(ServerHealthConnectionInfo.t.updateTable),
    where: where(ServerHealthConnectionInfo.t),
    limit: limit,
    offset: offset,
    orderBy: orderBy?.call(ServerHealthConnectionInfo.t),
    orderByList: orderByList?.call(ServerHealthConnectionInfo.t),
    orderDescending: // ignore: deprecated_member_use
        orderDescending,
    transaction: transaction,
  );
}