mirror of
https://github.com/rqlite/rqlite.git
synced 2022-10-30 02:37:32 +03:00
552 B
552 B
Foreign Key Constraints
Since SQLite does not enforce foreign key constraints by default, neither does rqlite. However you can enable foreign key constraints in rqlite via the command line option -fk=true. Setting this command line will enable Foreign Key constraints on all connections that rqlite makes to the underlying SQLite database.
Issuing the PRAGMA foreign_keys = boolean command usually results in unpredictable behaviour, since rqlite doesn't offer connection-level control of the underlying SQLite database. It is not recommended.