Upcoming changes to trait API #344
SanderMertens
started this conversation in
Announcements
Replies: 1 comment
-
The PR is up: #358 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The trait API is going to be overhauled with new terminology better suited for using it as an entity-relation API. Additionally, a number of inconsistencies between the C and C++ API will be addressed, and a cleaner query syntax will be added. The old trait API will still be supported, but deprecated.
The new API introduces the following terms:
The C API changes will be as follows (not exhaustive):
The iterator API will start using "term" instead of "column":
The CHILDOF and INSTANCEOF roles will be translated to relations. Note that ECS_INSTANCEOF will be renamed to EcsIsA:
The C++ API changes will be as follows (not exhaustive):
The iterator will start using term instead of column:
The add_instanceof and add_childof methods will be deprecated:
The revised query language will have these forms for querying:
The changes to the query language will be as follows (not exhaustive):
Beta Was this translation helpful? Give feedback.
All reactions