Registry / database / pganalyze-pg-query-go-v2

pganalyze-pg-query-go-v2

JSON →
library2.2.0gogounverified

A Go library for parsing, analyzing, and fingerprinting PostgreSQL queries using the libpg_query library.

go get github.com/pganalyze/pg_query_go/v2
INSTALL
IMPORT
SIG · PGANALYZE-PG-QUERY
P
pganalyze-pg-query-go-v2
databasegov2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pg_query
github.com/pganalyze/pg_query_go/v2

Parse a simple PostgreSQL query.

package main import ( "fmt" pg_query "github.com/pganalyze/pg_query_go/v2" ) func main() { result, err := pg_query.Parse("SELECT 1") if err != nil { panic(err) } fmt.Println(result.Version) }
Debug
Known issues
gotchaRequires CGO and the libpg_query C library to be installed.
fix
Ensure CGO is enabled and libpg_query is available on your system.
affects: all
Upgrade
Version history
2.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pganalyze-pg-query-go-v2 — go get pganalyze-pg-query-go-v2 · libregistry