.transform(strict=) and sqlite-utils transform --strict/--no-strict#788
Conversation
GPT-5.6 Sol then found some edge-cases:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #788 +/- ##
=======================================
Coverage 95.54% 95.55%
=======================================
Files 9 9
Lines 3793 3798 +5
=======================================
+ Hits 3624 3629 +5
Misses 169 169 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I'm going to raise errors if you attempt to convert to STRICT with a SQLite version that fails the |
|
We don't have any mechanism to support
|
|
Here's a reproduction of the problem where the default from sqlite_utils import Database
db = Database(memory=True)
table = db.table("items", strict=True)
table.create({"id": int})
table.transform(strict=False)
assert table.strict is False
# Recreate using the same Table object's stale strict=True default:
table.create({"id": int}, replace=True)
assert table.strict is True # Unexpectedly strict again |
Refs:
📚 Documentation preview 📚: https://sqlite-utils--788.org.readthedocs.build/en/788/