-
Notifications
You must be signed in to change notification settings - Fork 19
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
Relations support #7
Comments
@vaind I want to implement relations and have a few questions:
|
If you could share some code that might help to understand the context better. But, I'll try anyway... 🙂 This is an example from an internal test; it's a tree with branches and leaves. A leaf has a parent relation to the branch:
As you can see you need some flags to enable the index for the relation property. Also, obx_model_property_relation is likely of interest, as it tells to which entity type the relation refers to. Here are the C API docs for it:
Hope that helps in a way. Note that we are a bit busy at the moment, I hope that we can start looking into your PRs in about 2 weeks. |
I've created a PR to discuss this further |
It would be useful to have support for relations: standalone many-to-many as well as property-based to-one relations, see e.g. Go relations. To implement the minimal, the following needs to be addressed:
obx_box_rel_*
objectbox/c.py
The text was updated successfully, but these errors were encountered: