- Added comprehensive INVARIANTS documentation to _applyPragmasOnExistingConnection()
- Added ORDERING GUARD documentation to _initialize() and _ensureConnection()
- Enhanced iOS compatibility logging for WAL mode failures
- Added invariant reference comments throughout PRAGMA code paths
- Improved error handling with non-fatal WAL failure handling
- All invariants documented to prevent regression:
1. foreign_keys via run()
2. journal_mode via query() with iOS compatibility
3. busy_timeout via query() with fallback
4. synchronous skipped in fallback path
5. this.db must be set before returning
This locks in the v3.3.3 fix and ensures stability on Android and iOS.