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

example/README.md

void main() {
    // Path will resolve to "${Directory.current.path}/hive"
    final pathWhereHiveShouldLive = 'hive'
    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
53%
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