PRAGMA options
trevornagy opened this issue · 6 comments
trevornagy commented
I'm just wondering how to use the foreign_keys
option, I see it in code but not sure how to enable it. In sqlite it would look like:
PRAGMA foreign_keys=ON;
Additionally, would it be possible to get the recursive_triggers
option? In sqlite: PRAGMA recursive_triggers=ON;
Thanks!
fnc12 commented
foreign_keys
is enabled by storage after every SQLite connection is opened ifmake_table
contains at least 1 foreign key;recursive_triggers
will be added soon.
trevornagy commented
Awesome, thank you!
I appreciate the clarification on foreign_keys
fnc12 commented
@trevornagy merged. Please check dev
branch
juandent commented
This should be possible to allow change in data or structure We go back to a touchy subject but I think we should enable this in a safe manner and being very careful to explain the dangers of it’s unscrupulous useMaybe allow it in sync_schema and disable it afterwardsRegards Juan DentSent from my iPhoneOn 29 May 2024, at 8:44 AM, Yevgeniy Zakharov ***@***.***> wrote:
PR with recursive_triggers #1302
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
trevornagy commented
Works as expected, thanks!