Hanasqlscriptformatter
Eclipse plugin for formatting SAP HANA SQLScript. Can be used with SAP HANA Studio.
Install / Use
/learn @kapilratnani/HanasqlscriptformatterREADME
HANA SQLScript Formatter
Eclipse plugin for formatting SAP HANA SQLScript. Can be used with SAP HANA Studio. Uses SQL Formatter forked from https://github.com/negus/sqlf
Installation
Latest Binaries can be downloaded from https://sourceforge.net/projects/sqlscriptformat/files/
- Download "hanasqlscriptformatter.zip" file from the above link.
- Open HDBStudio
- Click on Help->Install New Software.
- Click on "Add". In the "Add Repository" dialog Click on "Archive".
- Select the downloaded archive "hanasqlscriptformatter.zip" and continue as usual.
Usage
- Select the procedure and press "CTRL+6"(OSX - CMD+6) or click on the toolbar icon labeled "Format HANA SQL Script".
Note : You need to select the whole procedure for the formatter to work properly. If in some case the formatter doesn't work as intended post a bug report in the issues section and as always, undo command will bring the procedure to pre-formatted state.
Known issues
Doesn't works with "/**/" style comment inside "create procedure proc_name(<args>)...as" section, works as intended after that.
TODO
- Add license.
- Fix /**/ style comments inside create proc.
- Work on better formatting of subqueries.
- Look for alternative ways of formatting, look in the direction of generating a parser and then format using the AST.
Disclaimer
This plugin is not a part of standard SAP HANA delivery package, hence SAP HANA support is not responsible for this plugin in any way. All support queries regarding this plugin should be reported here(https://github.com/kapilratnani/hanasqlscriptformatter). If i've time, i'll fix them.
Related Skills
feishu-drive
345.9k|
things-mac
345.9kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
345.9kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
postkit
PostgreSQL-native identity, configuration, metering, and job queues. SQL functions that work with any language or driver
