From d19c7a56c267f20a2886378b5395e0f599a2adf2 Mon Sep 17 00:00:00 2001
From: Kevin Longe <273747162+kvlonge@users.noreply.github.com>
Date: Fri, 6 Nov 2026 16:24:40 +0000
Subject: [PATCH] docs(site): print the homepage's convert output one clause
per line
Re-run on main ff9ff20b in a folder with no sqlquack.toml: the hero, the
decimal and HASH examples now show the clause-per-line layout, the hero's
summary names the built-in default, and the HASH refusal's help line is the
one the built-in policy prints.
---
website/public/index.html | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/website/public/index.html b/website/public/index.html
index d9d624aed..b99665a83 100644
--- a/website/public/index.html
+++ b/website/public/index.html
@@ -84,12 +84,13 @@
Run Snowflake SQL locally.
= help: move the condition to WHERE or HAVING
sqlquack convert revenue.sql --schema schema.json
-SELECT "ORDERS"."CUSTOMER_ID" AS "CUSTOMER_ID",
- CAST(sum("ORDERS"."TOTAL") AS DECIMAL(24,2)) AS "REVENUE"
+SELECT
+ "ORDERS"."CUSTOMER_ID" AS "CUSTOMER_ID",
+ CAST(sum("ORDERS"."TOTAL") AS DECIMAL(24,2)) AS "REVENUE"
FROM "ORDERS" AS "ORDERS"
WHERE ("ORDERS"."STATUS" = 'shipped')
GROUP BY "ORDERS"."CUSTOMER_ID"
-sqlquack convert: done
+sqlquack convert: done, converted under the built-in default
@@ -154,8 +155,12 @@ DuckDB SQL that keeps Snowflake's meaning
SELECT order_id, total / 3 AS third FROM orders
sqlquack convert div.sql --schema schema.json --builtin-policy
-SELECT "ORDERS"."ORDER_ID" AS "ORDER_ID",
- (CASE … ELSE CAST(… AS DECIMAL(18,8)) END) AS "THIRD"
+SELECT
+ "ORDERS"."ORDER_ID" AS "ORDER_ID",
+ (CASE
+ …
+ ELSE CAST(… AS DECIMAL(18,8))
+ END) AS "THIRD"
FROM "ORDERS" AS "ORDERS"
sqlquack convert: done, converted under the built-in default
@@ -175,7 +180,8 @@ A refusal you can act on
| ^^^^^^^^^^^^^^^^^ fn:HASH needs known divergence `hash`,
| which the policy refuses in this mode
|
- = help: allow the divergence under [divergences.<id>] in the policy file …
+ = help: the built-in policy refuses every known divergence;
+ pass --policy with a policy file that allows `hash` …
sqlquack convert: refused, 1 refusal under the built-in default
@@ -191,7 +197,10 @@ Known divergences are opt-in
default = "warn"
sqlquack convert due.sql --schema schema.json
-SELECT "ORDERS"."ORDER_ID" AS "ORDER_ID", … AS "BUCKET" FROM "ORDERS" AS "ORDERS"
+SELECT
+ "ORDERS"."ORDER_ID" AS "ORDER_ID",
+ … AS "BUCKET"
+FROM "ORDERS" AS "ORDERS"
sqlquack convert: relies on known divergence hash at fn:HASH
sqlquack convert: done, converted under utc-v1