DbAdapter<T> class
- Available Extensions
- Annotations
-
- @CopyWith()
Constructors
-
DbAdapter({DbAdapterState? state, required FromJsonFunc<
T> fromJson, required String tableName, required List<RepoPath> paths, bool hasRemotePriority = false})
Properties
-
fromJson
→ FromJsonFunc<
T> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRemotePriority → bool
-
final
- includeLocalTransactions → bool
-
no setter
- includeRemoteTransactions → bool
-
no setter
- isLocalOnly → bool
-
no setter
- isRemoteOnly → bool
-
no setter
-
localPath
→ List<
LocalRepoPath> -
no setter
-
paths
→ List<
RepoPath> -
final
-
remotePath
→ List<
RemoteRepoPath> -
no setter
- remoteRepo → RemoteRepo?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → DbAdapterState?
-
final
- tableName → String
-
final
Methods
-
add<
T> (JsonObject dto, {bool forceRemoteTrans = false}) → Future< Result< T> > -
addById<
T> (JsonObject dto) → Future< Result< T> > -
close(
) → Future< Result> -
deleteById(
IDs ids) → Future< Result> -
get<
T> (IDs ids) → Future< Result< T> > -
getAll<
T> ({dynamic field, dynamic isEqualTo, dynamic isLessThan, dynamic isLessThanOrEqualTo, dynamic isGreaterThan, dynamic isGreaterThanOrEqualTo, dynamic arrayContains, List? arrayContainsAny, List? whereIn, bool? isNull, int limit = 10}) → Future< Result< List< >T> > -
localRepo(
{String? table}) → Future< LocalDb?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
offline(
) → DbAdapter< T> -
toString(
) → String -
A string representation of this object.
inherited
-
update<
T> (JsonObject dto) → Future< Result< T> >
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited