Skip to content

Commit

Permalink
chore(docs): Update documentation for the renamed foreignKeyChecksDow…
Browse files Browse the repository at this point in the history
…nstream option (#1386)

Follow-up to #1376.
  • Loading branch information
alco committed Jun 19, 2024
1 parent e0365c6 commit f33f42f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/api/clients/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ const config: ElectricConfig = {
Configuration of the backoff strategy used when trying to reconnect to the Electric sync service after a failed
connection attempt.

- `disableForeignKeysDownstream?: boolean`
- `foreignKeyChecksDownstream?: ForeignKeyChecks`

Can be set to true to disable FK checks when applying downstream (i.e. incoming) transactions to the local SQLite database.
When using a Postgres driver foreign keys are always disabled and this behavior can't be changed.
Configuration of FK checking behaviour when applying downstream (i.e. incoming) transactions to the local SQLite database.
Defaults to `disabled`, meaning that FKs are not checked. Can also be set to `enabled` to enable FK checks or `inherit` to inherit the behaviour specified by SQLite's FK pragma.
When using a Postgres driver, foreign key checks are always disabled and this option can't be changed.

### Configuring example apps

Expand Down

0 comments on commit f33f42f

Please sign in to comment.