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