Development
Formateador y Minificador de SQL
Embellece o minifica SQL con control total del dialecto (PostgreSQL, MySQL, SQLite, SQL Server/T-SQL, BigQuery, Snowflake, etc.), mayúsculas de palabras clave/identificadores/funciones, estilo de sangría (estándar, tabular izquierda/derecha) y líneas entre sentencias. Produce un resultado resaltado y listo para copiar con estadísticas de tamaño y sentencias.
Inicio rápido
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/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}'