Add dolt_config() for committer name and email#149
Merged
Conversation
New SQL function:
SELECT dolt_config('user.name', 'Tim Sehn');
SELECT dolt_config('user.email', 'tim@dolthub.com');
SELECT dolt_config('user.name'); -- get current value
Per-session config stored on the Btree struct (same pattern as zBranch).
All commit-creating operations (dolt_commit, dolt_merge, dolt_cherry_pick,
dolt_revert) now use session config instead of hardcoded "doltlite".
The --author flag on dolt_commit still works as a per-commit override.
Closes https://github.com/timsehn/doltlite/issues/147
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
b0d9df4 to
1470620
Compare
Sysbench-Style Benchmark: Doltlite vs SQLiteIn-MemoryReads
Writes
File-BackedReads
Writes
10000 rows, single CLI invocation per test, workload-only timing via SQL timestamps. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #147. Adds
dolt_config()SQL function for setting committer name and email.zBranch)dolt_commit,dolt_merge,dolt_cherry_pick,dolt_revert--authorflag ondolt_commitstill works as per-commit overridedolt_config('key')returns current value"doltlite"with empty email (unchanged behavior if config not set)Test plan
--authorflag overrides config🤖 Generated with Claude Code