Skip to content

Conversation

@simonw
Copy link
Owner

@simonw simonw commented Dec 21, 2025

Breaking change for 4.0: db["name"] now only returns Table objects, never View objects.
This improves type safety since views lack methods like .insert().

Use db.view("view_name") to access views explicitly.

Closes:


📚 Documentation preview 📚: https://sqlite-utils--700.org.readthedocs.build/en/700/

Breaking change for 4.0: db["name"] now only returns Table objects, never View objects.
This improves type safety since views lack methods like .insert().

Use db.view("view_name") to access views explicitly.

Closes #699
@codecov
Copy link

codecov bot commented Dec 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.14%. Comparing base (8d74ffc) to head (1d584f0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #700      +/-   ##
==========================================
- Coverage   95.15%   95.14%   -0.01%     
==========================================
  Files           8        8              
  Lines        3114     3113       -1     
==========================================
- Hits         2963     2962       -1     
  Misses        151      151              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Updated python-api.rst to clarify that dictionary-style syntax
db["name"] only returns Table objects. Use db.view("name") for views.
Documents all breaking changes in 4.0 for both the Python library and CLI:
- db["name"] only returns tables, not views
- Default float type changed to REAL
- convert() no longer skips False values
- Table schemas use double quotes
- Upsert uses modern SQLite syntax
- Type detection now default for CSV/TSV import
- sqlite-utils tui moved to plugin
- Python 3.10+ required
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

Successfully merging this pull request may close these issues.

3 participants