supabase_repository 1.0.1 copy "supabase_repository: ^1.0.1" to clipboard
supabase_repository: ^1.0.1 copied to clipboard

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

Supabase Database Adapter for Dart #

Pub Version

Use this database adapter for supabase to integrate with database_repository

How to install #

dart pub add supabase_repository

How to use #

void main() {
    final String mySupabaseUrl = /* String containing the URL of the Supabase Installation */
    final String mySupabaseKey = /* String containing the API Key for the Supabase Installation */
    final DatabaseAdapter myDatabaseAdapter = SupabaseDatabaseAdapter(
        supabaseInstallationUrl: mySupabaseUrl,
        supabaseApiKey: mySupabaseKey
    );
    
    // Register a Database Adapter that you want to use.
    DatabaseAdapterRegistry.register(myDatabaseAdapter);

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

Publisher

verified publisherglassp.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

database_repository, supabase

More

Packages that depend on supabase_repository