SupabaseTable<T extends SupabaseDataRow> class abstract

Supabase table base class

Constructors

SupabaseTable({SupabaseClient? client})
Supabase Table

Properties

dbTable → SupabaseQueryBuilder
Get the database table
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
Table name
no setter

Methods

createRow(Map<String, dynamic> data) → T
Create a row
delete({required PostgrestTransformBuilder matchingRows(PostgrestFilterBuilder), bool returnRows = false}) Future<List<T>>
Delete the rows that fulfill matchingRows.
insert(Map<String, dynamic> data) Future<T>
Insert the data into the table and return the SupabaseDataRow representation of that row
insertRow(T row) Future<T>
Insert a row into the table
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryRows({PostgrestTransformBuilder<DictionaryList> queryFn(PostgrestFilterBuilder<DictionaryList>)?, int? limit}) Future<List<T>>
Query rows using the queryFn provided, with an optional limit
querySingleRow({required PostgrestTransformBuilder<DictionaryList> queryFn(PostgrestFilterBuilder<DictionaryList>)}) Future<T?>
Query a single row using the queryFn provided
toString() String
A string representation of this object.
inherited
update({required PostgrestTransformBuilder matchingRows(PostgrestFilterBuilder), Map<String, dynamic>? data, T? row, bool returnRows = false}) Future<List<T>>
Update the rows that fulfill matchingRows with the data or row provided.
upsert(Map<String, dynamic> data, {String? onConflict, bool ignoreDuplicates = false, bool defaultToNull = true}) Future<T>
Upsert the data in the table and return the SupabaseDataRow representation of that row.
upsertRow(T row, {String? onConflict, bool ignoreDuplicates = false, bool defaultToNull = true}) Future<T>
Upsert a row into the table

Operators

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