GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sqlc-dev/oliphant

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
ast
ast
 
 
cmd
cmd
 
 
internal
internal
 
 
oracle
oracle
 
 
parser
parser
 
 
srcdata
srcdata
 
 
.gitignore
.gitignore
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
LICENSE.LIBPG_QUERY
LICENSE.LIBPG_QUERY
 
 
LICENSE.POSTGRESQL
LICENSE.POSTGRESQL
 
 
PLAN.md
PLAN.md
 
 
README.md
README.md
 
 
aliases.go
aliases.go
 
 
benchmark_test.go
benchmark_test.go
 
 
compat_test.go
compat_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
makefuncs.go
makefuncs.go
 
 
oliphant.go
oliphant.go
 
 
parse_test.go
parse_test.go
 
 
regenerate
regenerate
 
 
summary_test.go
summary_test.go
 
 

Repository files navigation

oliphant

A hand-written, pure Go (no cgo, no wasm) drop-in replacement for pganalyze/pg_query_go: same exported functions, same generated protobuf types, same JSON output, same error type, same fingerprints. Consumers change one import path:

-import pg_query "github.com/pganalyze/pg_query_go/v6"
+import pg_query "github.com/sqlc-dev/oliphant"

Pinned to libpg_query 18.0.0 (PostgreSQL 18.4, patched) — the exact build pg_query_go v6.2.2 ships. Every golden in parser/testdata derives from that oracle, byte for byte, and is never edited by hand.

See PLAN.md for the full design and CLAUDE.md for the development loop.

Status

Milestone State
1. Scaffolding + codegen ✅ module, licenses, CI, vendored pin, ast/ protobuf types, aliases, keyword tables, API surface, parser.Error; pg_query_go's parse_test tree literals compile unchanged
2. Corpus + oracle ✅ cgo oracle (oracle/), cmd/regenerate, byte-reproducible goldens; harness + cmd/next-test
3. Lexer ✅ Scan, SplitWithScanner, HashXXH3_64; token streams byte-identical across the corpus
4. Expressions + SELECT ✅ Parse/ParseToJSON for the SELECT family
5–7. DML, DDL, utility ✅ the full statement grammar; SplitWithParser, IsUtilityStmt; parse corpus at 100%
8. Normalize + fingerprint ✅ Normalize, NormalizeUtility, Fingerprint
9. Deparse ✅ Deparse, byte-equal to the oracle across the corpus
10. Summary ✅ Summary (classification + smart truncation)
11. PL/pgSQL ✅ ParsePlPgSqlToJSON (pl_gram + pl_comp subset + JSON dump)
12–13. Hardening, sqlc integration —

Every public entry point is implemented; the corpus — 2,067 golden files / 308,561 cases across eleven suites — passes with an empty todo list.

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.