In a suitable sqlite version, we can enforce foreign key constraint by \'PRAGMA foreign_keys = ON\'. However user can not log in a database every time when making a connecti
SQLite has no logins.
To enable foreign keys in a script, just add the PRAGMA foreign_keys = ON command to that script.
PRAGMA foreign_keys = ON