You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace database_id magic numbers with named constants
SQLite reserves database index 0 for "main" and 1 for "temp"; attached
databases start at index 2. The codebase had raw numeric comparisons
like `database_id >= 2` and `db: 0` scattered across translate/ and
vdbe/, which were unclear without knowing this convention.
Add MAIN_DB_ID, TEMP_DB_ID, FIRST_ATTACHED_DB_ID constants and an
is_attached_db() helper in core/lib.rs. Replace all magic numbers
across 17 files. Remove the duplicate local constants from
Resolver in emitter.rs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments