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

Pull, push and diff data from/to remote and other databases (Dolt/Dolthub like) #47

Open
lucasfcnunes opened this issue Aug 2, 2023 · 3 comments

Comments

@lucasfcnunes
Copy link

lucasfcnunes commented Aug 2, 2023

Describe the solution you'd like
Data versioning.

Describe alternatives you've considered
"Dolt is a SQL database that you can fork, clone, branch, merge, push and pull just like a Git repository."
https://github.com/dolthub/dolt
e.g. https://www.dolthub.com/repositories/dolthub/transparency-in-pricing/compare/main/q2qstgacg1qa5lt8ensr4lschldirjh4

@lucasfcnunes lucasfcnunes changed the title Pull, push and diff data from/to remote and other databases Pull, push and diff data from/to remote and other databases (Dolt/Dolthub like) Aug 2, 2023
@Odonno
Copy link
Owner

Odonno commented Aug 2, 2023

Hi Lucas,

From what I understand Dolt is pretty much Database Branching feature? If this is truly that, please note that Database Branching is currently a feature in progress. You can read some of the early work here: https://github.com/Odonno/surrealdb-migrations#database-branching

The idea is to be able to work with branches locally, for your development workflow. Or even with a production database, giving you full control over data management. However, I will only provide the cli commands for that. Dolt seems to offer a Dolthub interface which will be out of scope for this project.

@lucasfcnunes
Copy link
Author

I didn't expect a UI (but I do think it's pretty neat) but CLI data push, pull and diff would be really cool.

@gedw99
Copy link

gedw99 commented Feb 6, 2024

This sounds like a great feature. Really well designed workflow for developers.

One concept that can work well with this is that the migration files are created as a result of the db schema being changed via another system such as a gui. This is how pocketbase works against SQLite. It’s really a CMS in that users or devs can create and delete data types via a web gui . The web gui reflects on the DB to display the GUI that represents the DB. So you sort of have a web gui to the DB like pgadmin, but with automatic Schema migration files being created at the same time.

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

No branches or pull requests

3 participants