Table of Contents

Class SupabaseTable<TModel>

Namespace
Supabase
Assembly
Supabase.dll

A Supabase wrapper for a Postgrest Table.

public class SupabaseTable<TModel> : Table<TModel>, ISupabaseTable<TModel, RealtimeChannel>, IPostgrestTable<TModel>, IGettableHeaders where TModel : BaseModel, new()

Type Parameters

TModel

Model that implements BaseModel

Inheritance
Table<TModel>
SupabaseTable<TModel>
Implements
Inherited Members

Constructors

SupabaseTable(IPostgrestClient, IRealtimeClient<RealtimeSocket, RealtimeChannel>, string)

A Supabase wrapper for a Postgrest table.

public SupabaseTable(IPostgrestClient postgrestClient, IRealtimeClient<RealtimeSocket, RealtimeChannel> realtimeClient, string schema = "public")

Parameters

postgrestClient IPostgrestClient
realtimeClient IRealtimeClient<RealtimeSocket, RealtimeChannel>
schema string

Methods

On(ListenType, PostgresChangesHandler)

Add a realtime listener to this table.

public Task<RealtimeChannel> On(PostgresChangesOptions.ListenType listenType, IRealtimeChannel.PostgresChangesHandler handler)

Parameters

listenType PostgresChangesOptions.ListenType
handler IRealtimeChannel.PostgresChangesHandler

Returns

Task<RealtimeChannel>