MoorView class Null safety

A parsed view

Available Extensions


MoorView({ViewDeclaration? declaration, required String name, required String dartTypeName, required String entityInfoName, ExistingRowClass? existingRowClass, String? customParentClass, ViewQueryInformation? viewQuery})
MoorView.fromMoor(CreateViewStatement stmt, FoundFile file)


columns List<MoorColumn>
The columns declared in this table or view.
read / write, override-getter
customParentClass String?
Class that added to data class as implementation
dartTypeName String
The name of the Dart row class for this result set.
read / write, override-getter
dbGetterName String
The getter in a generated database accessor referring to this model.
read-only, override
declaration ViewDeclaration?
Gets the declaration of this element, if set.
displayName String
A human readable name of this entity, like the table name.
read-only, override
dslName String
The name of the Dart class storing the right column getters for this type.
read-only, inherited
entityInfoName String
The name of the Dart class storing additional properties like type converters.
read / write, override-getter
existingRowClass ExistingRowClass?
The existing class designed to hold a row, if there is any.
read / write, override-getter
file ↔ ParsedMoorFile?
read / write
hasExistingRowClass bool
Whether this table has an existing row class, meaning that moor doesn't have to generate one on its own.
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
name String
parserView View?
The associated view to use for the sqlparser package when analyzing sql queries. Note that this field is set lazily.
read / write
references List<MoorSchemaEntity>
All entities that have to be created before this entity can be created.
read / write, override-getter
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
transitiveTableReferences Set<MoorTable>
Obtains all tables transitively referenced by the declaration of this view.
viewQuery ViewQueryInformation?


createSql(MoorOptions options) String
The CREATE VIEW statement that can be used to create this view.
dartTypeCode([GenerationOptions options = const GenerationOptions()]) String
The type name of the Dart row class for this result set.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


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