update method
Future<List<LogEntry> >
update(
- Session session,
- List<
LogEntry> rows, { - ColumnSelections<
LogEntryTable> ? columns, - Transaction? transaction,
Updates all LogEntrys in the list and returns the updated rows. If
columns
is provided, only those columns will be updated. Defaults to
all columns.
This is an atomic operation, meaning that if one of the rows fails to
update, none of the rows will be updated.
Implementation
Future<List<LogEntry>> update(
_i1.Session session,
List<LogEntry> rows, {
_i1.ColumnSelections<LogEntryTable>? columns,
_i1.Transaction? transaction,
}) async {
return session.db.update<LogEntry>(
rows,
columns: columns?.call(LogEntry.t),
transaction: transaction,
);
}