Database class Null safety

A database, declared via a UseMoor annotation on a Dart class.

Inheritance
Available Extensions

Constructors

Database({List<DartType> daos = const [], int? schemaVersion, DatabaseOrDaoDeclaration? declaration, List<MoorTable> declaredTables = const [], List<MoorView> declaredViews = const [], List<String> declaredIncludes = const [], List<DeclaredQuery> declaredQueries = const []})

Properties

daos List<DartType>
final
declaration DatabaseOrDaoDeclaration?
Gets the declaration of this element, if set.
final, inherited
declaredIncludes List<String>
The includes field from the UseMoor or UseDao annotation.
final, inherited
declaredQueries List<DeclaredQuery>
All queries declared directly in the UseMoor or UseDao annotation.
final, inherited
declaredTables List<MoorTable>
All tables that have been declared on this accessor directly.
final, inherited
declaredViews List<MoorView>
All views that have been declared on this accessor directly.
final, inherited
entities List<MoorSchemaEntity>
All entities for this database accessor. This contains declaredTables and all tables, triggers and other entities available through includes.
read / write, inherited
fromClass ClassElement?
The ClassElement that was annotated with UseMoor or UseDao.
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
imports List<FoundFile>?
Resolved imports from this file.
read / write, inherited
queries List<SqlQuery>?
All resolved queries.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
schemaVersion int?
If the source database class overrides schemaVersion and returns a simple integer literal, stores that version.
read / write
tables Iterable<MoorTable>
All tables for this database accessor. This contains the declaredTables and all tables that are reachable through includes.
read-only, inherited
views Iterable<MoorView>
All views for this database accesssor.
read-only, inherited

Methods

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