0 purchases
database repository
Database Repository for Dart/Flutter #
Use this Repository pattern to abstract the Database Logic away and use an abstract interface.
How to install #
dart pub add database_repository
copied to clipboard
How to use #
void main() {
final myDatabaseAdapter = /* A DatabaseAdapter */
final mySerializer = /* Some Serializer for your entities */
// Register a Database Adapter that you want to use.
DatabaseAdapterRegistry.register(myDatabaseAdapter);
final repository = DatabaseRepository.fromRegistry(serializer: mySerializer);
// Now use some methods such as create() etc.
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.