Development
Formatador e minificador de SQL
Embeleza ou minifica SQL com controle total do dialeto (PostgreSQL, MySQL, SQLite, SQL Server/T-SQL, BigQuery, Snowflake etc.), caixa de palavras-chave/identificadores/funções, estilo de recuo (padrão, tabular esquerda/direita) e linhas entre instruções. Produz um resultado realçado e pronto para copiar com estatísticas de tamanho e instruções.
Início rápido
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/api/tools/sql-query-formatter' \
-H 'Content-Type: application/json' \
-d '{"sql":"select u.id,u.name,count(o.id) as orders from users u left join orders o on o.user_id=u.id where u.active=1 and u.created_at > '\''2024-01-01'\'' group by u.id,u.name having count(o.id) > 5 order by orders desc;","mode":"format","language":"postgresql","keywordCase":"upper","identifierCase":"preserve","functionCase":"preserve","indentStyle":"standard","tabWidth":2,"linesBetween":1,"newlineBeforeSemicolon":false}'