hive_repository 1.0.4 copy "hive_repository: ^1.0.4" to clipboard
hive_repository: ^1.0.4 copied to clipboard

A DatabaseAdapter for the hive database as used by the database_repository package

Database Repository for Dart #

Pub Version GitHub branch checks state

Use this database adapter for hive to integrate with database_repository

Using Flutter? #

Better use hive_flutter_repository as it integrates better with flutter

How to install #

dart pub add hive_repository

How to use #

void main() {
    final pathWhereHiveShouldLive = /* Some path that is writable */
    final myDatabaseAdapter = HiveDatabaseAdapter(path: pathWhereHiveShouldLive);
    
    
    // Register a Database Adapter that you want to use.
    DatabaseAdapterRegistry.register(myDatabaseAdapter);

    final repository = DatabaseRepository.fromRegistry(serializer: mySerializer, name: 'hive');
    
    // Now use some methods such as create() etc.
}
1
likes
110
pub points
56%
popularity

Publisher

verified publisherglassp.dev

A DatabaseAdapter for the hive database as used by the database_repository package

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

database_repository, hive, meta, uuid

More

Packages that depend on hive_repository