Add an ability to use custom Struct Parser (structMap), missing destination name #1853
shlima
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the parser that extracts fields from query rows into the dest structure is private and hardcoded.
Add the ability to use a custom parser or a setting that allows silently skipping the
missing destination nameerror.Reason: migrations before deployment (
ADD COLUMN) — the old code raises an error on queries likeSELECT *, whereas it could continue working without any errors.Implementation example in pgx and scany (adapter) https://pkg.go.dev/github.com/georgysavva/scany/dbscan#WithAllowUnknownColumns
Beta Was this translation helpful? Give feedback.
All reactions