DatabaseDefinitions class abstract

Defines the current state of the database, including information about installed modules and migrations.

Implemented types

Constructors

DatabaseDefinitions({required List<TableDefinition> target, required List<TableDefinition> live, required List<DatabaseMigrationVersion> installedMigrations, required List<DatabaseMigrationVersion> latestAvailableMigrations})
factory
DatabaseDefinitions.fromJson(Map<String, dynamic> jsonSerialization)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
installedMigrations List<DatabaseMigrationVersion>
The migrations that are installed in the database.
getter/setter pair
latestAvailableMigrations List<DatabaseMigrationVersion>
The latest available migrations that can be applied.
getter/setter pair
live List<TableDefinition>
A definition of the database as it is currently.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target List<TableDefinition>
The target database definition.
getter/setter pair

Methods

copyWith({List<TableDefinition>? target, List<TableDefinition>? live, List<DatabaseMigrationVersion>? installedMigrations, List<DatabaseMigrationVersion>? latestAvailableMigrations}) DatabaseDefinitions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a serialized JSON structure of the model which also includes fields used by the database.
override
toJsonForProtocol() Map<String, dynamic>
Returns a JSON structure of the model, optimized for Protocol communication.
override
toString() String
A string representation of this object.
override

Operators

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