updateWhere method

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

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

Implementation

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