electric-sql / electric

Local-first sync layer for web and mobile apps. Build reactive, realtime, local-first apps directly on Postgres.
https://electric-sql.com
Apache License 2.0
5.37k stars 124 forks source link

feat (client): renamed disableFKs flag and modified default to disable FKs on SQLite #1376

Closed kevin-dp closed 2 weeks ago

kevin-dp commented 2 weeks ago

Decided to go for an enumeration as this is more explicit than the boolean | undefined:

enum ForeignKeyChecks {
  enabled = 'enabled',
  disabled = 'disabled',
  inherit = 'inherit',
}