You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade to oliphant 0.2.0 and wire up sqlc fmt for PostgreSQL (#4587)
oliphant 0.2.0 adds parser.ParseFile, which returns the parse tree along
with the comment tokens its scanner already produces. That is exactly what
sqlc fmt needs from an engine, so the PostgreSQL parser now implements
ParseFile — Parse delegates to it, keeping the statement-span conventions
unchanged — and fmt formats postgresql query files.
PostgreSQL also brings a proof the other engines cannot offer: oliphant's
pg_query-compatible fingerprint. Where an engine implements Fingerprint,
fmt only accepts a formatted statement whose fingerprint matches the
original's, and falls back to the text as written otherwise.
The fmt/postgresql end-to-end case now commits its formatted diff instead
of an unsupported-engine notice.
Claude-Session: https://claude.ai/code/session_01K8CZxjsrAjJsvGfZNrR7Gd
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments