DatabaseDefinitions class abstract

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

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, SerializationManager serializationManager)
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

allToJson() → dynamic
Returns a serialized JSON structure of the model which also includes fields used by the database.
inherited
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, ready to be sent through the API. This does not include fields that are marked as database only.
toString() String
A string representation of this object.
inherited

Operators

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