PowerSyncBackendConnector class abstract

Implement this to connect an app backend.

The connector is responsible for:

  1. Creating credentials for connecting to the PowerSync service.
  2. Applying local changes against the backend application server.

For production, use a custom implementation.

Implementers

Constructors

PowerSyncBackendConnector()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchCredentials() Future<PowerSyncCredentials?>
Get credentials for PowerSync.
getCredentialsCached() Future<PowerSyncCredentials?>
Get credentials current cached, or fetch new credentials if none are available.
invalidateCredentials() → void
Immediately invalidate credentials.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prefetchCredentials() Future<PowerSyncCredentials?>
Fetch a new set of credentials and cache it.
toString() String
A string representation of this object.
inherited
uploadData(PowerSyncDatabase database) Future<void>
Upload local changes to the app backend.

Operators

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