offline_first library

Classes

And
Generate a required condition.
LimitBy
Construct directions for a provider to limit its results.
OfflineFirstAdapter<_Model extends OfflineFirstModel>
This adapter fetches first from SqliteProvider then hydrates with from a remote provider..
OfflineFirstRepository<_RepositoryModel extends OfflineFirstModel>
A ModelRepository that interacts with a SqliteProvider first before using a Provider from a remote source.
Or
Generate an optional condition.
OrderBy
Construct directions for a provider to sort its results.
ProviderQuery<T extends Provider<Model>>
Specify query arguments that are exclusive to a specific Provider. For example, configuring a REST's POST method.
Query
An interface to request data from a Provider or ModelRepository.
Where
A condition that evaluates to true in the Provider should return Model.
WhereCondition
Lower-level control over the value of a Query#where map.
WherePhrase
A collection of conditions that are evaluated together.

Enums

Compare
Specify how to evalute the WhereCondition.value against the WhereCondition.evaluatedField in a WhereCondition. For size operators, a left side comparison is done.
OfflineFirstDeletePolicy
OfflineFirstGetPolicy
Data will always be returned from local providers and never directly from a remote provider(s)
OfflineFirstUpsertPolicy
QueryAction
How the query interacts with the provider

Exceptions / Errors

OfflineFirstException