MoorView class Null safety

A parsed view

Inheritance
Available Extensions

Constructors

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

Properties

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
final
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.
final
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
final
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.
read-only
viewQuery ViewQueryInformation?
final

Methods

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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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