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 βœ¨πŸ¦‹