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

pganalyze-pg-query-go-v4

JSON →
library4.2.3gogounverified

Go bindings for the libpg_query library to parse and analyze PostgreSQL queries.

go get github.com/pganalyze/pg_query_go/v4
INSTALL
IMPORT
SIG · PGANALYZE-PG-QUERY
P
pganalyze-pg-query-go-v4
databasegov4.2.3
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/v4

Parses a PostgreSQL query and prints the parser version.

package main import ( "fmt" "github.com/pganalyze/pg_query_go/v4" ) func main() { result, _ := pg_query.Parse("SELECT 1") fmt.Println(result.Version) }
Debug
Known issues
gotchaRequires CGO and libpg_query to be installed.
fix
Ensure CGO is enabled and libpg_query is available on the system.
affects: >=4.0.0
Upgrade
Version history
4.2.3latest 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-v4 — go get pganalyze-pg-query-go-v4 · libregistry