Development
Formateur et minificateur SQL
Embellit ou minifie le SQL avec contrôle total du dialecte (PostgreSQL, MySQL, SQLite, SQL Server/T-SQL, BigQuery, Snowflake, etc.), de la casse des mots-clés/identifiants/fonctions, du style d’indentation (standard, tabulaire gauche/droite) et des lignes entre instructions. Produit un résultat coloré et prêt à copier avec des statistiques de taille et d’instructions.
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/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}'