Feature request: `dolt sql` should have a flag which lets it fast fail if the database is read-only
Open
- Dominant language
- Go
- Stars
- 24.4k
- Forks
- 873
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 120
Description
As per #10852, some callers might prefer the CLI invocation to fast-fail, instead of waiting until an incoming SQL statement actually tries to perform a write against the database.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the `dolt sql` CLI entry point and trace how it opens or detects read-only databases. Review #10852 for the existing read-only behavior, then define the flag's failure timing and add coverage showing that a read-only invocation fails before executing a write statement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sql
- Domain
- cli, databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100