RestRequestSqliteCache class

Constructors

RestRequestSqliteCache(Request request)

Properties

attemptColumn String
finalinherited
createdAtColumn String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
lockedColumn String
finalinherited
primaryKeyColumn String
finalinherited
request → Request
finalinherited
requestColumns List<String>
Columns used to uniquely identify the request (e.g. body, headers, url, method).
finalinherited
requestIsPush bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
finalinherited
updateAtColumn String
finalinherited

Methods

attemptLogMessage(Map<String, dynamic> responseFromSqlite) String
The log output before each attempt
delete(Database db) Future<int>
Removes the request from the database and thus the queue
inherited
findRequestInDatabase(DatabaseExecutor db) Future<Map<String, dynamic>?>
inherited
insertOrUpdate(Database db, {Logger? logger}) Future<int>
If the request already exists in the database, increment attemps and set updated_at to current time.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sqliteToRequest(Map<String, dynamic> data) → Request
Builds SQLite-row into a request
toSqlite() Map<String, dynamic>
Builds request into a new SQLite-insertable row Only available if request was initialized from fromRequest
toString() String
A string representation of this object.
inherited
unlock(Database db) Future<int?>
If the request did not succeed, unlock for subsequent processing
inherited

Operators

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