UpdateTable<T extends Table> class abstract

Base class for database table update operations.

This abstract base class serves as the foundation for type-safe database update operations in Serverpod. It is typically extended by generated classes that provide specific update functionality for each table.

The class is designed to work with the code generation system to create type-safe update operations. Generated classes extending this base class can be used with ColumnValueListBuilder to ensure compile-time type safety when building update queries.

Example usage in generated code:

class MyTableUpdateTable extends UpdateTable<MyTable> {
  const MyTableUpdateTable(super.table);

  // Generated methods for type-safe updates would be added here
}

The generic type parameter T ensures that the update table is strongly typed to work with a specific table type, preventing runtime errors and enabling better IDE support.

Implementers

Constructors

UpdateTable(T table)
Creates a new update table instance for the specified table.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
table → T
The table instance that this update table operates on.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited