updateWhere method
Future<List<MessageLogEntry> >
updateWhere(
- Session session, {
- required ColumnValueListBuilder<
MessageLogEntryUpdateTable> columnValues, - required WhereExpressionBuilder<
MessageLogEntryTable> where, - int? limit,
- int? offset,
- OrderByBuilder<
MessageLogEntryTable> ? orderBy, - OrderByListBuilder<
MessageLogEntryTable> ? orderByList, - bool orderDescending = false,
- 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,
);
}