Skip to content

Type Property

alias

The aliased name, which stands in for the actual schema name. ModelAlias strictly enforces the same constraint most dialects of SQL do for aliasing syntax: That the original schema name may only appear at points where aliasing is declared, and becomes syntactically incorrect usage should it appear in any other part of the query. In effect, the alias becomes the only name by which the model type may be referenced.
static var alias: String? { get }