Supabase
Use banco de dados Supabase
Supabase é uma poderosa plataforma de backend-as-a-service de código aberto que fornece aos desenvolvedores um conjunto de ferramentas para construir, escalar e gerenciar aplicações modernas. O Supabase oferece um banco de dados PostgreSQL totalmente gerenciado, autenticação robusta, APIs RESTful e GraphQL instantâneas, assinaturas em tempo real, armazenamento de arquivos e funções de borda—tudo acessível através de uma interface unificada e amigável ao desenvolvedor. Sua natureza de código aberto e compatibilidade com frameworks populares o tornam uma alternativa atraente ao Firebase, com o benefício adicional de flexibilidade SQL e transparência.
Por que Supabase?
- APIs Instantâneas: Cada tabela e visualização no seu banco de dados está instantaneamente disponível via endpoints REST e GraphQL, facilitando a construção de aplicações orientadas a dados sem escrever código de backend personalizado.
- Dados em Tempo Real: O Supabase habilita assinaturas em tempo real, permitindo que seus aplicativos reajam instantaneamente a mudanças no seu banco de dados.
- Autenticação e Autorização: Gerenciamento de usuários integrado com suporte para email, OAuth, SSO e mais, além de segurança em nível de linha para controle de acesso granular.
- Armazenamento: Faça upload, sirva e gerencie arquivos com segurança com armazenamento integrado que se integra perfeitamente com seu banco de dados.
- Funções de Borda: Implante funções serverless próximas aos seus usuários para lógica personalizada de baixa latência.
Usando Supabase no Zippy
A integração Supabase do Zippy torna sem esforço conectar seus fluxos de trabalho agênticos aos seus projetos Supabase. Com apenas alguns campos de configuração—seu ID do Projeto, nome da Tabela e Service Role Secret—você pode interagir com segurança com seu banco de dados diretamente dos seus blocos Zippy. A integração abstrai a complexidade de chamadas de API, permitindo que você foque em construir lógica e automações.
Benefícios chave de usar Supabase no Zippy:
- Operações de banco de dados no-code/low-code: Consulte, insira, atualize e exclua linhas nas suas tabelas Supabase sem escrever SQL ou código de backend.
- Consultas flexíveis: Use sintaxe de filtro PostgREST para realizar consultas avançadas, incluindo filtragem, ordenação e limitação de resultados.
- Integração perfeita: Conecte facilmente o Supabase a outras ferramentas e serviços no seu fluxo de trabalho, habilitando automações poderosas como sincronização de dados, acionamento de notificações ou enriquecimento de registros.
- Seguro e escalável: Todas as operações usam seu Supabase Service Role Secret, garantindo acesso seguro aos seus dados com a escalabilidade de uma plataforma de nuvem gerenciada.
Seja construindo ferramentas internas, automatizando processos de negócios ou alimentando aplicações de produção, o Supabase no Zippy fornece uma maneira rápida, confiável e amigável ao desenvolvedor de gerenciar seus dados e lógica de backend—sem necessidade de gerenciamento de infraestrutura. Simplesmente configure seu bloco, selecione a operação que você precisa e deixe o Zippy cuidar do resto.
Integre o Supabase ao fluxo de trabalho. Suporta operações de banco de dados (consulta, inserção, atualização, exclusão, upsert), busca de texto completo, funções RPC, contagem de linhas, busca vetorial e gerenciamento completo de armazenamento (upload, download, lista, mover, copiar, excluir arquivos e buckets).
Query data from a Supabase table
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
table | string | Sim | The name of the Supabase table to query |
filter | string | Não | PostgREST filter (e.g., "id=eq.123") |
orderBy | string | Não | Column to order by (add DESC for descending) |
limit | number | Não | Maximum number of rows to return |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of records returned from the query |
Insert data into a Supabase table
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
table | string | Sim | The name of the Supabase table to insert data into |
data | array | Sim | The data to insert (array of objects or a single object) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of inserted records |
Get a single row from a Supabase table based on filter criteria
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
table | string | Sim | The name of the Supabase table to query |
filter | string | Sim | PostgREST filter to find the specific row (e.g., "id=eq.123") |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array containing the row data if found, empty array if not found |
Update rows in a Supabase table based on filter criteria
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
table | string | Sim | The name of the Supabase table to update |
filter | string | Sim | PostgREST filter to identify rows to update (e.g., "id=eq.123") |
data | object | Sim | Data to update in the matching rows |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of updated records |
Delete rows from a Supabase table based on filter criteria
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
table | string | Sim | The name of the Supabase table to delete from |
filter | string | Sim | PostgREST filter to identify rows to delete (e.g., "id=eq.123") |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of deleted records |
Insert or update data in a Supabase table (upsert operation)
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
table | string | Sim | The name of the Supabase table to upsert data into |
data | array | Sim | The data to upsert (insert or update) - array of objects or a single object |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of upserted records |
Count rows in a Supabase table
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
table | string | Sim | The name of the Supabase table to count rows from |
filter | string | Não | PostgREST filter (e.g., "status=eq.active") |
countType | string | Não | Count type: exact, planned, or estimated (default: exact) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
count | number | Number of rows matching the filter |
Perform full-text search on a Supabase table
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
table | string | Sim | The name of the Supabase table to search |
column | string | Sim | The column to search in |
query | string | Sim | The search query |
searchType | string | Não | Search type: plain, phrase, or websearch (default: websearch) |
language | string | Não | Language for text search configuration (default: english) |
limit | number | Não | Maximum number of rows to return |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of records matching the search query |
Perform similarity search using pgvector in a Supabase table
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
functionName | string | Sim | The name of the PostgreSQL function that performs vector search (e.g., match_documents) |
queryEmbedding | array | Sim | The query vector/embedding to search for similar items |
matchThreshold | number | Não | Minimum similarity threshold (0-1), typically 0.7-0.9 |
matchCount | number | Não | Maximum number of results to return (default: 10) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of records with similarity scores from the vector search. Each record includes a similarity field (0-1) indicating how similar it is to the query vector. |
Call a PostgreSQL function in Supabase
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
functionName | string | Sim | The name of the PostgreSQL function to call |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | json | Result returned from the function |
Upload a file to a Supabase storage bucket
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the storage bucket |
path | string | Sim | The path where the file will be stored (e.g., "folder/file.jpg") |
fileContent | string | Sim | The file content (base64 encoded for binary files, or plain text) |
contentType | string | Não | MIME type of the file (e.g., "image/jpeg", "text/plain") |
upsert | boolean | Não | If true, overwrites existing file (default: false) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | object | Upload result including file path and metadata |
Download a file from a Supabase storage bucket
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the storage bucket |
path | string | Sim | The path to the file to download (e.g., "folder/file.jpg") |
fileName | string | Não | Optional filename override |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
file | file | Downloaded file stored in execution files |
List files in a Supabase storage bucket
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the storage bucket |
path | string | Não | The folder path to list files from (default: root) |
limit | number | Não | Maximum number of files to return (default: 100) |
offset | number | Não | Number of files to skip (for pagination) |
sortBy | string | Não | Column to sort by: name, created_at, updated_at (default: name) |
sortOrder | string | Não | Sort order: asc or desc (default: asc) |
search | string | Não | Search term to filter files by name |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of file objects with metadata |
Delete files from a Supabase storage bucket
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the storage bucket |
paths | array | Sim | Array of file paths to delete (e.g., ["folder/file1.jpg", "folder/file2.jpg"]) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of deleted file objects |
Move a file within a Supabase storage bucket
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the storage bucket |
fromPath | string | Sim | The current path of the file (e.g., "folder/old.jpg") |
toPath | string | Sim | The new path for the file (e.g., "newfolder/new.jpg") |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | object | Move operation result |
Copy a file within a Supabase storage bucket
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the storage bucket |
fromPath | string | Sim | The path of the source file (e.g., "folder/source.jpg") |
toPath | string | Sim | The path for the copied file (e.g., "folder/copy.jpg") |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | object | Copy operation result |
Create a new storage bucket in Supabase
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the bucket to create |
isPublic | boolean | Não | Whether the bucket should be publicly accessible (default: false) |
fileSizeLimit | number | Não | Maximum file size in bytes (optional) |
allowedMimeTypes | array | Não | Array of allowed MIME types (e.g., ["image/png", "image/jpeg"]) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | object | Created bucket information |
List all storage buckets in Supabase
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | array | Array of bucket objects |
Delete a storage bucket in Supabase
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the bucket to delete |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
results | object | Delete operation result |
Get the public URL for a file in a Supabase storage bucket
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the storage bucket |
path | string | Sim | The path to the file (e.g., "folder/file.jpg") |
download | boolean | Não | If true, forces download instead of inline display (default: false) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
publicUrl | string | The public URL to access the file |
Create a temporary signed URL for a file in a Supabase storage bucket
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|
projectId | string | Sim | Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) |
bucket | string | Sim | The name of the storage bucket |
path | string | Sim | The path to the file (e.g., "folder/file.jpg") |
expiresIn | number | Sim | Number of seconds until the URL expires (e.g., 3600 for 1 hour) |
download | boolean | Não | If true, forces download instead of inline display (default: false) |
apiKey | string | Sim | Your Supabase service role secret key |
| Parâmetro | Tipo | Descrição |
|---|
message | string | Operation status message |
signedUrl | string | The temporary signed URL to access the file |
- Categoria:
tools
- Tipo:
supabase