updateById method
Future<CloudStorageDirectDownloadEntry?>
updateById(
- DatabaseSession session,
- int id, {
- required ColumnValueListBuilder<
CloudStorageDirectDownloadEntryUpdateTable> columnValues, - Transaction? transaction,
Updates a single CloudStorageDirectDownloadEntry by its id with the specified columnValues.
Returns the updated row or null if no row with the given id exists.
Implementation
Future<CloudStorageDirectDownloadEntry?> updateById(
_is.DatabaseSession session,
int id, {
required _is.ColumnValueListBuilder<
CloudStorageDirectDownloadEntryUpdateTable
>
columnValues,
_is.Transaction? transaction,
}) async {
return session.db.updateById<CloudStorageDirectDownloadEntry>(
id,
columnValues: columnValues(CloudStorageDirectDownloadEntry.t.updateTable),
transaction: transaction,
);
}