pganalyze / pg_query_go

Go library to parse and normalize SQL queries using the PostgreSQL query parser
BSD 3-Clause "New" or "Revised" License
663 stars 79 forks source link

Return full structured error info instead of just error message #76

Closed lfittl closed 1 year ago

lfittl commented 1 year ago

This maps the Go error result to be all information that's available in libpg_query's PgQueryError, in case the caller wants to do something with the error (e.g. report which character precisely errored out).

Fixes #75