hive_repository

Last updated:

0 purchases

hive_repository Image
hive_repository Images
Add to Cart

Description:

hive repository

Database Repository for Dart #


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
copied to clipboard
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.
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.