hive_box_manager library
Typed, fpdart-first façades over hive_ce boxes: no nulls, lazy effects, ready-made CRUD, purpose-built
box variants.
Classes
- BoxObserver
- Semantic observer over one or many boxes: extend it and override only the events you care about.
-
DualKeyBox<
T extends Object, K1 extends Object, K2 extends Object> - A typed, fpdart-first façade over an eager hive box addressed by a two-part composite key, with reverse queries by either part folded in.
-
DualKeyCodec<
K1 extends Object, K2 extends Object> - Encodes a two-part composite key into hive's raw key domain, and decodes it back.
- IntKeyCodec
-
Identity codec for boxes keyed by raw hive
intkeys (0..0xFFFFFFFF). -
KeyCodec<
K extends Object> -
Encodes consumer-facing keys of type
Kinto hive's raw key domain, and decodes them back. -
KeyedBox<
T extends Object, K extends Object> -
A typed, fpdart-first façade over an eager hive box of
Tvalues keyed byK. -
LazyDualKeyBox<
T extends Object, K1 extends Object, K2 extends Object> - A typed, fpdart-first façade over a lazy hive box addressed by a two-part composite key, with reverse queries by either part folded in.
-
LazyKeyedBox<
T extends Object, K extends Object> -
A typed, fpdart-first façade over a lazy hive box of
Tvalues keyed byK. -
LazyListBox<
T extends Object, K extends Object> -
A typed, fpdart-first façade over a lazy hive box storing a
ListofTperKkey. -
LazyMapBox<
MK extends Object, MV extends Object, K extends Object> -
A lazy box holding a
MapofMKtoMVperKkey, read off disk when asked. -
LazySetBox<
T extends Object, K extends Object> -
A lazy box holding a
SetofTperKkey, read off disk when asked. -
LazySingleValueBox<
T extends Object> -
A typed, fpdart-first façade over a lazy hive box holding exactly one
Tvalue. -
LazyTypedBoxEvent<
T extends Object, K extends Object> - One change on a lazy box's watch stream: the decoded key and the value the engine could actually deliver.
-
ListBox<
T extends Object, K extends Object> -
A typed, fpdart-first façade over an eager hive box storing a
ListofTperKkey. -
MapBox<
MK extends Object, MV extends Object, K extends Object> -
An eager box holding a
MapofMKtoMVperKkey. - PackedIntDualCodec
-
The opt-in performance dual-key codec: packs 2 parts of 16 bits arithmetically into one u32
intkey. - PrintingBoxObserver
-
Ready-made sink forwarding every box event to
dart:developer's log under a configurable logger name, so DevTools can filter the package's diagnostics as one channel. -
SetBox<
T extends Object, K extends Object> -
An eager box holding a
SetofTperKkey. -
SingleValueBox<
T extends Object> -
A typed, fpdart-first façade over an eager hive box holding exactly one
Tvalue. - StringCompositeDualCodec
-
The default dual-key codec: packs 2
intparts into a compact decimal'$primary:$secondary'String key. - StringKeyCodec
-
Identity codec for boxes already keyed by hive
Stringkeys. Non-ASCII is fine, just remember the limit counts bytes, not characters. -
TypedBoxEvent<
T extends Object, K extends Object> - One change on an eager box's watch stream: the decoded key, the affected value, and whether the change deleted the entry.
Exceptions / Errors
- UndecodableValueException
- One stored value could not be decoded, naming the key whose record failed.