updateWhere method

Future<List<CloudStorageEntry>> updateWhere(
  1. Session session, {
  2. required ColumnValueListBuilder<CloudStorageEntryUpdateTable> columnValues,
  3. required WhereExpressionBuilder<CloudStorageEntryTable> where,
  4. int? limit,
  5. int? offset,
  6. OrderByBuilder<CloudStorageEntryTable>? orderBy,
  7. OrderByListBuilder<CloudStorageEntryTable>? orderByList,
  8. bool orderDescending = false,
  9. Transaction? transaction,
})

Updates all CloudStorageEntrys matching the where expression with the specified columnValues. Returns the list of updated rows.

Implementation

Future<List<CloudStorageEntry>> updateWhere(
  _i1.Session session, {
  required _i1.ColumnValueListBuilder<CloudStorageEntryUpdateTable>
  columnValues,
  required _i1.WhereExpressionBuilder<CloudStorageEntryTable> where,
  int? limit,
  int? offset,
  _i1.OrderByBuilder<CloudStorageEntryTable>? orderBy,
  _i1.OrderByListBuilder<CloudStorageEntryTable>? orderByList,
  bool orderDescending = false,
  _i1.Transaction? transaction,
}) async {
  return session.db.updateWhere<CloudStorageEntry>(
    columnValues: columnValues(CloudStorageEntry.t.updateTable),
    where: where(CloudStorageEntry.t),
    limit: limit,
    offset: offset,
    orderBy: orderBy?.call(CloudStorageEntry.t),
    orderByList: orderByList?.call(CloudStorageEntry.t),
    orderDescending: orderDescending,
    transaction: transaction,
  );
}