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