Computed class final

Marks a scalar field as database-computed and excludes it from writes. Expressions are trusted SQL using physical column names.

Constructors

Computed(String expression, {String? sqlite, String? postgres, String? mysql, String? mariadb, ComputedStorage storage = ComputedStorage.stored})
Declares a computed database field.
const

Properties

expression → String
SQL used where no dialect override is provided.
final
hashCode → int
The hash code for this object.
no setterinherited
mariadb → String?
MariaDB expression override.
final
mysql → String?
MySQL expression override.
final
postgres → String?
PostgreSQL expression override.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sqlite → String?
SQLite expression override; empty explicitly marks it unsupported.
final
storage → ComputedStorage
Whether computation is stored or virtual, subject to engine capabilities.
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