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
{{ message }}
Repository navigation
decision: is the Read-only connection mode a guarantee or a hint? #1773
For PostgreSQL and MySQL, Read-only in the SQL editor sets `default_transaction_read_only = ON` (resp. the MySQL session transaction mode) on a pooled session. It is a default, not an enforcement: a script can run `BEGIN READ WRITE` or `SET default_transaction_read_only = off` and then write, and the pool slot stays writable for later tabs. SQLite opens the file read-only, so it is a guarantee there; MCP has its own statement guard.
Decide which it is:
A hint: say so in the UI text and the docs.
A guarantee: refuse mutating statements in the editor while the toggle is on (`containsMutatingSql` exists), including `SET ... read_only`, `BEGIN READ WRITE` and `SET TRANSACTION READ WRITE`, and reset the slot's setting when it is taken from the pool.
Activity
Merge pull request #1804 from QueryaHub/fix/readonly-guarantee
ZhuchkaTriplesix commentedon Oct 25, 2026
Fixed on dev in #1804 (merged). Closing by hand: the PRs target dev, so GitHub would only close this when dev is merged into main.