Skip to content

Commit f20be78

Browse files
committed
Update to 4.0.0
1 parent 3c4b945 commit f20be78

File tree

12 files changed

+361
-23
lines changed

12 files changed

+361
-23
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
ObjectBox C and C++ API Changelog
22
=================================
33

4+
4.0.0 (2024-05-15)
5+
-------------------
6+
* ObjectBox now supports vector search ("vector database") to enable efficient similarity searches.
7+
This is particularly useful for AI/ML/RAG applications, e.g. image, audio, or text similarity.
8+
Other use cases include semantic search or recommendation engines.
9+
See https://docs.objectbox.io/ann-vector-search for details.
10+
* Adjusting the version number to match the core version (4.0); we will be aligning on major versions from now on.
11+
412
0.21.0 (2024-02-13)
513
-------------------
614
* In-memory databases (prefix the directory option with "memory:")

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ else ()
3939

4040
function(defineObjectBoxLib VARIANT)
4141
# Configuration updated for each release
42-
set(DL_VERSION 0.21.0)
42+
set(DL_VERSION 4.0.0)
4343

4444
# Platform detection and other setup
4545
set(DL_URL https://github.com/objectbox/objectbox-c/releases/download)

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ObjectBox Embedded Database for C and C++
22
=========================================
3-
[ObjectBox](https://objectbox.io) is a superfast C and C++ database for embedded devices (mobile and IoT), desktop and server apps.
3+
[ObjectBox](https://objectbox.io) is a lightweight yet powerful on-device database for objects and vectors.
44
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.
55
ObjectBox Data Persistence and Data Sync follows an offline-first approach and can be used on-premise as well as with a cloud setup.
66

@@ -18,7 +18,7 @@ box.put({.text = "Buy milk"});
1818
1919
See [ObjectBox C and C++ docs](https://cpp.objectbox.io/) for API details.
2020
21-
**Latest version: 0.21.0** (2024-02-13).
21+
**Latest version: 4.0.0** (2024-05-15).
2222
See [changelog](CHANGELOG.md) for more details.
2323
2424
## Table of Contents:
@@ -36,6 +36,7 @@ See [changelog](CHANGELOG.md) for more details.
3636
3737
Feature Highlights
3838
------------------
39+
🧠 **First on-device vector database:** easily manage vector data and perform fast vector search\
3940
🏁 **High performance** on restricted devices, like IoT gateways, micro controllers, ECUs etc.\
4041
🪂 **Resourceful** with minimal CPU, power and Memory usage for maximum flexibility and sustainability\
4142
🔗 **Relations:** object links / relationships are built-in\

download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tty -s || quiet=true
4444

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

47-
version=${1:-0.21.0}
47+
version=${1:-4.0.0}
4848
os=${2:-$(uname)}
4949
arch=${3:-$(uname -m)}
5050
echo "Base config: OS ${os} and architecture ${arch}"

doxygen/Changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
ObjectBox C and C++ API Changelog
44
=================================
55

6+
4.0.0 (2024-05-15)
7+
-------------------
8+
* ObjectBox now supports vector search ("vector database") to enable efficient similarity searches.
9+
This is particularly useful for AI/ML/RAG applications, e.g. image, audio, or text similarity.
10+
Other use cases include semantic search or recommendation engines.
11+
See https://docs.objectbox.io/ann-vector-search for details.
12+
* Adjusting the version number to match the core version (4.0); we will be aligning on major versions from now on.
13+
614
0.21.0 (2024-02-13)
715
-------------------
816
* In-memory databases (prefix the directory option with "memory:")

doxygen/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "ObjectBox C and C++ API"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "0.21.0"
41+
PROJECT_NUMBER = "4.0.0"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

examples/cpp-gen-sync/tasklist-example-app.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class TasklistCmdlineApp : public obx::SyncChangeListener {
106106
if (arg == "-a") {
107107
list = taskBox.getAll();
108108
} else if (arg.empty()) {
109-
list = unfinishedTasksQuery.find();
109+
list = unfinishedTasksQuery.findUniquePtrs();
110110
} else {
111111
std::cerr << "Unknown ls argument " << arg << std::endl;
112112
printHelp();

examples/cpp-gen/tasklist-example-app.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class TasklistCmdlineApp {
105105
if (arg == "-a") {
106106
list = taskBox.getAll();
107107
} else if (arg.empty()) {
108-
list = unfinishedTasksQuery.find();
108+
list = unfinishedTasksQuery.findUniquePtrs();
109109
} else {
110110
std::cerr << "Unknown ls argument " << arg << std::endl;
111111
printHelp();

include/objectbox-sync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "objectbox.h"
3535

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

include/objectbox-sync.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "objectbox-sync.h"
2020
#include "objectbox.hpp"
2121

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

2525
namespace obx {

0 commit comments

Comments
 (0)