SupabaseConnector
open class SupabaseConnector(val supabaseClient: SupabaseClient, val powerSyncEndpoint: String, storageBucket: String? = null) : PowerSyncBackendConnector(source)
Get a Supabase token to authenticate against the PowerSync instance.
Constructors
Types
Link copied to clipboard
object PostgresFatalCodes
Functions
Link copied to clipboard
Get credentials for PowerSync.
Link copied to clipboard
Link copied to clipboard
open suspend fun handleError(tx: CrudTransaction, entry: CrudEntry, exception: Exception, errorCode: String?)
Handles an error during the upload. This method can be overridden to log errors or customize error handling.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Uses the PostgREST APIs to upload a given entry to the backend database.
Link copied to clipboard
Upload local changes to the app backend (in this case Supabase).