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