sql-formatter-org / sql-formatter-org/sql-formatter

Feature Request: Please add .commands support for DuckDB dialect

Open
#939 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
2.9k
Forks
456
Avg merge
3d 4h
Merged PRs (30d)
3

Description

Describe the Feature
Currently .commands break formatting of DuckDB SQL files

Why do you want this feature?
It'll be much more convenient not to have to comment them out to be able to format.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the DuckDB dialect handling and the formatter path where .commands are parsed or emitted. Add coverage for DuckDB SQL containing .commands, and confirm formatting preserves these commands without requiring them to be commented out.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
databases, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.