MoorView class

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.
getter/setter pairoverride-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.
getter/setter pairoverride-getter
dbGetterName → String
The getter in a generated database accessor referring to this model.
no setteroverride
declaration → ViewDeclaration?
Gets the declaration of this element, if set.
final
displayName → String
A human readable name of this entity, like the table name.
no setteroverride
dslName → String
The name of the Dart class storing the right column getters for this type.
no setterinherited
entityInfoName ↔ String
The name of the Dart class storing additional properties like type converters.
getter/setter pairoverride-getter
existingRowClass ↔ ExistingRowClass?
The existing class designed to hold a row, if there is any.
getter/setter pairoverride-getter
file ↔ ParsedMoorFile?
getter/setter pair
hasExistingRowClass → bool
Whether this table has an existing row class, meaning that moor doesn't have to generate one on its own.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isDeclaredInDart → bool

Available on HasDeclaration, provided by the DeclarationUtils extension

no setter
isDeclaredInDriftFile → bool

Available on HasDeclaration, provided by the DeclarationUtils extension

no setter
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.
getter/setter pair
references ↔ List<MoorSchemaEntity>
All entities that have to be created before this entity can be created.
getter/setter pairoverride-getter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transitiveTableReferences → Set<MoorTable>
Obtains all tables transitively referenced by the declaration of this view.
no setter
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 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