dolthub / dolthub/dolt

Feature request: `dolt sql` should have a flag which lets it fast fail if the database is read-only

Open
#10,857 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.