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