sqlite - In sqlite3, is there a foreign_key integrity check? -


i'm teaching myself sqlite , surprised see foreign_key constraint not working when able delete parent entry. learned after reading more pragma foreign_key off default each session. seems odd there isn't resource file (something .exrc vi example) can use setup pragmas default each session, fine. have recompile sqlite3 or set every time.

anyway, question is, after deleted parent, there way post integrity check on foreign key constraints? i.e. tell sqlite run same logic runs when if had pragma turned on @ time of insert or delete etc?

i see "pragma integrity_check" that's looking corruption seems.

thanks, justin

beginning sqlite 3.7.16, there pragma foreign_key_check.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -