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

Thoughts on PlanetScale-style db branching? #120

Open
lewisl9029 opened this issue Mar 18, 2022 · 0 comments
Open

Thoughts on PlanetScale-style db branching? #120

lewisl9029 opened this issue Mar 18, 2022 · 0 comments

Comments

@lewisl9029
Copy link
Contributor

I recently found out that PlanetScale's db branching is essentially branching just the schema, not data, so when you branch it essentially creates a real empty db with the schema changes that you can develop against and iterate on, and then throw away if it doesn't work out.

I think declarative schema migration tools like fauna-schema-migrate is definitely a step in the right direction compared to traditional approach of writing imperative migration scripts, but TBH the more I learn about the PlanetScale db branching approach the more jealous I become.

I don't plan on switching anytime soon because I much prefer Fauna's consistency model, but I have to wonder if the team has given any thought to potentially implementing this kind of workflow as a first class citizen? Seems like all the primitives (child dbs, declarative migrations, etc) are already available.

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

1 participant