Questions tagged [objectbox]
ObjectBox is an object-oriented embedded database and a full alternative for SQLite, developed by Greenrobot. It supports Android and plain-Java.
375
questions
0
votes
0
answers
17
views
Build Objectbox lib (libobjectbox.so) by myself
for some reasons I need to build objectbox library by myself. But I cant find any information about this, only precompiled binaries. Is it possible?
I've downloaded src from https://github.com/...
0
votes
3
answers
264
views
UnsupportedError (Unsupported operation: Loaded ObjectBox core dynamic library has unsupported version 0.18.1, expected ^0.19.0)
I get this exception at the startup of the app.
UnsupportedError (Unsupported operation: Loaded ObjectBox core dynamic library has unsupported version 0.18.1, expected ^0.19.0)
Flutter 3.15.0-15.2.pre ...
0
votes
0
answers
14
views
Object Box and Graph Queries
With ObjectBox supporting documents / objects and relations, does it support graph queries? It seems other non-graph databases like MongoDB also have some graph database like support, but hadn't quite ...
0
votes
1
answer
28
views
Getting Error: Bad state: failed to create store: Cannot open store: another store is still open using the same path: "/data/..." error 10001
I'm trying to store data locally with ObjectBox in Flutter, and I started getting this error. Everything looks good according to the documentation, I'm unsure why I'm getting errors from the objectbox....
0
votes
1
answer
25
views
Riverpod StateNotifierProvider not refreshing the UI
So I was tired to do the state management with callbacks and I start using Riverpod and it looks awesome. However I have some little troubles to make it work perfectly.
I am making a UI with favorite ...
0
votes
0
answers
11
views
ObjectBox - Given relation with ID XX does not include this box type (ENTITY_NAME)
On my Flutter app, I've found this error in Crashlytics after an update.
I didn't reproduce it yet on my dev environment, meaning that I don't really know what triggers this problem.
I know that this ...
1
vote
1
answer
36
views
Is there an API or method for querying the first and last data in this project?
Is there an API or method for querying the first and last data in objectbox-go.
Similar to the First() and Last() methods in Gorm.
I need to use this method to query one by one and then send the data ...
0
votes
1
answer
34
views
How to use putMany() in Flutter Objectbox?
I want to put a bunch of objects in Flutter Objectbox using the putMany() method instead of using a loop. I tried to generate the objects in a list and put the list, but it throws errors. My model is ...
1
vote
1
answer
32
views
Deploy/Redistribute binaries compiled with ObjectBox Go
I'm using ObjectBox Go to replace SQLite for my app, which is supposed to run on standard PC (Linux/Windows/macOS), mobile phone (Android and iOS devices) and Web Browser (via wasm).
We need to ...
-2
votes
1
answer
28
views
May someone please assist me with this error?
I am trying to create a basic todo app in flutter using Objectbox as a database.
This is the error:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)]
Unhandled Exception: ObjectBoxException: failed ...
0
votes
0
answers
10
views
compile ObjectBox without examples
I'm looking to compile ObjectBox without including the examples and test apps. Essentially, I want to keep only the ObjectBox library in my environment. Could you please guide me on how to achieve ...
1
vote
1
answer
22
views
objectbox go undefined: objectbox.ObjectBox
I am new to GO and to objectbox. I am on Windows 10.
My version of GO is
go version go1.20.1 windows/amd64
I am using Visual Studio 1.77.3
I am working through the demo at
https://golang.objectbox.io/...
0
votes
1
answer
11
views
Flutter: Seralize ObjectBox objects as fields of other ObjectBox objects
consider the following ObjectBox classes:
@Entity()
class TestModel1 {
@Id()
int id;
final TestModel2 testModel2; // un-seralizable
TestModel1({this.id = 0, required this.testModel2,});
}
...
1
vote
0
answers
29
views
Android Database Migration in Production
I'm looking (without success) a testing environment for my app database migration.
I'm working with ObjectBox and DBFlow in simultaneously and need to migrate my database in production, because some ...
1
vote
1
answer
32
views
Is there a way to retrieve all objects in a query that were initially stored as an array?
After storing an array of objects using put() method, I am only able to retrieve the last object.
var saleBookCopies:List<SaleBookCopy> = saleBook.book_copies
//saleBook.book_copies is an array ...
0
votes
0
answers
26
views
Objectbox issue on read - can't assign value into field
I have an object Day. List "dbLunchMenu" and "dbDinnerMenu" are the db representation of properties List "lunchMenu" and "dinnerMenu".
Objectbox failed to set ...
0
votes
0
answers
37
views
How to properly set up a ToMany relation with Objectbox in Flutter?
The Objectbox is setup fine. It works for other entities.
This is the class I want to store in the Objectbox:
class A {
String id;
List<B> fieldA;
List<B> fieldB;
}
The custom class ...
0
votes
0
answers
14
views
Another boxStore is open for this directory [ObjectBox problem]
public static BoxStore getBoxStore() {
synchronized (TayqaSale.class) {
if (sBoxStore == null || sBoxStore.isClosed()) {
int flags = 0;
sBoxStore = MyObjectBox....
0
votes
0
answers
33
views
Is it possible to convert a Function object to a byte array in dart?
I have a dart class which contains a Function member variable (which is different for each instance of the class). I need to store instances of this class in a database (such as ObjectBox), but in ...
2
votes
1
answer
100
views
How to use ObjectBox database into compose multiplatform project?
The object-box database offers a very easy way of implementation for both android and jvm projects. It has clear-text documentation for these purposes. But problem arises when I try to use it into a ...
0
votes
0
answers
46
views
Flutter ObjectBox: getAll() stream not responding
I have the following objectBox class:
class ObjectBox {
late final Store _store;
late final Box<EventData> _eventBox; // EventData is some model I made
ObjectBox._init(this._store) {
...
1
vote
1
answer
74
views
How to update the state when navigating back in Jetpack Compose
How can I ensure that the list of feedList in my first screen updates after adding a new feed item on the second screen? I'm using a navController to navigate between the two screens and ObjectBox as ...
0
votes
0
answers
20
views
Is there anyway we can observe changes in Objecbox database like we observe for CRUD operations in Room Database?
I was building an app on Jetpack Compose and saved some data using Objexbox, CRUD operations work fine, but I have a problem here. Is there any way we can observe the changes in the data in the object ...
0
votes
0
answers
13
views
ObjectBox: switch from local db to sync and back
Consider an app that can be used offline on one device to begin with. Later, if the user chose to sync to other devices, how would that transition take place? A simple setting, or a migration?
Now ...
0
votes
0
answers
204
views
Flutter ObjectBox: Incoming index ID does not match existing UID
I'm dealing with an issue related to ObjectBox migrations. Whenever I make a name change to any property in the app, if I re-run the flutter pub run build_runner build command to re-build the ...
0
votes
1
answer
177
views
Flutter Objectbox build_runner build exiting with code 78
I'm writing my first flutter app. I've defined the models with objectbox and now I'm trying to build objectbox codes by running flutter pub run build_runner build. And here's the output I get:
[INFO] ...
2
votes
1
answer
79
views
Flutter Objectbox how to fix "Read Only File System" Code 30?
I developed my app for Windows and it works perfectly fine. So after some time I tried to build it to Android, it come with an error
E/Box (30248): Storage error "Read-only file system" (...
0
votes
0
answers
18
views
How can i prevent objecbox-jni linkage error?
When start the App it always show followring errors.
BoxStore Linkage error: Beginning load of objectbox-jni...
BoxStore Linkage error: objectbox-jni (3.5.1) was loaded normally!
May I ignore errors?
...
1
vote
0
answers
82
views
Objectbox Sync with Fly.io
I would like apply objectbox sync to fly.io. In testing in local, it is fine with the docker command. But in deploying to fly.io, I have no opinion with how to work -model command in fly.io.
docker ...
1
vote
1
answer
118
views
How do i resolve flutter objectbox build error?
I'm a Flutter developer
I'm using the obejctbox package for saving local DB.
When i upgrade flutter version and build app to make objectbox.g.dart by "flutter pub run build_runner build --delete-...
0
votes
1
answer
54
views
Is there a way to be notified on ObjectBox Dart model changes?
I am currently working with ObjectBox Dart and I would like to perform migration during data model changes, for example, populating data into the new column. However, I don't find any way to do it. Is ...
1
vote
1
answer
71
views
Object Box alpine support?
I am trying to build android project in CI/CD environment in alpine distrib with eclipse temurin jdk-11 and the following error happened during unit tests :
java.lang.LinkageError: [ObjectBox]...
0
votes
0
answers
43
views
How simplify code for Custom Type in objectbox?
I am trying to optimize the code definition/implementation of a Custom Type on an Objectbox Entity using Flutter and Dart.
To declare a custom type in an entity I proceed in this way.
@Entity()
class ...
1
vote
0
answers
113
views
Flutter ObjectBox Mapping and create model
Hello guys I have data models like:
class Product {
int id;
String name;
List<ImageList> images;
}
class ImageList {
String name;
String src;
}
I need to store this data to objectbox
...
-1
votes
1
answer
470
views
how can i see Object box database in flutter?
I have made a flutter application and to store data in offline mode I use an object box database.
but now the issue is how can see what data are stored in a database. how many tables or entries are ...
1
vote
1
answer
606
views
Unsupported operation: Loaded ObjectBox core dynamic library
I updated flutter from 3.5 to latest flutter 3.7.2
flutter --version
Flutter 3.7.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 12cb4eb7a0 (6 ...
0
votes
1
answer
33
views
Does it matter which side of an ObjectBox Many to Many relationship the @Backlink annotation goes on?
The ObjectBox docs and my own empirical research have shown the @Backlink annotation should always be placed on the ToMany side of a One to Many relationship, but it is unclear to me if it matters ...
0
votes
1
answer
61
views
Objectbox flutter apple silicon emulator support
Does objectbox flutter support ios emulator on M1 macbooks?
I get this error despite following Getting started guide, however it works fine in CI which also runs on M1 chip (but against physical phone ...
0
votes
0
answers
32
views
objectbox query conditions for related entities ignore main table queries
I have this two tables:
@Entity()
class Cikkek {
@Id()
int id;
String cikkszam = '';
String cikknev = '';
String gyarto = '';
final kategoria = ToOne<Kategoriak>();
}
@Entity()
...
0
votes
0
answers
16
views
Can I query with one "and" and 3 "or" conditions?
Can i have a query, where i have one "and" and three "or" conditions?
I tried with this one, but it has webmegjel = 2 entries in the list, so it does and or or , not and (or or). I ...
0
votes
0
answers
78
views
Creating model: lib/objectbox-model.json
I am trying to create a Objectbox model in flutter app
But it shows me the following error
/////////////
\[INFO\] Generating build script completed, took 221ms
\[INFO\] Reading cached asset graph ...
0
votes
1
answer
165
views
In ObjectBox for Flutter, is there a way to compare two properties?
I'm new to using ObjectBox, so I've been trying to do some experimenting with its query system to familarize myself with it. One of the queries I've been unable to do is a query comparing two ...
0
votes
0
answers
110
views
objectbox ToMany relation build gives me: don't know how to initialize param cikkid - no such property
I have this ToMany relation:
@Entity()
class Cikkek {
@Id()
int id;
int cikkid = 0;
String cikkszam = '';
@Backlink("cikk")
final Vkodok = ToMany<Vonalkodok>();
Cikkek(...
1
vote
0
answers
164
views
Dart - Export data from objectbox to firebase
Hi i need export the data created by objectbox to firebase. How could I do it if it is saved in a .mdb file, any ideas?
1
vote
0
answers
148
views
Where to find ObjectBox nonsql database file on Android Emulator(using Windows) and how to open it?
Where can I find ObjectBox nonsql database file on an Android Emulator(using Windows) and what program to use to open the database file to look at the saved records?
0
votes
0
answers
47
views
Database upgrade on objectbox and drop old table
What i want to achieve is following things.
At some point i want do some updates on my data and database.
What i want to do is to drop a table and repopulate it again, in order to keep the id-s same ...
1
vote
1
answer
361
views
Flutter with Equitable and ObjectBox: ToMany relationship not updating properly
I have the following classes:
import 'package:equatable/equatable.dart';
import 'package:objectbox/objectbox.dart';
@Entity()
/*
All fields of a class which extends Equatable should be immutable, but ...
0
votes
0
answers
33
views
Restore deleted Objectbox database form the android phone
I have developed a warehouse delivery app (track and trace) for Android handheld scanners with Flutter and Objectbox as local database. After few months I changed my OS from win10 to Ubuntu 21 and ...
0
votes
1
answer
79
views
Is there an objectbox condition, that can filter by string length?
Can I make a database query, with a condition that filters out any elements when a text field doesn't have length 2 or 3 characters?
0
votes
2
answers
55
views
Query with order, places accented value at the end
In my flutter project, I use box.query(myquery)..order(Kategoriak_.cikkcsoportnev).build(),
but my Áramfejlesztők, szivattyúk category is at the end of the list.
How can I order it correctly, so Á ...