AppwriteRemoteStore<T extends HasUpdatedAt, Id> class

Implemented types

Constructors

AppwriteRemoteStore.new({required AppwriteRemoteConfig<T, Id> config})
const

Properties

config AppwriteRemoteConfig<T, Id>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batchDelete(List<Id> ids) Future<void>
override
batchUpsert(List<T> items) Future<void>
override
buildFetchQueries(SyncScope scope, DateTime? since) List<String>
buildRemoteSearchQueries(SyncScope scope, QuerySpec spec) List<String>
Build Appwrite remoteSearch queries as a list of query strings. Exposed for tests to validate translation from QuerySpec.
buildUpsertPayloads(List<T> items) List<(String, Map<String, dynamic>)>
fetchSince(SyncScope scope, DateTime? since) Future<Delta<T, Id>>
override
fetchSinceFromRawPages(SyncScope scope, DateTime? since, List<List<Map<String, dynamic>>> pages) Future<Delta<T, Id>>
filterRowsByScope(List<Map<String, dynamic>> rows, SyncScope scope) List<Map<String, dynamic>>
getById(Id id) Future<T?>
override
getServerTime() Future<DateTime>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parsePage(List<Map<String, dynamic>> rows) → (List<T>, List<Id>)
remoteSearch(SyncScope scope, QuerySpec spec) Future<List<T>>
Search within a scope using a normalized query spec. Implementations should apply soft-delete semantics and only support operators and fields that are natively available on the backend. Unsupported operators/fields must throw ArgumentError with a clear message.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited