I’m backing Strapi with the Dolt database, which has git like semantics on top of a MySQL server. What I’d like to do is expose this as a dropdown for the current user. So they can switch branches when adding / editing content.
There are a few ways they support using a single server for all users, branches, commits, and dirty workspaces:
I’m wonder if there is any way to implement the UI → API → Dolt parameterization, even if it might require a small patch to the strapi core?
The one I thought might be least effort
- if a call to the API has a DB transaction wrapping the e2e call
- modify the snippet that starts the transaction to inject a USE
USE `mydb/feature-branch`
START TRANSACTION ...
Maybe that happens below Strapi code…
This topic has been created from a Discord post (1225969448276459580) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord