Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Doltgres-implementation of RootValue #232

Merged
merged 2 commits into from
May 8, 2024
Merged

Conversation

Hydrocharged
Copy link
Collaborator

Companion:

This is Doltgres' implementation of RootValue. For now, it's essentially taken wholesale from Dolt as a starting point. Of note, we probably want to at least get something different for our collation values sometime soon. Also, we're using the same serial identifier for root values between Doltgres and Dolt. This simplifies a good bit of code in Dolt, so taking on the naming requirement seems well worth it.

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the whole this looks fine but I think we'd be better of sharing code with Dolt more broadly where possible.

@reltuk should comment about the serialization level stuff.

flatbuffers/serial/rootvalue.fbs Outdated Show resolved Hide resolved
server/rootvalue/rootvalue.go Outdated Show resolved Hide resolved
server/rootvalue/rootvalue.go Outdated Show resolved Hide resolved
server/rootvalue/storage.go Outdated Show resolved Hide resolved
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after changing the file identifier

Would be also nice to do another pass on deduplicating code by introducing functions in Dolt that take a RootValue we can call here.

@Hydrocharged Hydrocharged merged commit cb5d2ef into main May 8, 2024
8 checks passed
@Hydrocharged Hydrocharged deleted the daylon/new-root-value branch May 8, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants