Supporting multiple engines in one app that uses db migrations
Hi,
I am mid-execution of my project which I'd like to release as Open Source. With this in mind, I want users to be able to choose their db - e.g. use SQLite on Cloudflare, postgres on Kubernetes deployments etc.
This leads me to the following assumptions:
I'm experienced developer, so I'm not afraid of getting things done with CI and my automation scripts, but I've not yet had a chance of working with Drizzle, so I'm looking for good tips before I start writing any kind of code around.
I am mid-execution of my project which I'd like to release as Open Source. With this in mind, I want users to be able to choose their db - e.g. use SQLite on Cloudflare, postgres on Kubernetes deployments etc.
This leads me to the following assumptions:
- The application must be able to update both schema and data safely between versions - for this schema migrations sound great, but...
- Whoever deploys the app must be able to run the app with the chosen DB engine.
- Switching between DB engines would require running a custom migration tool.
- Switching DB will not happen on runtime, so the app doesn't have to load different Drizzle context
I'm experienced developer, so I'm not afraid of getting things done with CI and my automation scripts, but I've not yet had a chance of working with Drizzle, so I'm looking for good tips before I start writing any kind of code around.