hive_flutter_repository 1.0.1 copy "hive_flutter_repository: ^1.0.1" to clipboard
hive_flutter_repository: ^1.0.1 copied to clipboard

outdated

A DatabaseAdapter for the hive database as used by the database_repository package optimized for use with flutter

example/README.md

void main() {
    // Path will resolve to "${getApplicationDocumentsDirectory()}/hive"
    // See path_provider on documentation about `getApplicationDocumentsDirectory`
    final pathWhereHiveShouldLive = 'hive'
    final myDatabaseAdapter = HiveFlutterDatabaseAdapter(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.
}
0
likes
0
pub points
0%
popularity

Publisher

verified publisherglassp.dev

A DatabaseAdapter for the hive database as used by the database_repository package optimized for use with flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, hive_flutter, hive_repository

More

Packages that depend on hive_flutter_repository