SQLFORMAT(1)
β¨ SQLFORMAT(1) β¨
okay bestie, welcome to the sqlformat glow-up station π
this is the User Commands girlie of the manual world and she is here to make your SQL look immaculate
πΈ NAME πΈ
sqlformat β reformat SQL. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
sqlformat [ OPTION ] ... [ FILE ] ...
π DESCRIPTION π
so the tea is: the sqlformat command-line tool can be used to reformat SQL file according to specified options β¨ or prepare a snippet in in some programming language π«Ά β and rn that's only Python and PHP, currently supported, so don't come for her about the rest, she's doing her best π
and use - for FILE to read from stdin, iykyk π₯
π OPTIONS π
-i CHOICE,--identifiers=FORMATβ change case of identifiers. FORMAT is one of"upper","lower","capitalize". choose ur fighter π«-k CHOICE,--keywords=FORMATβ change case of keywords. FORMAT is one of"upper","lower","capitalize". yes the same three, she's consistent π-l CHOICE,--language=LANGβ output a snippet in programming language LANG. LANG can be"python","php". two options, both iconic ππ-o FILE,--outfile=FILEβ write output to FILE (defaults to stdout). no file? no problem, she'll just scream it directly at ur terminal π’-r,--reindentβ reindent statements. fix that posture bestie β¨--indent_width=INDENT_WIDTHβ set indent width to INDENT_WIDTH. Default is 2 spaces. tiny but mighty π§--wrap_after=WRAP_AFTERβ the column limit for wrapping comma-separated lists. If unspecified, it puts every item in the list on its own line. one item per line, main character energy, no sharing π--strip-commentsβ remove comments. silent treatment fr fr π-h,--helpβ print a short help message and exit. and all subsequent options are ignored β she said i'm done talking, periodt π--verboseβ verbose output. she's yapping (affectionate) π£οΈ--versionβ print program's version number and exit. who is she? π
π«Ά AUTHORS π«Ά
this man page was written by Andriy Senkovych <jolly_roger@itblog.org.ua> β thank u for ur service, king π
and that's a wrap babes π this page was serving python-sqlparse version: 0.1.2, dated December 2010, brought to you under the SQLFORMAT(1) banner π stay formatted, stay slay, no cap β¨π¦
π¦ where this page comes from
- debian bookworm: sqlformat 0.4.2-1+deb12u1 Β· BSD-3
- debian trixie: sqlformat 0.5.3-1 Β· BSD-3
- nixos 26.05: python3.13-sqlparse 0.5.5
- nixos 26.05: python3.14-sqlparse 0.5.5
- nixpkgs unstable: python3.13-sqlparse 0.6.0
- nixpkgs unstable: python3.14-sqlparse 0.6.0
- ubuntu jammy: sqlformat 0.4.2-1 Β· BSD-3
- ubuntu jammy: sqlformat 0.4.2-1ubuntu0.22.04.3 Β· BSD-3
- ubuntu noble: sqlformat 0.4.4-1 Β· BSD-3
- ubuntu noble: sqlformat 0.4.4-1ubuntu0.2 Β· BSD-3
- ubuntu questing: sqlformat 0.5.3-1
- ubuntu resolute: sqlformat 0.5.4-1 Β· BSD-3
- ubuntu resolute: sqlformat 0.5.4-1ubuntu0.1 Β· BSD-3
- ubuntu stonking: sqlformat 0.5.5-2ubuntu1 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms