carta
sqlreduce(1)

sqlreduce1

Reduce verbose sql queries to minimal examples

Overview

usage: sqlreduce [-h] [-d DATABASE] [-f FILE] [--sqlstate] [-t TIMEOUT]

[--debug] [query ...]

Reduce a SQL query to the minimal query throwing the same error

positional arguments:

query

Query to reduce to minimum

options:

-h, --help

show this help message and exit

-d DATABASE, --database DATABASE

Database or connection string to use

-f FILE, --file FILE

Read query from file [Default: stdin]

--sqlstate

Reduce query to same SQL state instead of error message

-t TIMEOUT, --timeout TIMEOUT

Statement timeout [Default: 500ms]

--debug

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)

From sqlreduce 1.3-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.