Last updated:
0 purchases
nitrite hive adapter
Nitrite Hive Adapter #
Nitrite Hive adapter uses Hive as a file based storage engine for Nitrite database.
Getting started #
To use Hive as a storage engine for Nitrite, add the following dependency in your project:
dart pub add nitrite_hive_adapter
copied to clipboard
Usage #
To use Hive as a storage engine, you need to create a HiveModule and pass it to Nitrite builder.
// create a hive backed storage module
var storeModule = HiveModule.withConfig()
.crashRecovery(true)
.path('$dbDir/db')
.build();
// initialization using builder
var db = await Nitrite.builder()
.loadModule(storeModule)
.openOrCreate(username: 'user', password: 'pass123');
copied to clipboard
Additional information #
For additional information visit the Hive module documentation.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.