firedart_repository 1.0.0 copy "firedart_repository: ^1.0.0" to clipboard
firedart_repository: ^1.0.0 copied to clipboard

outdated

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

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.
}
copied to clipboard
0
likes
0
points
26
downloads

Publisher

verified publisherglassp.dev

Weekly Downloads

2024.07.07 - 2025.01.19

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

database_repository, firedart, flutter, uuid

More

Packages that depend on firedart_repository