dbinspect_hive_ce 0.1.0 copy "dbinspect_hive_ce: ^0.1.0" to clipboard
dbinspect_hive_ce: ^0.1.0 copied to clipboard

A Hive CE adapter for dbinspect_bridge, so a desktop client can browse your app's hive_ce boxes while it runs.

dbinspect_hive_ce #

Inspect a running application's hive_ce boxes from a desktop client, over a paired, loopback-by-default connection.

This is dbinspect_hive against the community fork. hive_ce is a fork of hive 2.2.3 with an identical public API — every member of BoxBase matches, member for member — so this is the same adapter, and the only difference is which package it imports.

import 'package:dbinspect_hive_ce/dbinspect_hive_ce.dart';

await startBridge(
  appName: 'my_app',
  adapters: [
    HiveCeAdapter(boxes: [settings, sessions], id: 'hive', displayName: 'app boxes'),
  ],
);

Use this one or dbinspect_hive, never both. The two declare the same class names in different packages, and an application on one fork must not acquire the other — which is exactly why this is a separate package rather than a flag.

Everything else — what a box looks like as a store, the key console, the write rules, fetchBlob, the capability defaults — is documented in dbinspect_hive's README and is true here unchanged.

lib/ is generated #

Two hand-maintained copies of the same 380 lines is a job nobody does twice, so tool/sync.dart does it:

dart run tool/sync.dart          # rewrite lib/ and test/ from dbinspect_hive
dart run tool/sync.dart --check  # fail if what is committed is stale

test/sync_test.dart runs the --check half, so a change to dbinspect_hive that was not carried over fails this package's own suite rather than being discovered by someone using the fork. Edit dbinspect_hive, run the command, commit both.

Apache-2.0.

0
likes
150
points
90
downloads

Documentation

API reference

Publisher

verified publisherdizitart.com

Weekly Downloads

A Hive CE adapter for dbinspect_bridge, so a desktop client can browse your app's hive_ce boxes while it runs.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dbinspect_bridge, hive_ce

More

Packages that depend on dbinspect_hive_ce