isar / hive

Lightweight and blazing fast key-value database written in pure Dart.
Apache License 2.0
4.07k stars 404 forks source link

Safe to add "extends HiveObject" later? #1253

Open MLZ91 opened 1 year ago

MLZ91 commented 1 year ago

I have an older project with users and a Hive database. I realized that I forgot to add "extends HiveObject" to one object when I wanted to access the key.

Is it safe to add "extends HiveObject" now?

hamza-ezzahiry commented 1 month ago

Yes, it is generally safe to add extends HiveObject to your class in Hive, even after you have already stored data in the database.