MemoryDepositAdapter class
A memory only implementation of DepositAdapter.
- Inheritance
-
- Object
- DepositAdapter<
int> - MemoryDepositAdapter
Constructors
-
MemoryDepositAdapter({Map<
String, List< ? memory})Map< >String, dynamic> > - Construct a new MemoryDepositAdapter.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
String table, String primaryColumn, Map< String, dynamic> data) → Future<Map< String, dynamic> > -
Store data in the backend and return the newly stored data.
override
-
addAll(
String table, String primaryColumn, List< Map< data) → Future<String, dynamic> >List< Map< >String, dynamic> > -
Store multiple items in the backend and return the newly stored data.
override
-
by(
String table, String key, dynamic value) → Future< List< Map< >String, dynamic> > -
Return data that is referenced by the given
key
and thevalue
.override -
exists(
String table, String primaryColumn, int id) → Future< bool> -
Check if given
id
exists in thetable
.override -
getById(
String table, String primaryColumn, int id) → Future< Map< String, dynamic> > -
Return data that is referenced by the given
Id
in thetable
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
page(
String table, {required int limit, required int skip, OrderBy? orderBy}) → Future< List< Map< >String, dynamic> > -
Return list of paginated data.
override
-
remove(
String table, String primaryColumn, Map< String, dynamic> data) → Future<void> -
Remove data in the backend.
override
-
removeAll(
String table, String primaryColumn, List< Map< data) → Future<String, dynamic> >void> -
Remove multiple items in the backend.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String table, String primaryColumn, Map< String, dynamic> data) → Future<Map< String, dynamic> > -
Update data in the backend and return the newly updated data.
override
-
updateAll(
String table, String primaryColumn, List< Map< data) → Future<String, dynamic> >List< Map< >String, dynamic> > -
Update multiple items in the backend and return the newly updated data.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited