Skip to content
uencoder
PIPELINE Developer Productivity Intermediate 2 steps

Format SQL and document with word stats

A formatted SQL query is easier to review and document. This chain first standardizes the SQL formatting (capitalization, indentation), then produces statistics about the formatted output for documentation.

What it solves

Pretty-print a SQL query then analyze the formatted output with word statistics.

Input → Output

SQL Formatter input → Word Count output across 2 steps.

Runs in

2–3 minutes · fully local in your browser.

Before you start

  • A SQL query string

The pipeline

  1. 1 SQL Formatter sql-format

    Beautify or minify SQL queries online. Uppercase keywords, indent clauses, or compress to a single line. Free, private, and 100% client-side.

  2. 2 Word Count word-count

    Count characters, words, lines, sentences, paragraphs, byte size, and estimate reading time. Free, private, and 100% client-side.

Open in Toolchain

Runs locally in your browser. The recipe defines the pipeline only — your input never leaves this tab.

▶Run this workflow

Enter your input below and click Run. All processing happens locally in your browser — nothing is uploaded.

Pipeline progress

  1. SQL Formattersql-format
  2. Word Countword-count

Sample input

select name,age from users where active=1

Expected output

Characters: 41
Characters (no spaces): 36
Words: 6
Lines: 3
Sentences: 1
Paragraphs: 1
Bytes (UTF-8): 41
Reading time: ~1 min

This pair is executed against the real tools at build time (tests/unit/recipes.test.ts) — the expected output is verified, not illustrative.

Related workflows

You might also need

Workflows sharing tools or topics with this recipe.

Learn more

Tools used