sqlreduce(1)

Reduce verbose SQL queries to minimal examples

Section 1 sqlreduce bookworm source

Description

SQLREDUCE

NAME

sqlreduce - Reduce verbose SQL queries to minimal examples

DESCRIPTION

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