updateWhere method
Future<List<SessionLogEntry> >
updateWhere(
- Session session, {
- required ColumnValueListBuilder<
SessionLogEntryUpdateTable> columnValues, - required WhereExpressionBuilder<
SessionLogEntryTable> where, - int? limit,
- int? offset,
- OrderByBuilder<
SessionLogEntryTable> ? orderBy, - OrderByListBuilder<
SessionLogEntryTable> ? orderByList, - bool orderDescending = false,
- Transaction? transaction,
Updates all SessionLogEntrys matching the where expression with the specified columnValues.
Returns the list of updated rows.
Implementation
Future<List<SessionLogEntry>> updateWhere(
_i1.Session session, {
required _i1.ColumnValueListBuilder<SessionLogEntryUpdateTable>
columnValues,
required _i1.WhereExpressionBuilder<SessionLogEntryTable> where,
int? limit,
int? offset,
_i1.OrderByBuilder<SessionLogEntryTable>? orderBy,
_i1.OrderByListBuilder<SessionLogEntryTable>? orderByList,
bool orderDescending = false,
_i1.Transaction? transaction,
}) async {
return session.db.updateWhere<SessionLogEntry>(
columnValues: columnValues(SessionLogEntry.t.updateTable),
where: where(SessionLogEntry.t),
limit: limit,
offset: offset,
orderBy: orderBy?.call(SessionLogEntry.t),
orderByList: orderByList?.call(SessionLogEntry.t),
orderDescending: orderDescending,
transaction: transaction,
);
}