René's URL Explorer Experiment


Title: fix(golang): Escape reserved keywords by kyleconroy · Pull Request #2849 · sqlc-dev/sqlc · GitHub

Open Graph Title: fix(golang): Escape reserved keywords by kyleconroy · Pull Request #2849 · sqlc-dev/sqlc

X Title: fix(golang): Escape reserved keywords by kyleconroy · Pull Request #2849 · sqlc-dev/sqlc

Description: Append _ to variable names that are reserved Fixes #2267

Open Graph Description: Append _ to variable names that are reserved Fixes #2267

X Description: Append _ to variable names that are reserved Fixes #2267

Opengraph URL: https://github.com/sqlc-dev/sqlc/pull/2849

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cdd629a6-3c71-5f87-3d4c-4dd6437cd7d9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD45A:2D0224:C40CB3:1092429:6A51EEC1
html-safe-noncec52623de0ba7dc8672db5a2f536386571e5e89f81db1410069ac4573ed3ee6dd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDVBOjJEMDIyNDpDNDBDQjM6MTA5MjQyOTo2QTUxRUVDMSIsInZpc2l0b3JfaWQiOiIzNTMzNzIyODQ0NjU0NTk1Nzc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac77f75ebe559839a137def4b6a978eb458738ec42ff414ff4e022fd837f39abc7
hovercard-subject-tagpull_request:1555296651
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/2849/files
twitter:imagehttps://avatars.githubusercontent.com/u/34893?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/34893?s=400&v=4
og:image:altAppend _ to variable names that are reserved Fixes #2267
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git
octolytics-dimension-user_id136738596
octolytics-dimension-user_loginsqlc-dev
octolytics-dimension-repository_id193160679
octolytics-dimension-repository_nwosqlc-dev/sqlc
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id193160679
octolytics-dimension-repository_network_root_nwosqlc-dev/sqlc
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/2849/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F2849%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F2849%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=sqlc-dev%2Fsqlc
Reloadhttps://github.com/sqlc-dev/sqlc/pull/2849/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/2849/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/2849/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2849/files
sqlc-dev https://github.com/sqlc-dev
sqlchttps://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
Sign up for GitHub https://github.com/signup?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose
kyleconroyhttps://github.com/kyleconroy
mainhttps://github.com/sqlc-dev/sqlc/tree/main
kyle/codegen-go-keywordshttps://github.com/sqlc-dev/sqlc/tree/kyle/codegen-go-keywords
Conversation 2 https://github.com/sqlc-dev/sqlc/pull/2849
Commits 2 https://github.com/sqlc-dev/sqlc/pull/2849/commits
Checks 0 https://github.com/sqlc-dev/sqlc/pull/2849/checks
Files changed https://github.com/sqlc-dev/sqlc/pull/2849/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2849/files
fix(golang): Escape reserved keywords https://github.com/sqlc-dev/sqlc/pull/2849/files#top
Show all changes 2 commits https://github.com/sqlc-dev/sqlc/pull/2849/files
a65b15e fix(golang): Escape reserved keywords kyleconroy Oct 13, 2023 https://github.com/sqlc-dev/sqlc/pull/2849/commits/a65b15e711274cccdb86b7c20ef181d5bfac4c07
6ac45db update config kyleconroy Oct 13, 2023 https://github.com/sqlc-dev/sqlc/pull/2849/commits/6ac45dbb3437614566cfc6eb66e7e985a269bcc1
Clear filters https://github.com/sqlc-dev/sqlc/pull/2849/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2849/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2849/files
query.go https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-0882adeeefd3539f903f1ec19fe956505df3f46aed6221453d055b82c771a46a
reserved.go https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-f534b05d669d70df44b0a8c9138f1b1dd6c64ea99b295b72abca0c1ee10bbde9
result.go https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-554ace7a315b3c4704a348e208df36f1f4cffbd0ba9dfd51048f11fbffe8c138
issue.md https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-ee471fa2483eca07aa754627f08947392a05ca2c157455573dbf5f862e74153d
db.go https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-c68c04a2c23fdf2c7469de249cd71a5746e28f5449b5be876ccae9a4790306d2
models.go https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-6cdc5d8e0b4e9f61d3440acb97e741286bbf56bdd6a8c2d780769c3019f4a526
query.sql.go https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-c3a7e518cf8f0b5bc844526e8cba080684a778504abbefedaaae3a430d41b21a
query.sql https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-283c5fe87b0f1d963871b0ac6334c9471b8be50b6c471d2448c98d630dbea413
schema.sql https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-10dae3a8d952f3aac1913ebc34cec0d3c142273c9b75ce62d4cec69d10371e8e
sqlc.yaml https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-45e593f09a4c5c4f32abb00a9961c68942529ea777596f1fd02ffb2385c891eb
analyze.go https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-b63e33e4a0f2f5909579da6bf50f7ba06f86698aace52319d5c24620e6564148
internal/codegen/golang/query.gohttps://github.com/sqlc-dev/sqlc/pull/2849/files#diff-0882adeeefd3539f903f1ec19fe956505df3f46aed6221453d055b82c771a46a
View file https://github.com/sqlc-dev/sqlc/blob/6ac45dbb3437614566cfc6eb66e7e985a269bcc1/internal/codegen/golang/query.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/2849/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-0882adeeefd3539f903f1ec19fe956505df3f46aed6221453d055b82c771a46a
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-0882adeeefd3539f903f1ec19fe956505df3f46aed6221453d055b82c771a46a
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-0882adeeefd3539f903f1ec19fe956505df3f46aed6221453d055b82c771a46a
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-0882adeeefd3539f903f1ec19fe956505df3f46aed6221453d055b82c771a46a
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-0882adeeefd3539f903f1ec19fe956505df3f46aed6221453d055b82c771a46a
internal/codegen/golang/reserved.gohttps://github.com/sqlc-dev/sqlc/pull/2849/files#diff-f534b05d669d70df44b0a8c9138f1b1dd6c64ea99b295b72abca0c1ee10bbde9
View file https://github.com/sqlc-dev/sqlc/blob/6ac45dbb3437614566cfc6eb66e7e985a269bcc1/internal/codegen/golang/reserved.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/2849/{{ revealButtonHref }}
internal/codegen/golang/result.gohttps://github.com/sqlc-dev/sqlc/pull/2849/files#diff-554ace7a315b3c4704a348e208df36f1f4cffbd0ba9dfd51048f11fbffe8c138
View file https://github.com/sqlc-dev/sqlc/blob/6ac45dbb3437614566cfc6eb66e7e985a269bcc1/internal/codegen/golang/result.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/2849/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-554ace7a315b3c4704a348e208df36f1f4cffbd0ba9dfd51048f11fbffe8c138
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-554ace7a315b3c4704a348e208df36f1f4cffbd0ba9dfd51048f11fbffe8c138
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-554ace7a315b3c4704a348e208df36f1f4cffbd0ba9dfd51048f11fbffe8c138
https://github.com/sqlc-dev/sqlc/pull/2849/files#diff-554ace7a315b3c4704a348e208df36f1f4cffbd0ba9dfd51048f11fbffe8c138
internal/endtoend/testdata/params_go_keywords/issue.mdhttps://github.com/sqlc-dev/sqlc/pull/2849/files#diff-ee471fa2483eca07aa754627f08947392a05ca2c157455573dbf5f862e74153d
View file https://github.com/sqlc-dev/sqlc/blob/6ac45dbb3437614566cfc6eb66e7e985a269bcc1/internal/endtoend/testdata/params_go_keywords/issue.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/2849/{{ revealButtonHref }}
internal/endtoend/testdata/params_go_keywords/postgresql/go/db.gohttps://github.com/sqlc-dev/sqlc/pull/2849/files#diff-c68c04a2c23fdf2c7469de249cd71a5746e28f5449b5be876ccae9a4790306d2
View file https://github.com/sqlc-dev/sqlc/blob/6ac45dbb3437614566cfc6eb66e7e985a269bcc1/internal/endtoend/testdata/params_go_keywords/postgresql/go/db.go
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2849/files
internal/endtoend/testdata/params_go_keywords/postgresql/go/models.gohttps://github.com/sqlc-dev/sqlc/pull/2849/files#diff-6cdc5d8e0b4e9f61d3440acb97e741286bbf56bdd6a8c2d780769c3019f4a526
View file https://github.com/sqlc-dev/sqlc/blob/6ac45dbb3437614566cfc6eb66e7e985a269bcc1/internal/endtoend/testdata/params_go_keywords/postgresql/go/models.go
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2849/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2849/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.