delete method

Future<List<CloudStorageEntry>> delete(
  1. DatabaseSession session,
  2. List<CloudStorageEntry> rows, {
  3. OrderByBuilder<CloudStorageEntryTable>? orderBy,
  4. @Deprecated('Use desc() on the orderBy column instead.') bool orderDescending = false,
  5. OrderByListBuilder<CloudStorageEntryTable>? orderByList,
  6. Transaction? transaction,
})

Deletes all CloudStorageEntrys in the list and returns the deleted rows.

To specify the order of the returned rows use orderBy or orderByList when sorting by multiple columns.

This is an atomic operation, meaning that if one of the rows fail to be deleted, none of the rows will be deleted.

Implementation

Future<List<CloudStorageEntry>> delete(
  _i1.DatabaseSession session,
  List<CloudStorageEntry> rows, {
  _i1.OrderByBuilder<CloudStorageEntryTable>? orderBy,
  @Deprecated('Use desc() on the orderBy column instead.')
  bool orderDescending = false,
  _i1.OrderByListBuilder<CloudStorageEntryTable>? orderByList,
  _i1.Transaction? transaction,
}) async {
  return session.db.delete<CloudStorageEntry>(
    rows,
    orderBy: orderBy?.call(CloudStorageEntry.t),
    orderByList: orderByList?.call(CloudStorageEntry.t),
    orderDescending: // ignore: deprecated_member_use
        orderDescending,
    transaction: transaction,
  );
}