{"id":62708,"library":"pganalyze-pg-query-go-v2","title":"pg_query_go","description":"A Go library for parsing, analyzing, and fingerprinting PostgreSQL queries using the libpg_query library.","status":"active","version":"2.2.0","language":"go","source_language":null,"source_url":"https://github.com/pganalyze/pg_query_go","tags":["postgresql","sql-parser","database","query-analysis"],"install":[{"cmd":"go get github.com/pganalyze/pg_query_go/v2","lang":"bash","label":"Install github.com/pganalyze/pg_query_go/v2"}],"dependencies":[],"imports":[{"symbol":"pg_query","correct":"github.com/pganalyze/pg_query_go/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\tpg_query \"github.com/pganalyze/pg_query_go/v2\"\n)\n\nfunc main() {\n\tresult, err := pg_query.Parse(\"SELECT 1\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(result.Version)\n}","lang":"go","description":"Parse a simple PostgreSQL query."},"warnings":[{"fix":"Ensure CGO is enabled and libpg_query is available on your system.","message":"Requires CGO and the libpg_query C library to be installed.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'analysi':26 'analyz':9 'databas':23 'fingerprint':11 'go':3,5 'libpg':16 'librari':6,18 'pars':8 'parser':22 'pg':1 'postgresql':12,19 'queri':2,13,17,25 'query-analysi':24 'sql':21 'sql-parser':20 'use':14","created_at":"2026-06-17T16:34:49.467279+00:00","updated_at":"2026-06-17T16:34:49.467279+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pganalyze/pg_query_go","github":"https://github.com/pganalyze/pg_query_go","docs":"https://pkg.go.dev/github.com/pganalyze/pg_query_go/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}