updateWhere method

Future<List<MessageLogEntry>> updateWhere(
  1. Session session, {
  2. required ColumnValueListBuilder<MessageLogEntryUpdateTable> columnValues,
  3. required WhereExpressionBuilder<MessageLogEntryTable> where,
  4. int? limit,
  5. int? offset,
  6. OrderByBuilder<MessageLogEntryTable>? orderBy,
  7. OrderByListBuilder<MessageLogEntryTable>? orderByList,
  8. bool orderDescending = false,
  9. Transaction? transaction,
})

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

Implementation

Future<List<MessageLogEntry>> updateWhere(
  _i1.Session session, {
  required _i1.ColumnValueListBuilder<MessageLogEntryUpdateTable>
      columnValues,
  required _i1.WhereExpressionBuilder<MessageLogEntryTable> where,
  int? limit,
  int? offset,
  _i1.OrderByBuilder<MessageLogEntryTable>? orderBy,
  _i1.OrderByListBuilder<MessageLogEntryTable>? orderByList,
  bool orderDescending = false,
  _i1.Transaction? transaction,
}) async {
  return session.db.updateWhere<MessageLogEntry>(
    columnValues: columnValues(MessageLogEntry.t.updateTable),
    where: where(MessageLogEntry.t),
    limit: limit,
    offset: offset,
    orderBy: orderBy?.call(MessageLogEntry.t),
    orderByList: orderByList?.call(MessageLogEntry.t),
    orderDescending: orderDescending,
    transaction: transaction,
  );
}