Skip to content

makeElectricUrl

makeElectricUrl(__namedParameters): object

Defined in: packages/@livestore/sync-electric/src/index.ts:105

This function should be called in a trusted environment (e.g. a proxy server) as it requires access to senstive information (e.g. apiSecret / sourceSecret).

string

For self-hosted ElectricSQL

string

URLSearchParams

Needed to extract information from the search params which the @livestore/sync-electric client implementation automatically adds:

  • handle: the ElectricSQL handle
  • storeId: the Livestore storeId

string

Needed for Electric Cloud

string

Needed for Electric Cloud

object

needsInit: boolean

payload: undefined | JsonValue

storeId: string = args.storeId

url: string