{"id":67030,"library":"pganalyze-pg-query-go-v4","title":"pg_query_go","description":"Go bindings for the libpg_query library to parse and analyze PostgreSQL queries.","status":"active","version":"4.2.3","language":"go","source_language":null,"source_url":"https://github.com/pganalyze/pg_query_go","tags":["postgresql","sql-parser","query-analysis","database"],"install":[{"cmd":"go get github.com/pganalyze/pg_query_go/v4","lang":"bash","label":"Install github.com/pganalyze/pg_query_go/v4"}],"dependencies":[],"imports":[{"symbol":"pg_query","correct":"github.com/pganalyze/pg_query_go/v4"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/pganalyze/pg_query_go/v4\"\n)\n\nfunc main() {\n\tresult, _ := pg_query.Parse(\"SELECT 1\")\n\tfmt.Println(result.Version)\n}","lang":"go","description":"Parses a PostgreSQL query and prints the parser version."},"warnings":[{"fix":"Ensure CGO is enabled and libpg_query is available on the system.","message":"Requires CGO and libpg_query to be installed.","severity":"gotcha","affected_versions":">=4.0.0"}],"env_vars":null,"search_vec":"'analysi':23 'analyz':14 'bind':5 'databas':24 'go':3,4 'libpg':8 'librari':10 'pars':12 'parser':20 'pg':1 'postgresql':15,17 'queri':2,9,16,22 'query-analysi':21 'sql':19 'sql-parser':18","created_at":"2026-06-17T17:32:01.351000+00:00","updated_at":"2026-06-17T17:32:01.351000+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/v4#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"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}}