All Projects → future-architect → idea-uroborosql-formatter

future-architect / idea-uroborosql-formatter

Licence: BSD-2-Clause license
Beautiful SQL Formatter for IntelliJ Platform

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to idea-uroborosql-formatter

unicode-formatter
Convert portions of text to fancy text using unicode fonts for use on Twitter and other sites that don't support rich text
Stars: ✭ 31 (+72.22%)
Mutual labels:  formatter, formatting
Sublime-uroboroSQL-formatter
Beautiful SQL Formatter for Sublime Text 3
Stars: ✭ 25 (+38.89%)
Mutual labels:  formatter, formatting
ufmt
Safe, atomic formatting with black and µsort
Stars: ✭ 46 (+155.56%)
Mutual labels:  formatter, formatting
awesome-python-code-formatters
A curated list of awesome Python code formatters
Stars: ✭ 168 (+833.33%)
Mutual labels:  formatter, formatting
kirai
String formatting library for Java, Android, Web and Unix Terminal
Stars: ✭ 69 (+283.33%)
Mutual labels:  formatter, formatting
Golite
Add essential language support for the Go language to Sublime Text 3.
Stars: ✭ 14 (-22.22%)
Mutual labels:  formatter, formatting
dockerfile-utils
A library and command line interface for formatting and linting Dockerfiles.
Stars: ✭ 17 (-5.56%)
Mutual labels:  formatter, formatting
laravel-formatters
«‎Formatter» pattern for Laravel
Stars: ✭ 86 (+377.78%)
Mutual labels:  formatter, formatting
Nginx Config Formatter
nginx config file formatter/beautifier written in Python.
Stars: ✭ 222 (+1133.33%)
Mutual labels:  formatter, formatting
formatting
源码格式自动化调整工具
Stars: ✭ 37 (+105.56%)
Mutual labels:  formatter, formatting
SideMirror
An Android Studio plugin to mirror your android devices with scrcpy directly from Android Studio.
Stars: ✭ 49 (+172.22%)
Mutual labels:  intellij-plugin, intellijidea-plugin
Juliaformatter.jl
An opinionated code formatter for Julia. Plot twist - the opinion is your own.
Stars: ✭ 217 (+1105.56%)
Mutual labels:  formatter, formatting
AutoFormatInputWatcher
This repository contains input watcher for auto formatting digits in edit text
Stars: ✭ 15 (-16.67%)
Mutual labels:  formatter, formatting
teks
Easily get custom go template based outputs to your command-line tool. Like in docker/kubernetes
Stars: ✭ 41 (+127.78%)
Mutual labels:  formatter, formatting
Vse Formatdocumentonsave
Visual Studio - Format Document on Save
Stars: ✭ 61 (+238.89%)
Mutual labels:  formatter, formatting
Editorconfig Netbeans
A NetBeans IDE plugin supporting the EditorConfig standard. ⛺
Stars: ✭ 123 (+583.33%)
Mutual labels:  formatter, formatting
Powershell Beautifier
A whitespace reformatter and code cleaner for Windows PowerShell and PowerShell Core
Stars: ✭ 213 (+1083.33%)
Mutual labels:  formatter
Prettyhtml
💅 The formatter for the modern web https://prettyhtml.netlify.com/
Stars: ✭ 241 (+1238.89%)
Mutual labels:  formatter
Pronto
Quick automated code review of your changes
Stars: ✭ 2,450 (+13511.11%)
Mutual labels:  formatter
Docformatter
Formats docstrings to follow PEP 257
Stars: ✭ 203 (+1027.78%)
Mutual labels:  formatter

IntelliJ uroboroSQL Formatter

UroboroSQL Formatter is often used in enterprise systems, For formatting to a highly maintainable style even for very long SQL (1 K step or more) It is a plug-in of IntelliJ IDEA.

In particular, in countries where English is not their mother tongue, such as Japan, comments may be included in SELECT clauses. In that case, we will align the vertical position of the AS clause and the comment, pursuing the viewability which can be said as artistic anymore, This was developed to realize this automatically.

for Japanese, Readme.ja.md

In case of general formatter

SELECT MI.MAKER_CD AS ITEM_MAKER_CD -- メーカーコード
,
       MI.BRAND_CD AS ITEM_BRAND_CD -- ブランドコード
,
       MI.ITEM_CD AS ITEM_CD -- 商品コード
,
       MI.CATEGORY AS ITEM_CATEGORY -- 商品カテゴリ
FROM M_ITEM MI -- 商品マスタ

WHERE 1 = 1
  AND MI.ARRIVAL_DATE = '2016-12-01' -- 入荷日

In case of uroboroSQL Formatter

SELECT
    MI.MAKER_CD AS  ITEM_MAKER_CD   -- メーカーコード
,   MI.BRAND_CD AS  ITEM_BRAND_CD   -- ブランドコード
,   MI.ITEM_CD  AS  ITEM_CD         -- 商品コード
,   MI.CATEGORY AS  ITEM_CATEGORY   -- 商品カテゴリ
FROM
    M_ITEM  MI  -- 商品マスタ
WHERE
    1               =   1
AND MI.ARRIVAL_DATE =   '2016-12-01'    -- 入荷日

Features

  • Formatting by aligning the vertical position of AS and operator in SELECT clause, WHERE clause
  • Even if there is a comment at the end of each line, the format

How to Use

  • Select "Format SQL" from the Code menu
  • Use Alt + Shift + L on Windows, Cmd + Ctrl + L on OS X to format currently active document.

License

python-sqlparse library and this code are both on 2-clauses BSD


Copyright 2017 by Future Architect.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].