FrRepo<T extends FrTable> class
abstract
use FrStorage
Properties
- databaseClient → Database
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage → FrStorage
-
final
-
table
→ StoreRef<
String, JSON> -
latefinal
- tableName → String
-
'table_$T';
no setteroverride
Methods
-
create(
T value) → Future< String> -
return: data.ID
override
-
delete(
String id) → Future< int> -
return: count
override
-
find(
[Finder? by]) → Future< Iterable< T> > -
override
-
findFirst(
[Finder? by]) → Future< T?> -
override
-
fromJson(
JSON value, {Function? onError}) → T -
for advance user
if you want handle convert error
override
-
get(
String id, {T orElse()?}) → Future< T> -
override
-
getAll(
Iterable< String> ids) → Future<Iterable< T> > -
override
-
getOrNull(
String id, {T orElse()?}) → Future< T?> -
override
-
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< String> -
return: data.ID
override
-
updateBy(
String id, JSON data) → Future< T?> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited