This extension is used to format SQL clause in Raycast created by @tonngw
Features
Formats a SQL clause string stored in clipboard and copies/pastes it back
Formats a SQL clause string selected in the foremost editor and copies/pastes it back
Preview formatted SQL with a visual interface and copy/paste options
Format selected SQL text and preview the formatted result in a new window
Support user defined format rules preferences, including:
Auto Paste: Automatically paste formatted SQL to active application
Tab Width: Choose between 2 spaces, 4 spaces, or tab (8 spaces)
Keyword Case: Preserve, Upper, or Lower case for SQL keywords
Commands
Format SQL: Format SQL with visual interface and copy/paste options
Format Clipboard SQL: Format SQL from clipboard and copy/paste back
Format Selected SQL: Format selected SQL and copy/paste back
Format Selected SQL Preview: Format selected SQL and preview in new window
Reference
The extension refers to Format JSON extension in Raycast. It is an excellent extension for formatting JSON data in Raycast. Format JSON see more details in raycast extension store. Thanks for the original author.
Thanks @jfkisafk for the code review and suggestions for the extension.