RestRequestSqliteCache class
REST implementation of RequestSqliteCache
Constructors
- RestRequestSqliteCache(Request request)
- 
          REST implementation of RequestSqliteCache
Properties
- attemptColumn → String
- 
  Column that tracks the number of attempts
  finalinherited
- createdAtColumn → String
- 
  
  finalinherited
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- lockedColumn → String
- 
  Column that tracks if the request is locked
  finalinherited
- primaryKeyColumn → String
- 
  Column that tracks the primary key
  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_atto 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 sqliteToRequest
- 
  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