IRepo<T extends ITable<ID> , ID> class
abstract
T
data type
ID
data.id type
- Implementers
Constructors
- IRepo()
Properties
Methods
-
create(
T value) → Future< ID> - return: data.ID
-
delete(
String id) → Future< int> - return: count
-
find(
) → Future< Iterable< T> > -
findFirst(
) → Future< T?> -
fromJson(
JSON value, {Function? onError}) → T - JSON -> T
-
get(
String id) → Future< T> -
getAll(
Iterable< ID> ids) → Future<Iterable< T> > -
getOrNull(
String id) → Future< T?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
T value) → Future< ID> - return: data.ID
-
updateBy(
String id, JSON data) → Future< T?>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited