Skip to content

Commit

Permalink
Update to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot committed May 15, 2024
1 parent 3c4b945 commit f20be78
Show file tree
Hide file tree
Showing 12 changed files with 361 additions and 23 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
ObjectBox C and C++ API Changelog
=================================

4.0.0 (2024-05-15)
-------------------
* 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.

0.21.0 (2024-02-13)
-------------------
* In-memory databases (prefix the directory option with "memory:")
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else ()

function(defineObjectBoxLib VARIANT)
# Configuration updated for each release
set(DL_VERSION 0.21.0)
set(DL_VERSION 4.0.0)

# Platform detection and other setup
set(DL_URL https://github.com/objectbox/objectbox-c/releases/download)
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ObjectBox Embedded Database for C and C++
=========================================
[ObjectBox](https://objectbox.io) is a superfast C and C++ database for embedded devices (mobile and IoT), desktop and server apps.
[ObjectBox](https://objectbox.io) is a lightweight yet powerful on-device database for objects and vectors.
The out-of-the-box [Data Sync](https://objectbox.io/sync/) keeps data in sync across devices and any kind of backend/cloud reliably for occasionally connected devices.
ObjectBox Data Persistence and Data Sync follows an offline-first approach and can be used on-premise as well as with a cloud setup.

Expand All @@ -18,7 +18,7 @@ box.put({.text = "Buy milk"});
See [ObjectBox C and C++ docs](https://cpp.objectbox.io/) for API details.
**Latest version: 0.21.0** (2024-02-13).
**Latest version: 4.0.0** (2024-05-15).
See [changelog](CHANGELOG.md) for more details.
## Table of Contents:
Expand All @@ -36,6 +36,7 @@ See [changelog](CHANGELOG.md) for more details.
Feature Highlights
------------------
🧠 **First on-device vector database:** easily manage vector data and perform fast vector search\
🏁 **High performance** on restricted devices, like IoT gateways, micro controllers, ECUs etc.\
🪂 **Resourceful** with minimal CPU, power and Memory usage for maximum flexibility and sustainability\
🔗 **Relations:** object links / relationships are built-in\
Expand Down
2 changes: 1 addition & 1 deletion download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tty -s || quiet=true

# Note: optional arguments like "--quiet" shifts argument positions in the case block above

version=${1:-0.21.0}
version=${1:-4.0.0}
os=${2:-$(uname)}
arch=${3:-$(uname -m)}
echo "Base config: OS ${os} and architecture ${arch}"
Expand Down
8 changes: 8 additions & 0 deletions doxygen/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
ObjectBox C and C++ API Changelog
=================================

4.0.0 (2024-05-15)
-------------------
* 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.

0.21.0 (2024-02-13)
-------------------
* In-memory databases (prefix the directory option with "memory:")
Expand Down
2 changes: 1 addition & 1 deletion doxygen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "ObjectBox C and C++ API"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = "0.21.0"
PROJECT_NUMBER = "4.0.0"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp-gen-sync/tasklist-example-app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class TasklistCmdlineApp : public obx::SyncChangeListener {
if (arg == "-a") {
list = taskBox.getAll();
} else if (arg.empty()) {
list = unfinishedTasksQuery.find();
list = unfinishedTasksQuery.findUniquePtrs();
} else {
std::cerr << "Unknown ls argument " << arg << std::endl;
printHelp();
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp-gen/tasklist-example-app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class TasklistCmdlineApp {
if (arg == "-a") {
list = taskBox.getAll();
} else if (arg.empty()) {
list = unfinishedTasksQuery.find();
list = unfinishedTasksQuery.findUniquePtrs();
} else {
std::cerr << "Unknown ls argument " << arg << std::endl;
printHelp();
Expand Down
2 changes: 1 addition & 1 deletion include/objectbox-sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "objectbox.h"

#if defined(static_assert) || defined(__cplusplus)
static_assert(OBX_VERSION_MAJOR == 0 && OBX_VERSION_MINOR == 21 && OBX_VERSION_PATCH == 0, // NOLINT
static_assert(OBX_VERSION_MAJOR == 4 && OBX_VERSION_MINOR == 0 && OBX_VERSION_PATCH == 0, // NOLINT
"Versions of objectbox.h and objectbox-sync.h files do not match, please update");
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/objectbox-sync.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "objectbox-sync.h"
#include "objectbox.hpp"

static_assert(OBX_VERSION_MAJOR == 0 && OBX_VERSION_MINOR == 21 && OBX_VERSION_PATCH == 0, // NOLINT
static_assert(OBX_VERSION_MAJOR == 4 && OBX_VERSION_MINOR == 0 && OBX_VERSION_PATCH == 0, // NOLINT
"Versions of objectbox.h and objectbox-sync.hpp files do not match, please update");

namespace obx {
Expand Down
Loading

0 comments on commit f20be78

Please sign in to comment.