database_repository

Creator: coderz1093

Last updated:

0 purchases

database_repository Image
database_repository Images

Languages

Categories

Add to Cart

Description:

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

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.