- CMake Integration with ObjectBox Generator 4.0.0
- Made closing the store more robust; e.g. it waits for ongoing queries and transactions to finish (please still ensure to clean up properly on your side, this is an additional safety net)
- Made Box API more robust when racing against store closing
- Improved C++ APIs for nearest neighbor search (query building etc.)
- Some minor HNSW performance improvements
- Add "vectorsearch-cities" example
- Fixed a serious regression; please update to the latest version asap!
- Added a special compression for tiny transactions
- Embedded clusters (note: the cluster feature may not come with all editions of the library)
- Add FlatBuffers based configuration for Sync Server
- Query: "visit with score" added, so you can consume vector search results one-by-one with a visitor callback
- ObjectBox now supports vector search ("vector database") to enable efficient similarity searches. This is particularly useful for AI/ML/RAG applications, e.g. image, audio, or text similarity. Other use cases include semantic search or recommendation engines. See https://docs.objectbox.io/ann-vector-search for details.
- Adjusting the version number to match the core version (4.0); we will be aligning on major versions from now on.
- In-memory databases (prefix the directory option with "memory:")
- Use "ObjectBox Admin" users as Sync users (permission-based)
- New client/server statistics API
- New server API to enable authenticators
- Sync server: support for sync permissions, blocks client updates with no write permission
- Added sync-level login/write permissions for Admin Users DB and Web-UI
- New client API for username/password credentials
- New client-side error listener API; initially reports "receive-only" downgrade due to no write permissions.
- Added OBXFeature_Backup to query for the feature's availability
- Internal: added a DB store abstraction layer (another announcement about this will follow)
- Tree API: fix for meta IDs vs. IDs
- Various internal improvements
- Sync clients may now supply multiple URLs; for each connection attempt a random one is chosen. This allows for client-side load balancing and failover with an ObjectBox Sync cluster.
- New K/V validation option on opening the store
- Additions cursor API: get current ID, ID-based seeks (seek to first ID, seek to next ID)
- Support scalar vector types with basic queries (APIs only, no generator support)
- Various tree API improvements, e.g. introspection
- Minor API clean up: e.g. using int types for bit flags not enums
- Fixes query link condition in combination with some "or" conditions
- Fixes query "less" condition for case-sensitive strings with value indexes (default is hashed index)
- Updated Linux toolchain; now requires glibc 2.28 or higher (and GLIBCXX_3.4.25); e.g. the following minium versions are fine: Debian Buster 10 (2019), Ubuntu 20.04, RHEL 8 (2019)
- Various internal improvements
- Sync: various additions and improvements (client and server)
Recommended bugfix release, generally recommended to update.
- Fixes "Could not put (-30786)", which may occur in some corner cases on some platforms.
- Date properties can now be tagged as expiration time, which can then be easily evicted
- Tree API: various additions and improvements, e.g. OBXTreeOptionFlags to configure the tree behavior
- New query condition to match objects that have a given number of relations
- New "max data size" store setting
- Enabled stricter compiler settings
- Added stacktraces on errors (Linux only; very lightweight as it uses external addr2line or llvm-symbolizer)
- Added log callback for most important logs
- Consolidated "user data" passing as the last parameter
- Various internal improvements
- Added BoxTypeless, QueryBuilderBase and QueryBase: these can be used without generated code and template types.
- New APIs to get the schema IDs for entity types and properties
- Added two methods to Store to await asynchronous processing
- Added "internal" namespace so that internal members do not spill into the obx namespace
- Move more implementations to OBX_CPP_FILE
- Custom protocols for Sync: plugin your own messaging protocol, which ObjectBox Sync will run on
- Improvements to run Sync Server with limited disk space (e.g. on small devices)
- Tree Sync improvements; e.g. consolidate conflicts
- WebSockets (sync protocol) is now a feature, which can be turned off (special build version)
- Performance optimizations
- Added a "weak store" API providing weak reference for stores (typically used by background threads)
- Added Store ID API, e.g. getting a store by its ID
- Various internal improvements including minor optimizations for binary size and performance
- New "OBX_CPP_FILE" define to place declarations in a single .cpp/.cc file: improves compilation time and results
- New "Exception" base class for all thrown exceptions
- Various internal improvements, e.g. a "internal" namespace to better distinguish from userland API
- Allow UTF-8 for database directories on Windows (available for other platforms before)
- Various internal improvements
- Promoted
Options
to a top level class, as nested classes cannot be declared forward - New
#define
to disable FlatBuffers includes to simplify new project setup - Rename
Exception
toDbException
- Minor improvements
- Add store cloning
- Fix attaching to a reopened store
- Fix non-unique indexes triggering unique constraint violations in corner cases (introduced in 0.15.0)
- Minor performance improvements with hashed indexes
- Admin UI now supports multiple sessions to the same host using different ports (session ID via HTTP request)
- Performance improvements for compression and decompression
- New "Flex" data type that can contain data of various types like integers, floating points, strings, lists and maps
- New query conditions for Flex lists to find a specific element
- New query conditions for Flex maps to find elements with a specific key or key/value pair
- New unique on-conflict strategy: replace conflicting objects (OBXPropertyFlags_UNIQUE_ON_CONFLICT_REPLACE)
- New functions to attach to existing stores using only the file path (in the same process)
- New APIs for ObjectBox Admin, the web based UI (formerly known as Object Browser): obx_admin_*
- Minor performance improvements for indexed access
- Major performance improvements for tree/GraphQL queries
- ARM binaries are now built for minimal size reducing the library size significantly
- New "no_reader_thread_locals" store option
- Enable debug logging (requires a special build)
- API: Type for query offsets and limits was changed from uint64_t to size_t
- API: rarely used obx_txn_mark_success() was removed; use obx_txn_success()
- API: feature checks consolidated to only use obx_has_feature()
- Many internal improvements
- Core version 3.0.1-2021-12-09
- New API for embedded server mode: obx_sync_server_* (implementation available on request)
- change
obx_query_prop_count()
to respect case-sensitivity setting when counting distinct strings - change
OBXSyncCredentialsType
values to start at 1 - add
obx_query_find_first()
to get a first object matching the query - add
obx_query_find_unique()
to get the only object matching the query - add
obx_async_put_object4()
accepting a put_mode - updated ARMv7hf toolchain, now requires GLIBC v2.28 (e.g. Raspbian 10, Ubuntu 20.04)
- semi-internal Dart APIs: add query streaming and finalizers
- add Sync binary library variants for all supported platforms
- add MacOS universal binary library, supporting Intel x64 and Apple Silicon arm64
- split Sync symbols out of objectbox.h/pp into objectbox-sync.h/pp
- add Sync server-time getter, listener and local-to-server diff info - to access server time info on clients
- add Sync heartbeat interval configuration and an option to send one immediately
- semi-internal: update Dart/Flutter SDK to v2.0
- add Linux ARMv8 (aarch64) native binary library
- add
obx_sync_*
APIs (actual functionality is only available in a sync-enabled version; see https://objectbox.io/sync/) - add
obx_has_feature()
, andOBXFeature
enum: please use these instead of the following, now deprecated functions:obx_supports_bytes_array()
,obx_supports_time_series()
, andobx_sync_available()
- add
obx_remove_db_files()
to delete database files in a given directory - add optional
OBXEntityFlags_SHARED_GLOBAL_IDS
forSYNC_ENABLED
entities - semi-internal: add custom async callback APIs for Dart/Flutter language binding
- update CMakeLists.txt to simplify integration for users, e.g. with
FetchContent
, see the updated installation docs - rename
objectbox-cpp.h
toobjectbox.hpp
- change cursor and box read functions
get/first/current/next
void**
argument toconst void**
- change multiple Query and QueryBuilder functions
int count
argument tosize_t count
- change observer signatures (
obx_err
return value andsize_t count
argument) - change C++ Store Options to a "builder" pattern and expose all available options
- new obx_model_entity_flags()
- new obx_opt_async_*() to configure Async box behavior
- new C++ AsyncBox and Box::async() to expose asynchronous operations
- new QueryBuilder greater-or-equal/less-or-equal functions for integers and floats
- new obx_query_offset_limit() setter for offset and limit in a single call
- new obx_sync_available() to check whether the loaded runtime library supports ObjectBox Sync
- clean up linter warnings in the examples and
objectbox.h(pp)
C++ API queries and model classes for more feature-rich generated code. C-API cleanup & docs updates, including the following changes (some of them breaking due to renames):
- new property type: DateNano for datetime with nanosecond precision
- new store options obx_opt_*()
- validate_on_open - to validate the database during openining
- put_padding_mode - configure the padding used by your flatbuffers implementation
- use_previous_commit - roll-back the database to the previously committed version
- read_only - open the database in the read only mode
- debug_flags - configure debug logging
- remove obx_cursor2(), use obx_cursor() in combination with obx_store_entity_id()
- rename obx_cursor_put_mode() to obx_cursor_put4()
- obx_cursor_put() drops the last parameter
checkForPreviousValue
and introduced a complementary obx_cursor_put_new() - remove obx_cursor_put_padded()
- rename obx_cursor_backlink_bytes() to obx_cursor_backlinks()
- rename obx_cursor_ts_limits() to obx_cursor_ts_min_max()
- rename obx_cursor_ts_limits_range() to obx_cursor_ts_min_max_range()
- rename obx_box_put() to obx_box_put5()
- rename obx_box_put_object() to obx_box_put_object4()
- change obx_box_put_many to fail when any of the individual inserts/updates fails and new obx_box_put_many5() to override this behavior
- new obx_box_store() to get access to OBX_store* owning the given box
- new obx_box_insert() obx_box_update() for for insert and update semantics, same as put mode arg in obx_box_put5()
- new obx_box_put() without a mode argument (defaults to PUT)
- new obx_box_put_object() without a mode argument (defaults to PUT)
- new obx_box_ts_min_max() for time-series databases
- new obx_box_ts_min_max_range() for time-series databases
- rename obx_async_put_mode() to obx_async_put5()
- rename obx_async_id_put() to obx_async_put_object()
- rename obx_async_id_insert() to obx_async_insert_object()
- obx_qb_{type}{operation}() function naming changes to obx_qb{operation}_{type}(), e.g. obx_qb_int_equal() becomes obx_qb_equals_int()
- obx_qb_{operation}_{type}() functions taking multiple arguments have an "s" at the end, indicating plural, e.g. obx_qb_in_int64s()
- operation
equal
becomesequals
,greater
becomesgreater_than
,less
becomesless_than
- obx_qb_greater_than_string() drops
with_equal
argument in favor of the new obx_qb_greater_or_equal_string() function - obx_qb_less_than_string() drops
with_equal
argument in favor of the new obx_qb_less_or_equal_string() function - change obx_qb_in_strings() argument
const char* values[]
changes toconst char* const values[]
, i.e. const array of const char pointers - obx_qb_greater_than_bytes() drops
with_equal
argument in favor of the new obx_qb_greater_or_equal_bytes() function - obx_qb_less_than_bytes() drops
with_equal
argument in favor of the new obx_qb_less_or_equal_bytes() function
Limit and offset are now part of the query state instead of function arguments, therefore:
- new obx_query_offset() and obx_query_limit() set persistent offset/limit for all future calls to other query functions
- obx_query_find(), obx_query_visit(), obx_query_find_ids(), as well as the cursor alternatives,
all drop
offset
andlimit
arguments - note: some query functions, such as count/remove don't support non-zero offset/limit yet.
- obx_query_{type}param() function naming changes to obx_query_param{type}(), e.g. obx_query_string_param() becomes obx_query_param_string() or obx_query_param_strings() for the plural variant
- obx_query_{type}param_alias() function naming changes to obx_query_param_alias{type}(), e.g. obx_query_string_param_alias() becomes obx_query_param_alias_string()
- obx_query_param_strings() and obx_query_param_alias_strings() argument
const char* values[]
changes toconst char* const values[]
, i.e. const array of const char pointers - obx_query_prop_{type}find() function naming changes to obx_query_prop_find{type}s(), with an "s" indicating the return type is plural, e.g. obx_query_prop_find_strings
- remove deprecated obx_query_prop_distinct_string()
- Rename obx_cursor_ts_limits() to obx_cursor_ts_min_max()
- Add C++ APIs for query links and TS min/max
- C++ interface improvements:
- Box::getOptional() overloads returning std::optional
- Box::put() overloads taking vectors of std::unique_ptr and std::optional
- Query methods: find(), findIds(), count(), remove(), ...
- Ensure double-free can't happen (added explicit copy & move constructors)
- Fixed Windows exported symbols - recently added APIs were missing
- New obx_cursor_put_object4() to allow passing a PutMode
- Make *_close() functions consistently accept nullptr
- C++ API added: see include/objectbox-cpp.h
- Initial time series support (ObjectBox TS only)
- New "put object" functions that e.g. handle ID assignment
- Several internal improvements, e.g. query links are resolved faster
- Fix ARM build incorrectly returning TRUE in obx_supports_bytes_array()
- Bug fix for obx_box_rel_get_ids(), which did return wrong IDs in some cases (please update!)
- Several refinements on property queries, for example:
- Maintain floating point point semantics on aggregates, e.g. infinity + 1 == infinity (no overflow)
- Allow aggregates on Date type properties
- Return negative counts if results were obtained using a short cut (API change to int64_t*)
- Property queries compute sums and averages more precisely (improved algorithms and wider types)
- Property queries now consider unsigned types
- Added an additional out parameter for count obx_query_prop_*()
- Added put alternatives to "put" with cursor: obx_cursor_insert() and obx_cursor_update()
- Added obx_query_clone() to allow clones to run in parallel on separate threads
- new obx_store_wrap() (use with Java version 2.4.1)
- Minor fixes
- Query performance improvements
- Improved API docs
- Minor fixes
- Added observers to listen to data changes (e.g. obx_observe())
- Added obx_last_error_pop() to get and reset the last error
- Added obx_box_rel_get_backlink_ids() to get backlinks of standalone relations
- iOS and macOS related improvements; e.g. obx_posix_sem_prefix_set() for sand-boxed macOS apps
- Better resilience for passing in NULL for many functions
- Improved API docs
- Quite a few functions got comments
- Online API docs (Doxygen)
- Minor fixes
- obx_txn_success(txn) now also closes the transaction making a subsequent obx_txn_close(txn) unnecessary and illegal.
Please adjust your code using one of two possibilities (depending on your code flow):
- drop
obx_txn_close(txn)
after callingobx_txn_success(txn)
, or - replace
obx_txn_success(txn)
withobx_txn_mark_success(txn, true)
if you want to keepobx_txn_close(txn)
- drop
- Function renames to drop "create" postfix: obx_query_builder(), obx_query(), obx_cursor(), obx_model(), obx_bytes_array(), obx_id_array()
- Property queries API clean up using a OBX_query_prop struct
- 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(), ...
- 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_*
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 stringremove_db_files()
removes the database in the given directorysupports_bytes_array()
provides info if you can use functions to get whole data sets at oncemodel_relation()
to define standalone many-to-many relations between two entitiescursor_rel_put()
,remove()
,ids()
to add, remove & get standalone relationsqb_link_property()
,qb_backlink_property()
to query across property based (to-one) relation linksqb_link_standalone()
,qb_backlink_standalone()
to query across standalone many-to-many relation linkscursor_put_padded()
in case your FlatBuffers data is not divisible by 4cursor_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 tocursor_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()
toqb_param_alias()
- renamed
query_describe_parameters()
toquery_describe_params()
- renamed
query_to_string()
toquery_describe()
query_*_param()
andquery_*_params_in()
now takeentity_id
as an argument (you can pass 0 for queries without relation links)
- Works on Ubuntu 16+
- Add obx_cursor_count_max and obx_cursor_is_empty can be a high-performance alternative to obx_cursor_count
- Preemptive throttling for async puts
- ARM support (v6 and v7)
- New typedefs : obx_id, obx_schema_id, obx_uid, obx_err
- Added obx_cursor_get_all as an alternative to iterating over all objects
- Added queries (obx_qb_* and obx_query_*)
- Added property based relations one-to-many relations
Initial release