rails_query stays in Ruby and takes dbhub's shapes

Status: accepted

bytebase/dbhub is a database MCP server: one connector per kind of database, named sources, a single read-only policy, and two tools by default. The 2026-10 architecture review read this gem through it and asked whether rails_query should hand its work to dbhub outright.

Decision

Consequences

A user who needs write access, or a database the Rails app does not own, can run dbhub beside this gem. rails_query keeps its read-only guards and its secret column rule for the app's own databases either way.

Alternatives not taken