ObjectBox C/C++ database v0.6.0 Release Notes
Release Date: 2019-07-15 // almost 5 years ago-
- Box API is now on a par with Cursor API.
The Box API is usually preferred because it comes with implicit transaction management.
- Boxes don't have to be closed anymore (obx_box_close() removed)
- Basic operations like obx_box_get(), obx_box_put_many(), obx_box_remove()
- Relation operations
- Transactions can now be created recursively. The most outer transaction defines the transaction scope for the database.
- 🆕 New async API (OBX_async struct) including put, insert, update and remove operations
- ➕ Added property queries with results referring to single property (not complete objects). Note: APIs will change with next release.
- Several smaller improvements; e.g. obx_query_* functions don't require a cursor anymore, added obx_store_await_async_submitted(), ...
(Breaking) Changes
- The OBX_store_options struct is now private
- Build OBX_store_options using obx_opt()
- Set options using obx_opt_*()
- Transactions functions were renamed and changed to recursive semantics. E.g.:
- Create transactions with obx_txn_write() or obx_txn_read()
- Mark as successful using obx_txn_success() instead of committing
- Renamed obx_box_create() to obx_box()
- Renamed obx_query_* functions to obx_query_cursor_*
- Box API is now on a par with Cursor API.
The Box API is usually preferred because it comes with implicit transaction management.