utopia_cms_supabase 0.1.0+4 copy "utopia_cms_supabase: ^0.1.0+4" to clipboard
utopia_cms_supabase: ^0.1.0+4 copied to clipboard

Utopia CMS - Supabase

Utopia CMS Supabase #

Supabase implementation of the server-layer for utopia_cms

Features #

CmsSupabase #

Provides a set of methods necessary to connect CmsTable to a Supabase back-end.

Name Description
delegate Creates a CmsSupabaseDelegate
oneToManyDelegate Creates an implementation of the CmsSupabaseOneToManyDelegate
manyToManyDelegate Creates an implementation of the CmsSupabaseManyToManyDelegate

CmsSupabaseDelegate #

An implementation of the CmsDelegate interface.

CmsSupabaseManyToManyDelegate #

An implementation of the CmsToManyDelegate interface for many-to-many relationships.

CmsSupabaseOneToManyDelegate #

An implementation of the CmsToManyDelegate interface for one-to-many relationships.

Usage #

import 'package:supabase_flutter/supabase_flutter.dart';
import 'package:utopia_cms_supabase/utopia_cms_supabase.dart';

// Initialize Supabase client
final supabase = Supabase.instance.client;

// Create delegate
final delegate = CmsSupabase.instance.delegate(
  client: supabase,
  table: CmsSupabaseDataTable(name: 'users', idKey: 'id'),
);

// Use in CMS
CmsTable(
  delegate: delegate,
  entries: [...],
)

Contributions #

Contributions are welcomed!

If you want to support our project, feel free to open a pull-request.

0
likes
100
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Utopia CMS - Supabase

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

fast_immutable_collections, supabase_flutter, utopia_cms, utopia_utils

More

Packages that depend on utopia_cms_supabase