| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:ec442a0c-48f3-5e7d-8025-ae469efdfcc7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 987C:188FE8:6029DEA:86F60D2:6A502147 |
| html-safe-nonce | 3a98a4b59c4337cdaf76a7b18313521e58fa499ef2cfea3ad8bf39478b507553 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODdDOjE4OEZFODo2MDI5REVBOjg2RjYwRDI6NkE1MDIxNDciLCJ2aXNpdG9yX2lkIjoiMTAyMDc3NTcyNjQ0ODY0ODUxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f69dcbfd3fa7ebc94332bc2a43b8bd9e34f362f5c175dc541f149b6c2ce812f |
| hovercard-subject-tag | pull_request:2380543361 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sqlc-dev/sqlc/3876/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f8476c710d105d54228c1694c11af5c8981bbd5833fcd15dadbb9ccdf30e9443/sqlc-dev/sqlc/pull/3876 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8476c710d105d54228c1694c11af5c8981bbd5833fcd15dadbb9ccdf30e9443/sqlc-dev/sqlc/pull/3876 |
| og:image:alt | This is an attempt to add wrapped errors to query functions in order to get the query name, as described in #1612.
If this approach looks reasonable I'll add more tests. But I'll also have ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrewmbenton |
| hostname | github.com |
| expected-hostname | github.com |
| None | a08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069 |
| turbo-cache-control | no-cache |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1b91b18e7330fc458dfd824c61eaed7daa830d6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/sqlc-dev/sqlc/pull/3876#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3876 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3876 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=sqlc-dev%2Fsqlc |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3876 |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3876 |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3876 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3876 |
|
sqlc-dev
| https://github.com/sqlc-dev |
| sqlc | https://github.com/sqlc-dev/sqlc |
|
Notifications
| https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc |
|
Fork
1.1k
| https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc |
|
Star
18k
| https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc |
|
Code
| https://github.com/sqlc-dev/sqlc |
|
Issues
597
| https://github.com/sqlc-dev/sqlc/issues |
|
Pull requests
106
| https://github.com/sqlc-dev/sqlc/pulls |
|
Discussions
| https://github.com/sqlc-dev/sqlc/discussions |
|
Actions
| https://github.com/sqlc-dev/sqlc/actions |
|
Projects
| https://github.com/sqlc-dev/sqlc/projects |
|
Security and quality
0
| https://github.com/sqlc-dev/sqlc/security |
|
Insights
| https://github.com/sqlc-dev/sqlc/pulse |
|
Code
| https://github.com/sqlc-dev/sqlc |
|
Issues
| https://github.com/sqlc-dev/sqlc/issues |
|
Pull requests
| https://github.com/sqlc-dev/sqlc/pulls |
|
Discussions
| https://github.com/sqlc-dev/sqlc/discussions |
|
Actions
| https://github.com/sqlc-dev/sqlc/actions |
|
Projects
| https://github.com/sqlc-dev/sqlc/projects |
|
Security and quality
| https://github.com/sqlc-dev/sqlc/security |
|
Insights
| https://github.com/sqlc-dev/sqlc/pulse |
| kyleconroy | https://github.com/kyleconroy |
| main | https://github.com/sqlc-dev/sqlc/tree/main |
| andrew/wrap-errors | https://github.com/sqlc-dev/sqlc/tree/andrew/wrap-errors |
| Conversation | https://github.com/sqlc-dev/sqlc/pull/3876 |
| Commits4 (4) | https://github.com/sqlc-dev/sqlc/pull/3876/commits |
| Checks | https://github.com/sqlc-dev/sqlc/pull/3876/checks |
| Files changed | https://github.com/sqlc-dev/sqlc/pull/3876/files |
| feat(codegen/golang): add an option to wrap query errors that includes query name | https://github.com/sqlc-dev/sqlc/pull/3876#top |
| kyleconroy | https://github.com/kyleconroy |
| main | https://github.com/sqlc-dev/sqlc/tree/main |
| andrew/wrap-errors | https://github.com/sqlc-dev/sqlc/tree/andrew/wrap-errors |
|
| https://github.com/andrewmbenton |
| andrewmbenton | https://github.com/andrewmbenton |
| Mar 9, 2025 | https://github.com/sqlc-dev/sqlc/pull/3876#issue-2905260087 |
| #1612 | https://github.com/sqlc-dev/sqlc/issues/1612 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3876 |
| andrewmbenton | https://github.com/andrewmbenton |
| March 8, 2025 23:21 | https://github.com/sqlc-dev/sqlc/pull/3876#commits-pushed-1019343 |
|
| https://github.com/andrewmbenton |
| feat(codegen/golang): add an option to wrap query errors that include… | https://github.com/sqlc-dev/sqlc/pull/3876/commits/1019343045bac10530f0a9dbedf483e56c151c1d |
| 1019343 | https://github.com/sqlc-dev/sqlc/pull/3876/commits/1019343045bac10530f0a9dbedf483e56c151c1d |
|
| https://github.com/andrewmbenton |
| use queryretval template func to avoid rewriting test output | https://github.com/sqlc-dev/sqlc/pull/3876/commits/f2200867c762fb45b62c11be5389d287c28870e5 |
| f220086 | https://github.com/sqlc-dev/sqlc/pull/3876/commits/f2200867c762fb45b62c11be5389d287c28870e5 |
| https://github.com/kyleconroy |
| kyleconroy | https://github.com/kyleconroy |
| Mar 9, 2025 | https://github.com/sqlc-dev/sqlc/pull/3876#issuecomment-2708980570 |
| os.ReadFile if a file doesn't exist | https://go.dev/play/p/I9GcD4drm_Y |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3876 |
| https://github.com/kyleconroy |
| kyleconroy | https://github.com/kyleconroy |
| Mar 9, 2025 | https://github.com/sqlc-dev/sqlc/pull/3876#issuecomment-2708981320 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3876 |
| https://github.com/andrewmbenton |
| andrewmbenton | https://github.com/andrewmbenton |
| Mar 9, 2025 | https://github.com/sqlc-dev/sqlc/pull/3876#issuecomment-2709008268 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3876 |
| andrewmbenton | https://github.com/andrewmbenton |
| March 9, 2025 11:41 | https://github.com/sqlc-dev/sqlc/pull/3876#commits-pushed-37eb9ae |
|
| https://github.com/andrewmbenton |
| shorter error messages | https://github.com/sqlc-dev/sqlc/pull/3876/commits/37eb9aeb66104f2a0fbe03953ba7bdd4a3480d27 |
| 37eb9ae | https://github.com/sqlc-dev/sqlc/pull/3876/commits/37eb9aeb66104f2a0fbe03953ba7bdd4a3480d27 |
|
| https://github.com/andrewmbenton |
| add more tests | https://github.com/sqlc-dev/sqlc/pull/3876/commits/9aa551fac9135076ecc03dbd656694b474410314 |
| 9aa551f | https://github.com/sqlc-dev/sqlc/pull/3876/commits/9aa551fac9135076ecc03dbd656694b474410314 |
| https://github.com/andrewmbenton |
| andrewmbenton | https://github.com/andrewmbenton |
| March 9, 2025 18:55 | https://github.com/sqlc-dev/sqlc/pull/3876#event-16645694500 |
| https://github.com/apps/dosubot |
| dosubot | https://github.com/apps/dosubot |
|
size:XL
| https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3Asize%3AXL |
|
🔧 golang
| https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22%3Awrench%3A%20golang%22 |
| Mar 9, 2025 | https://github.com/sqlc-dev/sqlc/pull/3876#event-16645694597 |
| https://github.com/andrewmbenton |
| andrewmbenton | https://github.com/andrewmbenton |
| Mar 9, 2025 | https://github.com/sqlc-dev/sqlc/pull/3876#issuecomment-2709016960 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3876 |
| https://github.com/kyleconroy |
| kyleconroy | https://github.com/kyleconroy |
|
Mar 30, 2025
| https://github.com/sqlc-dev/sqlc/pull/3876#pullrequestreview-2728050523 |
|
View reviewed changes
| https://github.com/sqlc-dev/sqlc/pull/3876/files/9aa551fac9135076ecc03dbd656694b474410314 |
| https://github.com/apps/dosubot |
| dosubot | https://github.com/apps/dosubot |
|
lgtm
| https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3Algtm |
| Mar 30, 2025 | https://github.com/sqlc-dev/sqlc/pull/3876#event-17049423299 |
| https://github.com/kyleconroy |
| kyleconroy | https://github.com/kyleconroy |
| 2f9e9d4 | https://github.com/sqlc-dev/sqlc/commit/2f9e9d41debb4c39549528a10fff8d90c3d3180b |
| Mar 30, 2025 | https://github.com/sqlc-dev/sqlc/pull/3876#event-17049423349 |
| https://github.com/kyleconroy |
| kyleconroy | https://github.com/kyleconroy |
| March 30, 2025 23:55 | https://github.com/sqlc-dev/sqlc/pull/3876#event-17049423414 |
| https://github.com/krhubert |
| krhubert | https://github.com/krhubert |
|
Mar 31, 2025
| https://github.com/sqlc-dev/sqlc/pull/3876#ref-issue-2961707259 |
|
wrap_errors: pgx always returns non-nil error.
#3912
| https://github.com/sqlc-dev/sqlc/issues/3912 |
| alfonsodev | https://github.com/alfonsodev |
|
Oct 13, 2025
| https://github.com/sqlc-dev/sqlc/pull/3876#ref-commit-cc9fb41 |
|
| https://github.com/andrewmbenton |
| feat(codegen/golang): add an option to wrap query errors that include… | https://github.com/ExponentiaTeam/sqlc/commit/cc9fb412c5a484e3c157ba5438b5f10f79f7a330 |
| cc9fb41 | https://github.com/ExponentiaTeam/sqlc/commit/cc9fb412c5a484e3c157ba5438b5f10f79f7a330 |
| sqlc-dev#3876 | https://github.com/sqlc-dev/sqlc/pull/3876 |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3876 |
|
| https://github.com/kyleconroy |
|
kyleconroy
| https://github.com/kyleconroy |
|
| https://github.com/sqlc-dev/sqlc/pull/3876/files/9aa551fac9135076ecc03dbd656694b474410314 |
|
lgtm
| https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3Algtm |
|
size:XL
| https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3Asize%3AXL |
|
🔧 golang
| https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22%3Awrench%3A%20golang%22 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3876 |
|
| https://github.com/andrewmbenton |
|
| https://github.com/kyleconroy |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |