Open
Description
Change Request
-
Describe what you find is inappropriate or missing in the existing docs.
It would be better to have SQL code be more readable by default and be stacked as opposed to all one line.
For example, the line:
SELECT l_orderkey, MAX(L_COMMENT), MAX(L_SHIPMODE), MAX(L_SHIPINSTRUCT), MAX(L_SHIPDATE), MAX(L_EXTENDEDPRICE) FROM lineitem GROUP BY l_orderkey HAVING SUM(l_quantity) > 314;
Would be more readable as:
SELECT l_orderkey, MAX(L_COMMENT), MAX(L_SHIPMODE), MAX(L_SHIPINSTRUCT), MAX(L_SHIPDATE), MAX(L_EXTENDEDPRICE) FROM lineitem GROUP BY l_orderkey HAVING SUM(l_quantity) > 314;
-
Describe your suggestion or addition.
Try and put something like https://sqlfum.pt/ into the docs pipeline to automatically:
- Fix the case for SQL keywords (e.g. "insert" → "INSERT")
- Convert to multi-line
-
Provide some reference materials (such as documents and websites) if you could.
https://github.com/mjibson/sqlfmt (which is https://wasm.sqlfum.pt/ )
https://sqlfmt.com/
https://www.salvis.com/blog/2020/08/28/formatting-sql-code-blocks-in-markdown-files/
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status