InMemoryMetaRepository class
An in-memory IMetaRepository — the catalog's own single record.
This one is not a table of records: the catalog has exactly one `Meta`, so
the store keeps one row under the fixed key meta. It still presents that row
as rows so a transaction can snapshot it like every other store.
- Implemented types
Constructors
- InMemoryMetaRepository()
- Creates an empty InMemoryMetaRepository.
Properties
Methods
-
fetch(
) → TaskEither< DomainFailure, Meta> -
Fetch the current meta.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replaceAll(
Map< String, Map< rows) → voidString, dynamic> > -
Puts the single row back — how a rollback restores a snapshot.
override
-
snapshot(
) → Map< String, Map< String, dynamic> > -
A copy of the single row — what a transaction keeps to undo itself.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{required Meta meta}) → TaskEither< DomainFailure, Meta> -
Update meta.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited