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