objectbox/objectbox-generator

C generated get/put

vaind opened this issue · 3 comments

vaind commented

Having written the C example in README.md, I've realized more useful code could be generated for C users, e.g. get and put operations:

obx_id task_put(OBX_box* box, Task* task);
Task* task_read(OBX_store* store, OBX_box* box, obx_id id);

why task_read() and not task_get()?

vaind commented

No reason, it's just the way it rolled off my fingers when writing the example, it should be task_get() for consistency.

vaind commented

Merged into next-c-api which will be merged later as part of the #18 - see for details