Configuration details for connecting the PowerSync Service to your database
journeyapps/powersync-service
, you can use Postgres as an alternative storage backend for sync buckets. This feature is currently in beta.
config.yaml
example with additional comments can be found here:
replication
section. Retrieving your database connection string / individual parameters differs by database hosting provider. See Database Connection for further details.
storage
section.
Postgres Version | Server configuration |
---|---|
Below 14 | Separate servers are required for the source and sync bucket storage. Replication will be blocked if the same server is detected. |
14 and above | The source database and sync bucket storage database can be on the same server. Using the same database (with separate schemas) is supported but may lead to higher CPU usage. Using separate servers remains an option. |
!env [variable name]
will substitute the value of the environment variable named [variable name]
.
Only environment variables with names starting with PS_
can be substituted.
See examples here: