fnc12/sqlite_orm

PRAGMA options

trevornagy opened this issue · 6 comments

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!

  1. foreign_keys is enabled by storage after every SQLite connection is opened if make_table contains at least 1 foreign key;
  2. recursive_triggers will be added soon.

PR with recursive_triggers #1302

Awesome, thank you!

I appreciate the clarification on foreign_keys

@trevornagy merged. Please check dev branch

Works as expected, thanks!