You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -29,7 +29,7 @@ Store and manage data effortlessly in your Android or JVM Linux, macOS or Window
29
29
Easily manage vector data alongside your objects and perform superfast on-device vector search to empower your apps with RAG AI, generative AI, and similarity search.
30
30
Enjoy exceptional speed, battery-friendly resource usage, and environmentally-friendly development. 💚
31
31
32
-
###Demo code
32
+
## Demo code
33
33
34
34
```java
35
35
// Java
@@ -50,6 +50,7 @@ box.put(playlist)
50
50
```
51
51
52
52
## Table of Contents
53
+
53
54
-[Key Features](#key-features)
54
55
-[Getting started](#getting-started)
55
56
-[Gradle setup](#gradle-setup)
@@ -60,16 +61,18 @@ box.put(playlist)
60
61
-[License](#license)
61
62
62
63
## Key Features
64
+
63
65
🧠 **First on-device vector database:** easily manage vector data and perform fast vector search
64
66
🏁 **High performance:** exceptional speed, outperforming alternatives like SQLite and Realm in all CRUD operations.\
65
67
💚 **Efficient Resource Usage:** minimal CPU, power and memory consumption for maximum flexibility and sustainability.\
66
68
🔗 **[Built-in Object Relations](https://docs.objectbox.io/relations):** built-in support for object relations, allowing you to easily establish and manage relationships between objects.\
67
69
👌 **Ease of use:** concise API that eliminates the need for complex SQL queries, saving you time and effort during development.
68
70
69
71
## Getting started
72
+
70
73
### Gradle setup
71
74
72
-
For Android projects, add the ObjectBox Gradle plugin to your root `build.gradle`:
75
+
For Android projects, add the ObjectBox Gradle plugin to your root `build.gradle`:
73
76
74
77
```groovy
75
78
buildscript {
@@ -98,13 +101,15 @@ apply plugin: "io.objectbox" // Add after other plugins.
98
101
### First steps
99
102
100
103
Create a data object class `@Entity`, for example "Playlist".
101
-
```
104
+
105
+
```kotlin
102
106
// Kotlin
103
107
@Entity data classPlaylist( ... )
104
108
105
109
// Java
106
110
@Entity publicclassPlaylist { ... }
107
111
```
112
+
108
113
Now build the project to let ObjectBox generate the class `MyObjectBox` for you.
109
114
110
115
Prepare the BoxStore object once for your app, e.g. in `onCreate` in your Application class:
0 commit comments