Skip to content

feat: multi-database support via connects_to config#43

Merged
eclectic-coding merged 3 commits into
mainfrom
feat/multi-database-support
May 21, 2026
Merged

feat: multi-database support via connects_to config#43
eclectic-coding merged 3 commits into
mainfrom
feat/multi-database-support

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds a connects_to config option that wraps every engine request in ActiveRecord::Base.connected_to(...) when set; accepts any kwargs Rails supports — database:, role:, or shard:
  • Defaults to nil so single-database apps are completely unaffected
  • Adds a dedicated Webhook alerts section and Multi-database setup section to the README with example configs and payload docs

Test plan

  • bundle exec rspec spec/solid_queue_web_spec.rb — 2 new examples covering nil default and hash assignment
  • bundle exec rspec spec/requests/solid_queue_web/dashboard_spec.rb — 2 new examples verifying passthrough (no config) and connected_to is called when configured
  • bundle exec rake — full suite (audit + rubocop + rspec), 206 examples, 0 failures, 100% coverage

🤖 Generated with Claude Code

eclectic-coding and others added 3 commits May 21, 2026 08:53
Adds a `connects_to` setting that, when configured, wraps every engine
request in `ActiveRecord::Base.connected_to(...)`. Accepts any kwargs
Rails supports — `database:`, `role:`, or `shard:`. Defaults to nil so
single-database apps are unaffected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 6875fd9 into main May 21, 2026
7 checks passed
@eclectic-coding eclectic-coding deleted the feat/multi-database-support branch May 21, 2026 12:59
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