ValkDB/postgresparser
ANTLR-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.
Go265 stars12 forks
Topics
#antlr#database#developer-tools#go#postgresql#sql-parser#postgres
What it does
postgresparser is a pure-Go PostgreSQL query parser that allows developers to extract structured metadata from SQL queries without needing cgo. It is ideal for environments where a C toolchain is not available, making it versatile for various deployment scenarios.
Star history
Not enough history yet — 1 day(s) recorded. The daily snapshot builds this up.
Tracking
- Last trending
- 2026-02-21
Creator kit
Hook
Unlock the power of SQL parsing in Go with postgresparser—no cgo required!
Content angles
- Create a tutorial on how to integrate postgresparser into a Go application for SQL query analysis.
- Develop a video series showcasing different use cases for postgresparser, such as query linting and migration tooling.
- Write a blog post comparing postgresparser with other SQL parsers, highlighting its performance and ease of use.
Who should care
Go developers, database administrators, and software engineers interested in SQL parsing.