Dao class

A dao, declared via an UseDao annotation on a Dart class.

Inheritance
Available Extensions

Constructors

Dao({required DartType dbClass, DatabaseOrDaoDeclaration? declaration, required List<MoorTable> declaredTables, List<MoorView> declaredViews = const [], required List<String> declaredIncludes, required List<DeclaredQuery> declaredQueries})

Properties

dbClass → DartType
The database class this dao belongs to.
final
declaration DatabaseOrDaoDeclaration?
Gets the declaration of this element, if set.
finalinherited
declaredIncludes List<String>
The includes field from the UseMoor or UseDao annotation.
finalinherited
declaredQueries List<DeclaredQuery>
All queries declared directly in the UseMoor or UseDao annotation.
finalinherited
declaredTables List<MoorTable>
All tables that have been declared on this accessor directly.
finalinherited
declaredViews List<MoorView>
All views that have been declared on this accessor directly.
finalinherited
entities List<MoorSchemaEntity>
All entities for this database accessor. This contains declaredTables and all tables, triggers and other entities available through includes.
getter/setter pairinherited
fromClass → ClassElement?
The ClassElement that was annotated with UseMoor or UseDao.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
imports List<FoundFile>?
Resolved imports from this file.
getter/setter pairinherited
queries List<SqlQuery>?
All resolved queries.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tables Iterable<MoorTable>
All tables for this database accessor. This contains the declaredTables and all tables that are reachable through includes.
no setterinherited
views Iterable<MoorView>
All views for this database accesssor.
no setterinherited

Methods

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