isar / isar/hive

[ Prevent a specific field to be overwritten ]

Open
#783 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Question**
Got an object list
> Fed by a Webservice call (via Retrofit library)
> Then persisted in database via Hive
> Every day the WS call is potentially remade and the list is overwritten...

What i'd want ::
> i want to add a Field to those objects, fed manually (not present in the WS call)
> And when i persist again the obectList, that it overwrites the fields given by the WS call but not the one i added manually...

>> Is there a way/annotation that would "lock" a specific field to prevent it from being overwritten when the put method is (re)used on its parent object ?

**Code sample**
no need i think.

**Version**
- Platform: iOS, Android
- Flutter version: 2.12.0
- Hive version: 2.0.4

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.