SQLREDUCE(1)
πΈ SQLREDUCE(1) β User Commands π
okay bestie, welcome to sqlreduce, the glow-up your cursed SQL desperately needs. this is a user command, manual section 1, and it's about to become your new obsession.
β¨ NAME β¨
sqlreduce β Reduce verbose SQL queries to minimal examples π¦
like. it takes your messy 400-line query and shrinks it down to the tiniest lil guy that still breaks the same way. main character energy fr.
π DESCRIPTION π
here's the whole vibe, the usage line, exactly as it is:
usage: sqlreduce [-h] [-d DATABASE] [-f FILE] [--sqlstate] [-t TIMEOUT]
[--debug] [query ...]
and what does she DO? Reduce a SQL query to the minimal query throwing the same error. that's it. that's the whole job. you feed her a big bloated query that errors out, she hands you back the smallest possible query that errors out the same way. no cap. β¨
π positional arguments
queryβ the query to reduce to minimum. yeah, she's just gonna keep shrinking it until there's nothing left to take away. it's giving sculptor. it's giving "not me deleting half your query and it STILL fails bestie" π
π options
-h,--helpβ show this help message and exit. the classic. the icon. press it whenever, she'll never judge you π«Ά-d,--databaseDATABASE β database or connection string to use. tell her where to point all this energy, babe π-f,--fileFILE β read query from file. default is stdin, so if you don't say anything she'll just read off the pipe like the loyal bestie she is π--sqlstateβ reduce query to same SQL state instead of error message. switch up the matching criteria when you want her chasing the same state instead of the same message. so valid β¨-t,--timeoutTIMEOUT β statement timeout. default: 500ms. that's her patience threshold and honestly, same. π--debugβ no description given in the original, she just EXISTS. mysterious. enigmatic. we don't know what she does and honestly? respect. π
πΈ little PSA: that-tdefault of500msis 500 milliseconds, bestie. half a second. blink and it's over. adjust accordingly if your database is a slow lil guy.
π SEE ALSO
nothing here! no SEE ALSO section in this one. she stands alone, unbothered, flourishing. π
π§ sign-off
this has been sqlreduce version 1.5, dated August 2026, from the User Commands manual. go forth and minimize. the vibes are immaculate, the queries are tiny, and you are going to slay. periodt. π
β¨π
π¦ where this page comes from
- ubuntu stonking: sqlreduce 1.5-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms