ComputedColumn class final

Database-computed SQL using physical column names.

Constructors

ComputedColumn(String expression, {ComputedStorage storage = ComputedStorage.stored})
Uses one trusted SQL expression for every supported dialect.
const
ComputedColumn.forDialects({required String sqlite, required String postgres, String? mysql, String? mariadb, ComputedStorage storage = ComputedStorage.stored})
Uses explicit dialect expressions without silently substituting another.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
mariadb String?
Explicit MariaDB expression, or null when that dialect is unsupported.
final
mysql String?
Explicit MySQL expression, or null when that dialect is unsupported.
final
postgres String
Trusted PostgreSQL expression using physical column names.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sqlite String
Trusted SQLite expression using physical column names.
final
storage ComputedStorage
Storage strategy requested from the target database.
final

Methods

expression(SqlDialect dialect) String
Returns the target expression or throws if that dialect was not declared.
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