BaseRepository<T> class abstract

Base repository class providing common functionality for all generated repositories

Implementers

Constructors

BaseRepository(SupabaseClient client, String tableName)
Creates a new BaseRepository instance
const

Properties

client → SupabaseClient
The Supabase client instance used for database operations
final
hashCode int
The hash code for this object.
no setterinherited
query → SupabaseQueryBuilder
Returns the base query builder for this table
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
The name of the table this repository operates on
final

Methods

findAll({int? limit, int? offset, String? orderBy, bool ascending = true, Map<String, dynamic>? filters}) Future<List<T>>
Retrieves all records from this table with support for:
fromJson(Map<String, dynamic> json) → T
Converts a JSON map to a model instance of type T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited