mui / mui-toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
955 stars 241 forks source link

SQL datasource: format on save #1552

Open Janpot opened 1 year ago

Janpot commented 1 year ago

Duplicates

Latest version

Summary 💡

When saving in the functiondatasource, the code is formatted. The same should happen with SQL queries when saving in the postgres datasource.

Examples 🌈

No response

Motivation 🔦

No response

bytasv commented 1 year ago

Maybe worth to consider adding UI to opt-in/opt-out from this behaviour. Say IF you have a specific code style which you prefer and you don't want toolpad to mess it up