SupabaseQueryBuilder class

Inheritance

Constructors

SupabaseQueryBuilder(String url, RealtimeClient realtime, {Map<String, String> headers = const {}, required String schema, required String table, required StreamPostgrestFilter? streamFilter})

Properties

body ↔ dynamic
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
finalinherited
httpClient → Client?
finalinherited
maybeEmpty bool
getter/setter pairinherited
method String?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema String?
finalinherited
url Uri
getter/setter pairinherited

Methods

appendSearchParams(String key, String value) → void
Update Uri queryParameters with new key:value Use lists to allow multiple values for the same key
inherited
delete({ReturningOption returning = ReturningOption.representation}) PostgrestFilterBuilder
Performs a DELETE on the table.
inherited
execute({bool head = false, CountOption? count}) Future<PostgrestResponse>
Sends the request and returns a Future. catch any error and returns with status 500
inherited
insert(dynamic values, {ReturningOption returning = ReturningOption.representation, bool upsert = false, String? onConflict}) PostgrestBuilder
Performs an INSERT into the table.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(SupabaseEventTypes event, void callback(SupabaseRealtimePayload payload)) → SupabaseRealtimeClient
Subscribe to realtime changes in your databse.
overrideSearchParams(String key, String value) → void
Overrides Uri queryParameters with new key:value
inherited
select([String columns = '*']) PostgrestFilterBuilder
Performs horizontal filtering with SELECT.
inherited
stream(List<String> uniqueColumns) → SupabaseStreamBuilder
Notifies of data at the queried table
toString() String
A string representation of this object.
inherited
update(Map values, {ReturningOption returning = ReturningOption.representation}) PostgrestFilterBuilder
Performs an UPDATE on the table.
inherited
upsert(dynamic values, {ReturningOption returning = ReturningOption.representation, String? onConflict, bool ignoreDuplicates = false}) PostgrestBuilder
Performs an UPSERT into the table.
inherited
withConverter<S>(PostgrestConverter<S> converter) PostgrestBuilder<S>
Converts any response that comes from the server into a type-safe response.
inherited

Operators

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