---
name: "sqlreduce"
section: "1"
platform: "linux"
package: "sqlreduce"
version: "1.3-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/sqlreduce"
---

# sqlreduce(1)

Reduce verbose SQL queries to minimal examples

## 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**
