Skip to content

Commit 3516d68

Browse files
committed
endtoend: run sqlc fmt over the sqlite testdata queries
Format every sqlite query file in the end-to-end corpus with the new formatter and regenerate the affected goldens (the generated code embeds the query text). The fmt case's own input stays unformatted — it is the formatter's fixture — and nine files are left as written because they only parse after the compiler's preprocessing (sqlc.arg/narg/slice/ embed, @nAmed parameters). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018MTvpHqNMadH12pTtsgUq2
1 parent a96f20d commit 3516d68

94 files changed

Lines changed: 566 additions & 559 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

internal/endtoend/testdata/between_args/sqlite/go/query.sql.go

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
-- name: GetBetweenPrices :many
2-
SELECT *
3-
FROM products
4-
WHERE price BETWEEN ? AND ?;
2+
SELECT *
3+
FROM products
4+
WHERE price BETWEEN ? AND ?;
55

66
-- name: GetBetweenPricesTable :many
7-
SELECT *
8-
FROM products
9-
WHERE products.price BETWEEN ? AND ?;
7+
SELECT *
8+
FROM products
9+
WHERE products.price BETWEEN ? AND ?;
1010

1111
-- name: GetBetweenPricesTableAlias :many
12-
SELECT *
13-
FROM products as p
14-
WHERE p.price BETWEEN ? AND ?;
12+
SELECT *
13+
FROM products AS p
14+
WHERE p.price BETWEEN ? AND ?;

internal/endtoend/testdata/builtins/sqlite/go/mathfunc.sql.go

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)