supabase_gen 1.5.0
supabase_gen: ^1.5.0 copied to clipboard
A Dart package that generates Flutter repositories and models from Supabase database. Compatible with latest Supabase Flutter SDK. Requires supabase_flutter ^2.8.4 as a dependency in your app.
1.5.0 #
Added #
- Enhanced
findAll
method in generated repositories to support filtering - Added optional
filters
parameter of typeMap<String, dynamic>
tofindAll
method - Filtering can be combined with existing pagination and sorting parameters
- All repositories now inherit filtering capability from base repository
Example #
// Filter by single field
final results = await repository.findAll(
filters: {'status': 'active'}
);
// Combine with pagination and sorting
final results = await repository.findAll(
filters: {'category': 'residential'},
limit: 10,
offset: 0,
orderBy: 'created_at',
ascending: false
);