sky_storage_hive 1.0.3 copy "sky_storage_hive: ^1.0.3" to clipboard
sky_storage_hive: ^1.0.3 copied to clipboard

Local persistence implementation wrapping Hive and providing HiveDao.

sky_storage_hive #

A premium local storage implementation for Flutter, wrapping hive_ce and hive_ce_flutter to implement the sky_storage interfaces. It is highly optimized for fast, simple key-value lookups and secure encryption.

Features #

  • Hive Engines: Direct realization of KeyValueDao and ObjectDao matching standard contracts.
  • Secured Encryption: Out-of-the-box configuration and box setup using secure encryption keys.
  • Auto-Initialization: Automated Flutter directory binding and adapter registrations.

Getting Started #

Add the package to your pubspec.yaml:

dependencies:
  sky_storage_hive: ^1.0.0

Usage #

Initialize Hive and declare your Hive-backed DAOs:

import 'package:sky_storage_hive/sky_storage_hive.dart';

void main() async {
  // 1. Initialize Hive DB
  await SkyHiveInitializer.initialize();

  // 2. Open box using secure key (optional)
  final taskBox = await SkyHiveInitializer.openEncryptedBox<String>('secure_tasks');
  
  // 3. Perform write & read actions
  await taskBox.put('task_1', 'Implement publishing workflow');
  final taskValue = taskBox.get('task_1');
  print('Task: $taskValue');
}
0
likes
150
points
174
downloads

Documentation

API reference

Publisher

verified publisherskycore.dev

Weekly Downloads

Local persistence implementation wrapping Hive and providing HiveDao.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, hive_ce, hive_ce_flutter, sky_storage

More

Packages that depend on sky_storage_hive