Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add STRICT flag to createtable! #327

Open
torrance opened this issue Mar 1, 2023 · 1 comment
Open

Add STRICT flag to createtable! #327

torrance opened this issue Mar 1, 2023 · 1 comment

Comments

@torrance
Copy link

torrance commented Mar 1, 2023

Recent versions of SQLite have the option to set a table to STRICT, which makes SQLite:

  • require each column of the table have an explicit type
  • enforce types, rather than accepting any type during row insertion/updates

Currently createtable!() does not include the option to set STRICT as true. This issue is a feature request to add this as a boolean flag to this method.

@quinnj
Copy link
Member

quinnj commented Mar 5, 2023

Sounds like a great idea; feel free to open a PR if you're up for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants