ObjectBox C/C++ database v0.5.0 Release Notes

Release Date: 2019-02-21 // about 5 years ago
  • โž• Additions

    • ๐Ÿ‘ unsigned support for numeric types using OBXPropertyFlags_UNSIGNED
    • ๐Ÿ‘ string vector support (FlatBuffers [string])
    • qb_strings_contain() checks whether a string vector contains a given string
    • remove_db_files() removes the database in the given directory
    • supports_bytes_array() provides info if you can use functions to get whole data sets at once
    • model_relation() to define standalone many-to-many relations between two entities
    • cursor_rel_put(), remove(), ids() to add, remove & get standalone relations
    • ๐Ÿ”— qb_link_property(), qb_backlink_property() to query across property based (to-one) relation links
    • ๐Ÿ”— qb_link_standalone(), qb_backlink_standalone() to query across standalone many-to-many relation links
    • cursor_put_padded() in case your FlatBuffers data is not divisible by 4
    • ๐Ÿ‘€ cursor_seek() to point to the the element with given id (and also check if that element exists)
    • corsor_current() to get the data of the current element (similar to cursor_first(), next())
    • query_visit() to traverse over the query results and call the provided callback on each item

    ๐Ÿ”„ Changes:

    • prefix defined constants (enums) with OBX
    • model_* functions now always return the first error (as it may be the cause of other follow-up errors as well)
    • box_put_async() now takes timeout in milliseconds (previously it was a fixed number)
    • query_find() & query_find_ids() now also take offset & limit as arguments (pass 0s for previous behavior)
    • renamed qb_parameter_alias() to qb_param_alias()
    • renamed query_describe_parameters() to query_describe_params()
    • renamed query_to_string() to query_describe()
    • query_*_param() and query_*_params_in() now take entity_id as an argument (you can pass 0 for queries without relation links)