database_repository 2.0.1 copy "database_repository: ^2.0.1" to clipboard
database_repository: ^2.0.1 copied to clipboard

A database independent repository style implementation for dart and flutter

Database Repository for Dart/Flutter #

codecov Pub Version GitHub branch checks state

Use this Repository pattern to abstract the Database Logic away and use an abstract interface.

How to install #

dart pub add database_repository

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.
}
0
likes
140
pub points
23%
popularity

Publisher

verified publisherglassp.dev

A database independent repository style implementation for dart and flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on database_repository