supabase library

A dart client for Supabase. It supports database query, authenticate users and listen for realtime changes. This client makes it simple for developers to build secure and scalable products.

Enums

AuthChangeEvent
CountOption
Returns count as part of the response when specified.
PostgresTypes
Provider
ResponseType
ReturningOption
Returns count as part of the response when specified.
SupabaseEventTypes
TextSearchType
The type of tsquery conversion to use on query.

Functions

convertCell(String type, dynamic value) → dynamic
If the value of the cell is null, returns null. Otherwise converts the string value to the correct type.
convertChangeData(List<Map<String, dynamic>> columns, Map<String, dynamic> record, {List<String>? skipTypes}) Map<String, dynamic>
Takes an array of columns and an object of string values then converts each string value to its mapped type.
convertColumn(String columnName, List<PostgresColumn> columns, Map<String, dynamic> record, List<String> skipTypes) → dynamic
Converts the value of an individual column.
noop(dynamic value) → dynamic
toArray(dynamic value, String type) → dynamic
Converts a Postgres Array into a native Dart array
toBoolean(dynamic value) bool?
toDouble(dynamic value) double?
toInt(dynamic value) int?
toJson(dynamic value) → dynamic
toTimestampString(String? value) String?
Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T' See https://github.com/supabase/supabase/issues/18

Typedefs

PostgrestConverter<T> = T Function(dynamic data)

Exceptions / Errors

SupabaseRealtimeError