Enable FK on SQLite engine
Posted: Tue Sep 13, 2016 1:12 pm
Hi all,
testing my application i've found inconsistent values sometimes in FK columns, probably after wrong ops my side.
Looking on sqlite website seems that by default is necessary since a certain release to manualy enable the PRAGMA at the startup of the application to enforce the FK (uniqueness is already enforced in any case).
How can i do that through QxOrm when i initialize the singleton instance?
See here: http://www.sqlite.org/pragma.html#pragma_foreign_keys
Thanks
Best Regards
Gianluca
testing my application i've found inconsistent values sometimes in FK columns, probably after wrong ops my side.
Looking on sqlite website seems that by default is necessary since a certain release to manualy enable the PRAGMA at the startup of the application to enforce the FK (uniqueness is already enforced in any case).
How can i do that through QxOrm when i initialize the singleton instance?
See here: http://www.sqlite.org/pragma.html#pragma_foreign_keys
Thanks
Best Regards
Gianluca