supabase_client_gen 0.2.0
supabase_client_gen: ^0.2.0 copied to clipboard
Contract-driven code generator that reads a supabase.yaml specification and produces typed Dart client code — data models, enums, repositories with CRUD and realtime streams, edge function clients, an [...]
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate supabase_client_genUse it
The package has the following executables:
$ generate
$ validate
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add supabase_client_genWith Flutter:
$ flutter pub add supabase_client_genThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
supabase_client_gen: ^0.2.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:supabase_client_gen/supabase_client_gen.dart';