René's URL Explorer Experiment


Title: Add `emit_sql_as_comment` option to Go code plugin by jasoncabot · Pull Request #2735 · sqlc-dev/sqlc · GitHub

Open Graph Title: Add `emit_sql_as_comment` option to Go code plugin by jasoncabot · Pull Request #2735 · sqlc-dev/sqlc

X Title: Add `emit_sql_as_comment` option to Go code plugin by jasoncabot · Pull Request #2735 · sqlc-dev/sqlc

Description: Generate type-safe code from SQL. Contribute to sqlc-dev/sqlc development by creating an account on GitHub.

Open Graph Description: This option adds the raw SQL query as a comment to the generated query function, defaulted to false. This is useful when working in an IDE that displays comments over functions, you are able to gla...

X Description: This option adds the raw SQL query as a comment to the generated query function, defaulted to false. This is useful when working in an IDE that displays comments over functions, you are able to gla...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:db71174c-965c-ce22-d7c2-86fffca99c1a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA590:B6C89:876CF0B:BD0698E:6A505632
html-safe-nonce8a75217c2bb799d0e03996ba84873fd4d8c990fc6d1b8bc393bae2ae95a2a9c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTkwOkI2Qzg5Ojg3NkNGMEI6QkQwNjk4RTo2QTUwNTYzMiIsInZpc2l0b3JfaWQiOiI0MjcxNDMyODY4NzM5Mzc0NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0fda37b784a8001980e86f717bc24c6a6f8ab817a67572940020098b5d923ef1
hovercard-subject-tagpull_request:1517563154
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sqlc-dev/sqlc/2735/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c59336712b8b2cdb76f30e4f4ba7d44fd235da9344e04504cdcf263e64fd32e6/sqlc-dev/sqlc/pull/2735
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c59336712b8b2cdb76f30e4f4ba7d44fd235da9344e04504cdcf263e64fd32e6/sqlc-dev/sqlc/pull/2735
og:image:altThis option adds the raw SQL query as a comment to the generated query function, defaulted to false. This is useful when working in an IDE that displays comments over functions, you are able to gla...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejasoncabot
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/2735#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F2735
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%2F2735
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
Reloadhttps://github.com/sqlc-dev/sqlc/pull/2735
Reloadhttps://github.com/sqlc-dev/sqlc/pull/2735
Reloadhttps://github.com/sqlc-dev/sqlc/pull/2735
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
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
kyleconroyhttps://github.com/kyleconroy
sqlc-dev:mainhttps://github.com/sqlc-dev/sqlc/tree/main
jasoncabot:add-sql-as-commenthttps://github.com/jasoncabot/sqlc/tree/add-sql-as-comment
Conversationhttps://github.com/sqlc-dev/sqlc/pull/2735
Commits1 (1)https://github.com/sqlc-dev/sqlc/pull/2735/commits
Checkshttps://github.com/sqlc-dev/sqlc/pull/2735/checks
Files changedhttps://github.com/sqlc-dev/sqlc/pull/2735/files
Add emit_sql_as_comment option to Go code pluginhttps://github.com/sqlc-dev/sqlc/pull/2735#top
kyleconroyhttps://github.com/kyleconroy
sqlc-dev:mainhttps://github.com/sqlc-dev/sqlc/tree/main
jasoncabot:add-sql-as-commenthttps://github.com/jasoncabot/sqlc/tree/add-sql-as-comment
https://github.com/jasoncabot
jasoncabothttps://github.com/jasoncabot
Sep 15, 2023https://github.com/sqlc-dev/sqlc/pull/2735#issue-1898667583
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
Code Blockhttps://tip.golang.org/doc/comment
https://private-user-images.githubusercontent.com/93598/268328836-e6cc5038-8ffb-4409-be5c-1f6f2faaa5fe.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM2NTAxNDMsIm5iZiI6MTc4M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RXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIwZDVkZjIxMjRhZmRhMTA0NTcxNGY3NGMyMDU2NTk5MGJjNDc5NTk4NDhjYjBkZDVhNjRiNjI1YjdhZTA1ZTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.A2wz1SLBz6XEdVDA_W5PeKNArBzpHyV6s3KSDliHQMo
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
https://github.com/jasoncabot
jasoncabothttps://github.com/jasoncabot
force-pushedhttps://github.com/sqlc-dev/sqlc/compare/c0b2129e6e3817da91c5ff0f1236a5a138e34e90..b2e30cb6d19f507295dc7bb99df11700a667fad0
c0b2129https://github.com/sqlc-dev/sqlc/commit/c0b2129e6e3817da91c5ff0f1236a5a138e34e90
b2e30cbhttps://github.com/sqlc-dev/sqlc/commit/b2e30cb6d19f507295dc7bb99df11700a667fad0
Compare https://github.com/sqlc-dev/sqlc/compare/c0b2129e6e3817da91c5ff0f1236a5a138e34e90..b2e30cb6d19f507295dc7bb99df11700a667fad0
September 19, 2023 08:57https://github.com/sqlc-dev/sqlc/pull/2735#event-10407709427
https://github.com/jasoncabot
jasoncabothttps://github.com/jasoncabot
Sep 20, 2023https://github.com/sqlc-dev/sqlc/pull/2735#issuecomment-1727248326
@kyleconroyhttps://github.com/kyleconroy
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
https://github.com/andrewmbenton
andrewmbentonhttps://github.com/andrewmbenton
Sep 29, 2023https://github.com/sqlc-dev/sqlc/pull/2735#issuecomment-1741516600
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
https://github.com/andrewmbenton
andrewmbentonhttps://github.com/andrewmbenton
Sep 29, 2023https://github.com/sqlc-dev/sqlc/pull/2735#event-10515564076
https://github.com/andrewmbenton
andrewmbentonhttps://github.com/andrewmbenton
Dec 8, 2023https://github.com/sqlc-dev/sqlc/pull/2735#issuecomment-1847958797
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
https://github.com/andrewmbenton
andrewmbentonhttps://github.com/andrewmbenton
Dec 8, 2023https://github.com/sqlc-dev/sqlc/pull/2735#event-11198383510
https://github.com/andrewmbenton
andrewmbentonhttps://github.com/andrewmbenton
Dec 9, 2023 https://github.com/sqlc-dev/sqlc/pull/2735#ref-pullrequest-2033452632
Add emit_sql_as_comment option to Go code plugin #3049 https://github.com/sqlc-dev/sqlc/pull/3049
https://github.com/jasoncabot
jasoncabothttps://github.com/jasoncabot
Dec 10, 2023https://github.com/sqlc-dev/sqlc/pull/2735#issuecomment-1848937149
jasoncabot@aa15d6ahttps://github.com/jasoncabot/sqlc/commit/aa15d6ab5a0f1626e6e6eb45d915ec1d3938eece
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
https://github.com/andrewmbenton
andrewmbentonhttps://github.com/andrewmbenton
Dec 11, 2023https://github.com/sqlc-dev/sqlc/pull/2735#issuecomment-1850494717
jasoncabot@aa15d6ahttps://github.com/jasoncabot/sqlc/commit/aa15d6ab5a0f1626e6e6eb45d915ec1d3938eece
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
accepted https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3Aaccepted
Dec 11, 2023https://github.com/sqlc-dev/sqlc/pull/2735#event-11216991282
https://github.com/jasoncabot
Add emit_sql_as_comment option to Go code pluginhttps://github.com/sqlc-dev/sqlc/pull/2735/commits/db0157bc2552831bdb84711d9630cda45406530c
db0157bhttps://github.com/sqlc-dev/sqlc/pull/2735/commits/db0157bc2552831bdb84711d9630cda45406530c
https://github.com/jasoncabot
jasoncabothttps://github.com/jasoncabot
force-pushedhttps://github.com/sqlc-dev/sqlc/compare/b2e30cb6d19f507295dc7bb99df11700a667fad0..db0157bc2552831bdb84711d9630cda45406530c
b2e30cbhttps://github.com/sqlc-dev/sqlc/commit/b2e30cb6d19f507295dc7bb99df11700a667fad0
db0157bhttps://github.com/sqlc-dev/sqlc/commit/db0157bc2552831bdb84711d9630cda45406530c
Compare https://github.com/sqlc-dev/sqlc/compare/b2e30cb6d19f507295dc7bb99df11700a667fad0..db0157bc2552831bdb84711d9630cda45406530c
December 31, 2023 11:02https://github.com/sqlc-dev/sqlc/pull/2735#event-11361425649
https://github.com/jasoncabot
jasoncabothttps://github.com/jasoncabot
Dec 31, 2023https://github.com/sqlc-dev/sqlc/pull/2735#issuecomment-1872921688
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
Jan 2, 2024 https://github.com/sqlc-dev/sqlc/pull/2735#pullrequestreview-1800833832
View reviewed changes https://github.com/sqlc-dev/sqlc/pull/2735/files/db0157bc2552831bdb84711d9630cda45406530c
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
d336e4ahttps://github.com/sqlc-dev/sqlc/commit/d336e4a1718088d0fb5bea0bf777e298fd5b8227
Jan 2, 2024https://github.com/sqlc-dev/sqlc/pull/2735#event-11372749679
https://github.com/BrewTestBot
BrewTestBothttps://github.com/BrewTestBot
Jan 4, 2024 https://github.com/sqlc-dev/sqlc/pull/2735#ref-pullrequest-2064834155
sqlc 1.25.0 Homebrew/homebrew-core#158946 https://github.com/Homebrew/homebrew-core/pull/158946
https://github.com/jasoncabot
jasoncabothttps://github.com/jasoncabot
January 4, 2024 09:35https://github.com/sqlc-dev/sqlc/pull/2735#event-11387495859
alfonsodevhttps://github.com/alfonsodev
Oct 13, 2025 https://github.com/sqlc-dev/sqlc/pull/2735#ref-commit-c8c1965
https://github.com/jasoncabot
feat: Addhttps://github.com/ExponentiaTeam/sqlc/commit/c8c19652ad372a01babaff252b02581dbe00360d
emit_sql_as_commenthttps://github.com/ExponentiaTeam/sqlc/commit/c8c19652ad372a01babaff252b02581dbe00360d
option to Go code plugin (https://github.com/ExponentiaTeam/sqlc/commit/c8c19652ad372a01babaff252b02581dbe00360d
sqlc-dev#2735https://github.com/sqlc-dev/sqlc/pull/2735
)https://github.com/ExponentiaTeam/sqlc/commit/c8c19652ad372a01babaff252b02581dbe00360d
c8c1965https://github.com/ExponentiaTeam/sqlc/commit/c8c19652ad372a01babaff252b02581dbe00360d
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F2735
https://github.com/kyleconroy
kyleconroy https://github.com/kyleconroy
https://github.com/sqlc-dev/sqlc/pull/2735/files/db0157bc2552831bdb84711d9630cda45406530c
accepted https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3Aaccepted
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/2735
https://github.com/jasoncabot
https://github.com/andrewmbenton
https://github.com/kyleconroy
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.