SQL Formatter Library was designed to abstract the fthe SQLFormatter external component handling it’s response while making it easily accessible into the ODC eccosystem and sharing UI components.
It offers two main interfaces: a public SQLFormatter Block and public Server Actions.
The block allows to receive an already pre-formatted response and renders it, while the server actions call directly the formatting methods.
Use several formatting options, and also block inputs to choose the use desired output.
Demo:
Please refer to SQL Formatter Demo Forge component
Credits to TaoK(https://github.com/TaoK/PoorMansTSqlFormatter/tree/master/PoorMansTSqlFormatterJSLib )
BSD-3 license (https://opensource.org/licenses/BSD-3-Clause)
Affero GPL (AGPL 3.0 https://www.gnu.org/licenses/agpl-3.0.en.html)