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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -