IRepo<T extends ITable<ID>, ID> class abstract

T data type ID data.id type

Implementers

Constructors

IRepo()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
'table_$T';
no setter

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