SupabaseDbExecutor class

DbExecutor que persiste no Supabase (via PostgREST). Mesma interface dos demais — basta escolher e adicionar as credenciais.

Credenciais: SUPABASE_URL e SUPABASE_KEY (service role no servidor).

Implemented types

Constructors

SupabaseDbExecutor({required String url, required String apiKey, Client? client})
SupabaseDbExecutor.fromEnv(Map<String, String> env, {Client? client})
factory

Properties

apiKey String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

count(String table) Future<int>
Conta registros de table.
override
deleteById(String table, Object id) Future<bool>
Remove por id; retorna se afetou algo.
override
findById(String table, Object id) Future<Map<String, Object?>?>
Busca por id.
override
insert(String table, Map<String, Object?> values) Future<int>
Insere values em table e retorna o id gerado.
override
list(String table, {required int limit, required int offset, String orderBy = 'id', bool desc = true}) Future<List<Map<String, Object?>>>
Lista registros paginados.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateById(String table, Object id, Map<String, Object?> values) Future<bool>
Atualiza por id; retorna se afetou algo.
override

Operators

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