| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K8CZxjsrAjJsvGfZNrR7Gd
|
CI status on 71a6e6f: the only red check is build windows/amd64, and the failure is not this PR's — the job died during go mod download with a transient Go module proxy error (proxy.golang.org … stream ID 129; INTERNAL_ERROR; received from peer fetching github.com/ncruces/go-sqlite3-wasm/v3, a dependency this PR doesn't touch), before any code was built. The same module downloaded fine in the five sibling build jobs of the same run, and test (the full --tags=examples suite against live PostgreSQL and MySQL), vuln_check, and the other platform builds are all green. build linux/arm64 shows as cancelled only because fail-fast stopped it during post-job cleanup; its go build ./... step had already succeeded. I don't have permission to re-run the failed jobs from here (the API returns 403), so this needs a "Re-run failed jobs" click on the workflow run from a maintainer. No code change is needed. Generated by Claude Code |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Upgrades oliphant from v0.1.0 to v0.2.0 and turns on sqlc fmt for the postgresql engine.
What's in oliphant 0.2.0
The release adds parser.ParseFile, which returns the parse tree together with the comment tokens the scanner already produces — from the same pass the parse makes over the input. That is exactly the contract sqlc fmt requires from an engine: statements and comments in one lexer pass, positioned in the same byte offsets the tree's location fields carry.
Changes
Testing
🤖 Generated with Claude Code
https://claude.ai/code/session_01K8CZxjsrAjJsvGfZNrR7Gd
Generated by Claude Code