ValkDB / postgresparser
PublicANTLR-based PostgreSQL query parser for Go. Extracts tables, columns, joins, CTEs, parameters, DDL actions, and full column-usage metadata from SQL into a structured IR.
A pure-Go PostgreSQL SQL parser that extracts structured metadata like tables, columns, joins, and filters from queries without execution.
How It Works
You find a friendly tool that reads and understands PostgreSQL queries without running them, perfect for checking what they do.
You easily include it in your Go application with a simple command, no complicated setups needed.
Paste any SQL query into your code, and it starts reading it like a story.
Instantly see the tables, columns, joins, filters, and more in a clear structured list.
Use extra smarts to spot column roles, extract conditions, or detect table links.
Create query checkers, migration helpers, or audit logs that make your work safer and faster.
Your app now perfectly understands every SQL query, saving time and catching issues early.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.