0 purchases
supabase repository
Supabase Database Adapter for Dart #
Use this database adapter for supabase to integrate with database_repository
How to install #
dart pub add supabase_repository
copied to clipboard
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.
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.