Skip to content

sqlite improvements#1155

Merged
flimzy merged 4 commits intomainfrom
sqliteValDoc
Feb 16, 2026
Merged

sqlite improvements#1155
flimzy merged 4 commits intomainfrom
sqliteValDoc

Conversation

@flimzy
Copy link
Member

@flimzy flimzy commented Feb 13, 2026

No description provided.

Refactor DBUpdates to:
- Use x/options.Map to extract the since parameter properly
- Treat since as an opaque string value (not converting to int64)
- Build WHERE clause conditionally based on whether since is provided
- Support integer and string representations of sequence IDs

Changes:
- Add since parameter filtering to historical queries
- Use options.Map.Get() for consistent option extraction
- Remove manual type conversions and hardcoded defaults
- Add test case verifying since parameter filters results correctly
Add validation of the feed parameter using x/options.Map.Feed() to ensure
only supported feed types (normal, longpoll, continuous) are accepted.
Invalid feed values return HTTP 400 with appropriate error message.

This validates the feed parameter early in DBUpdates processing, rejecting
invalid values before attempting to query the database.
Add "deleted" event logging to DestroyDB to track when databases are destroyed.
Events are logged atomically within the same transaction as schema drops.
@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.39%. Comparing base (7aec286) to head (2638b96).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1155      +/-   ##
==========================================
+ Coverage   61.38%   61.39%   +0.01%     
==========================================
  Files         293      293              
  Lines       19305    19305              
==========================================
+ Hits        11851    11853       +2     
+ Misses       6901     6900       -1     
+ Partials      553      552       -1     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@flimzy flimzy merged commit 12af4d0 into main Feb 16, 2026
18 checks passed
@flimzy flimzy deleted the sqliteValDoc branch February 16, 2026 14:38
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.

1 participant