MemoryDatabase<T extends Object> class

Inheritance
Implemented types

Constructors

MemoryDatabase(MemoryOdmSystem system)

Properties

analysis EntityAnalysis<T, MemoryDatabase<Object>, String>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system MemoryOdmSystem
getter/setter pair

Methods

clear() Future<void>
Deletes all entities from the database.
override
count() Future<int>
Returns the number of entities in the database.
override
countByQuery(Query query) Future<int>
Returns the number of entities that match the given query.
override
createJsonDump() String
delete(T value) Future<void>
Deletes the given value from the database.
override
deleteAll(Iterable<T> values) Future<void>
Deletes all values from the database.
override
deleteAllById(Iterable<String> ids) Future<void>
Deletes all entities with the given ids from the database.
override
deleteAllByQuery(Query query) Future<void>
Deletes all entities that match the given query.
override
deleteById(String id) Future<void>
Deletes the entity with the given id from the database.
override
deleteOneByQuery(Query query) Future<void>
Deletes the first entity that matches the given query. Query.limit and Query.skip are ignored.
override
existsById(String id) Future<bool>
Returns true if an entity with the given id exists in the database.
override
existsByQuery(Query query) Future<bool>
Returns true if any entity exists that matches the given query.
override
findAll() Future<List<T>>
Returns all entities in the database.
override
findAllByQuery(Query query, Sorted sort) Future<List<T>>
Returns all entities that match the given query sorted by the given
override
findById(String id) Future<T?>
Returns the entity with the given id from the database.
override
findOneByQuery(Query query, Sorted sort) Future<T?>
Returns the first entity that matches the given query.
override
findPaginatedByQuery(Query query, Sorted sort, {required int skip, required int limit}) Future<Page<T>>
Retrieves a page of entities from the database that match the given query sorted by the given sort. skip and limit are used to determine the offset and size of the page.
override
loadJsonDump(String json) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(T value) Future<T>
Saves the given value to the database using an upsert operation.
override
saveAll(Iterable<T> values) Future<List<T>>
Saves all values to the database using an upsert operation.
override
toString() String
A string representation of this object.
inherited

Operators

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