isar / isar/hive

Support for pointers

Open
#197 7 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

In apps, entities often have references to other entities. For example, a `User` might have a "friends" collection of other `User`s and a "supervisor" `User`. This concept is known as _foreign keys_ in databases or _pointers_ in low-level software.

Strangely, Hive only supports saving collections of pointers in the form of a `HiveList`, not saving a single pointer.
I'd really like a `HivePointer` type of some sort which points to another entity, possibly in another box. Maybe, the `HivePointer` could have a `.resolve()` method which resolves the reference.

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.