memgraph / gqlalchemy

GQLAlchemy is a library developed with the purpose of assisting in writing and running queries on Memgraph. GQLAlchemy supports high-level connection to Memgraph as well as modular query builder.
https://pypi.org/project/gqlalchemy/
Apache License 2.0
212 stars 30 forks source link

OGM migrations #17

Open dtomicevic opened 2 years ago

dtomicevic commented 2 years ago

@jbajic, I've seen the OGM is on the roadmap and I wanted to propose that we also design a migration system for it, similar to Alembic. Given that property graphs have a dynamic schema, this could help make the projects more maintainable and help with data consistency issues across project versions.

jbajic commented 2 years ago

Yep, I agree that would be an excellent tool to go along with OGM, but I am unsure if I would like to have it inside GQLAlchemy, it feels more like a separate tool than an extension of GQLAlchemy. What do you think?

dtomicevic commented 2 years ago

Yes, I feel like that is the right way to go. Also, Alembic is a separate project from SQLAlchemy.

g-despot commented 2 years ago

This is committed as part of the GQLAlchemy 1.2 release so I am closing the issue.

gitbuda commented 1 year ago

As far as I can see we haven't actually implemented migrations as a part of 1.1/1.2. Moving this back to open 😄

alex-linx commented 1 year ago

Hi, any status updates on this feature? We are building a a project with memgraph using the gqlalchemy OGM, and we are assuming that we might have to the schema quite a bit. Would be great to have some tooling for that :)

katarinasupe commented 1 year ago

Hi @alex-linx, currently, we are not working on this feature, but it is definitely a plan to do it in the future. I can keep you updated on the release where this feature will be developed. It's nice to hear you are working on a project using OGM and thank you for reporting this, it will help us prioritize better. Can you tell me more about the project and how critical this feature is for your project?

alex-linx commented 1 year ago

@katarinasupe Hi, we are working on a project where we build a graph mapping out entities in a digital environment using a graph database. We define the types of nodes and relationships using the OGM. We are still designing our system, and expect to be adding and changing the graph structure and schema of our nodes. Having an easy to use tool for doing schema migrations will definitely help, since otherwise we would need to

katarinasupe commented 1 year ago

@alex-linx I can update you on when we decide to prioritize this for development. Until then, can you join our Discord server and send me DM so that I know it's you? It will be easier to communicate there, and you can ask anything else you need.