Questions tagged [flutter-objectbox]

ObjectBox is a super-fast database storing Dart objects locally.

ObjectBox is a super-fast database storing Dart objects locally.

High performance - improving response rates and enabling real-time applications.

ACID compliance - Atomic, Consistent, Isolated, Durable.

Relations - object links / relationships are built-in.

Scalable - grows with your app, handling millions of objects with ease.

Queries - filter data as needed, even across relations.

Statically typed - compile-time checks & optimizations.

Multiplatform - Android, iOS, macOS, Linux, Windows.

Schema migration - change your model with confidence.

ObjectBox Sync - keeps data in sync offline or online, between devices and servers.

Links:

112 questions
0
votes
0 answers

Why First parent model reference is getting set as null when adding the same child to second parent using `ObjectBox` in flutter?

I have two objects one parent model have ToOne relation and a child model with ToMany relation back to the parent. Now if I have two parents who are setting their relation to child then the first parent's reference to child is getting null when the…
minato
  • 2,028
  • 1
  • 18
  • 30
0
votes
1 answer

Example of migration logic for changing Property Types Objectbox Flutter

I have a flutter app that stores the data with objectbox but I need to change a class that has // old: int year; // new: double year; ObjectBox does not support migrating existing property data to a new type. You will have to take care of this…
0
votes
1 answer

cannot query for new bool property default value

I have an existing database, and if I define a new bool hide_in_main_screen = false; property in my objectbox class, and I query it like Store.box().query(TM_.hide_in_main_screen.equals(false)).build().find(), I got 0 items. If I query the whole…
Ebadta
  • 317
  • 1
  • 3
  • 10
0
votes
1 answer

Bad state: failed to create cursor: 10001 Can not modify object of sync-enabled type "Income" because sync has not been activated for this store

I am new to objectbox in flutter and already getting an error while trying to put object in the store. I have the following code: objectbox class import 'package:finsec/features/income/data/models/Income.dart'; import…
yoohoo
  • 1,147
  • 4
  • 22
  • 39
0
votes
2 answers

Should I use ObjectBox in a separate isolate so as not to block UI thread?

I'm going to use ObjectBox in my Flutter project. But I noticed that the get method is synchronous. So should I use ObjectBox in a separate isolate to avoid blocking the UI thread?
user13331707
0
votes
1 answer

ObjectBox does not build after Dart SDK update

I was using ObjectBox without many problems for a while during a development with Flutter, but now the build_runner fails: The closest change I have made is a Flutter upgrade yesterday to Flutter 2.5.3 along with Dart 2.14.4. ObjectBox…
ViKARLL
  • 101
  • 1
  • 9
0
votes
1 answer

Flutter ObjectBox Unit Testing - Failed to load dynamic library 'lib/objectbox.dll'

I'm building my new Flutter app with objectBox as DB. When I write a unittest that includes objectBox, at running the test I get following error message: Failed to load "C:\Dev\flutter_rebuild\test\db_model_test.dart": Invalid argument(s): Failed…
F.M.
  • 630
  • 1
  • 5
  • 18
0
votes
1 answer

How to build query with successive order methods

I am getting error for building query with chaining order methods as it has a return type of void. final qc = Entity_.objectID .equals(objectId) .and(Entity_.date …
raphire
  • 198
  • 9
0
votes
1 answer

Adding objectbox_generator giving error 1314

add objectbox_generator in pubspec.yaml dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^1.0.0 build_runner: ^2.1.4 objectbox_generator: any giving this error Cannot create link, path =…
Burhan Khanzada
  • 945
  • 9
  • 27
0
votes
0 answers

Cannot access a closed store pointer

In object box database for flutter, sometimes while referring to ToOne relationship, I get this error. What does it signify and how to prevent it? Can't reproduce the code as it happens occasionally.
raphire
  • 198
  • 9
0
votes
1 answer

how can I store a Map type in my box ? I use Flutter Objectbox

I cannot save the Map type in my box, the songInfo attributes @Entity() class PlaylistItem { int id = 0; int recentIndex; Map songInfo; PlaylistItem({ this.recentIndex = 0, this.songInfo = const {}…
lordyhas
  • 360
  • 1
  • 11
0
votes
0 answers

Is ObjectBox Sync Suit for Membership apps?

I am new to ObjectBox Let say we have membership apps for customer app which allow customer to order items every user using his own phone to order, so in my opinion i don't think it is good to "sync" for "customer 1" to "customer 2" phone, which is…
0
votes
1 answer

creating and updating an ObjectBox 1:n relationship

I am a bit confused with the documentation. Let's stay with the customer order relationship, where a customer can have n orders. If I create a new order for an existing customer and store this with Customer customer =…
w461
  • 2,168
  • 4
  • 14
  • 40
0
votes
1 answer

storing a nested data structure in ObjectBox with type conversion method (.toObjectBox)

I guess the best (only?) way is to create a separate box for the nested structure and then to create a relation from parent (ONE) to children (MANY). However, my issue is how to implement a .toObjectBox() method to convert my domain data model into…
w461
  • 2,168
  • 4
  • 14
  • 40
0
votes
1 answer

Store.watch() events detail

[Flutter/Dart] What kind of information can I get from the Store.watch() stream? Can I get entity type and entity id of insert/update/delete? Do I get a timestamp as well? Thanks -nat
nat101
  • 365
  • 1
  • 5
  • 11