firedart_repository 1.0.3 icon indicating copy to clipboard operation
firedart_repository: ^1.0.3 copied to clipboard

A DatabaseAdapter for the firebase database as used by the database_repository package

Firebase Repository for Dart #

Pub Version

Use this database adapter for firebase to integrate with database_repository

Using Flutter? #

Use firebase_database_repository as it is optimized for usage with Flutter

How to install #

dart pub add firedart_repository

How to use #

void main() async {
    // You can find this in your firebase project settings
    final myFirebaseProjectId = "";

    final myDatabaseAdapter = FiredartDatabaseAdapter(firebaseProjectId: myFirebaseProjectId)
    
    // Register a Database Adapter that you want to use.
    DatabaseAdapterRegistry.register(myDatabaseAdapter);

    final repository = DatabaseRepository.fromRegistry(serializer: mySerializer, name: 'firebase');
    
    // Now use some methods such as create() etc.
}
0
likes
120
pub points
0%
popularity

Publisher

verified publisher iconglassp.dev

A DatabaseAdapter for the firebase database as used by the database_repository package

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

database_repository, firedart, uuid

More

Packages that depend on firedart_repository