-
Notifications
You must be signed in to change notification settings - Fork 73
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
pgroll usage with object relational mappers (ORM) #166
Comments
+1 for entgo support |
Thank you for opening the first issue from the community! 🌟 We want to look into supporting ORMs to automatically integrate with As of today, things should work by following a few steps, in my mind this is the workflow you would need to leverage
|
What do you think about creating a You could do HTTP requests to get the current schema name to use, submit migrations, rollback, etc. Translation the migration object specification to OpenAPI would also make it easy to create translation layers for other languages. |
Another server to run in docker just to migrate my DB? I think having it not be basically in-place replacement for other migration tools would basically kill adoption. |
I see the options as:
Definitely not ideal, but I think 1 and 2 are worse for adoption, most likely. |
Well you don't necessarily have to instrument the pgroll binary itself, it takes schema no? Lots of ORMs have code for generating migrations in SQL, they could likely support similar facilities for generating the pgroll JSON, which could then be run externally. |
Wondering if it will help here, next release will bring an official docker image for pgroll: #209 |
@exekias how are you imagining the Docker image will help? I think we either need the Docker image to have a REST/HTTP API, or we need an easy way to install the pgroll binary into images built for deploying Node/Python/Ruby, etc. |
Yeah a docker image doesn't really make pgroll programmable |
pgroll looks very interesting to me.
It solves a persistent problem.
I usually use EFCore in the .NET environment as ORM.
Also in the Node environment there are ORMs like typeorm, mikroorm & more.
Is there a good approach here that works well with pgroll?
The text was updated successfully, but these errors were encountered: