René's URL Explorer Experiment


Title: feat: Nullable enums by Jille · Pull Request #1582 · sqlc-dev/sqlc · GitHub

Open Graph Title: feat: Nullable enums by Jille · Pull Request #1582 · sqlc-dev/sqlc

X Title: feat: Nullable enums by Jille · Pull Request #1582 · sqlc-dev/sqlc

Description: For every enum X, generate a type NullX which is a struct with X and Valid bool. issue #1097 Remaining work: Get agreement from @kyleconroy Discuss whether to put in effort to skip generation of NullX when it's unused. Discuss whether the backwards compatibility break (because some inputs/outputs will become NullX) is a problem Test with pgx Test with database/sql postgres Test with database/sql mysql

Open Graph Description: For every enum X, generate a type NullX which is a struct with X and Valid bool. issue #1097 Remaining work: Get agreement from @kyleconroy Discuss whether to put in effort to skip generation of...

X Description: For every enum X, generate a type NullX which is a struct with X and Valid bool. issue #1097 Remaining work: Get agreement from @kyleconroy Discuss whether to put in effort to skip generation of...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9b8fb283-5f3b-7ce6-aada-c6ddb143e180
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE150:399E4B:234C751:2ECC7D2:6B01897E
html-safe-nonce3c869e18c0bd540e44ac6da78920838dc2af08c145b2840c27ccc10261e12c4d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTUwOjM5OUU0QjoyMzRDNzUxOjJFQ0M3RDI6NkIwMTg5N0UiLCJ2aXNpdG9yX2lkIjoiNzU0Mjk5MDU5MDE1MDkyNjA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac54a9f0fe937f8325b7969449883a2e28ff08ad62549f678ceca8d58390f7bfa6
hovercard-subject-tagpull_request:925639567
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/1582/files
twitter:imagehttps://avatars.githubusercontent.com/u/460628?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/460628?s=400&v=4
og:image:altFor every enum X, generate a type NullX which is a struct with X and Valid bool. issue #1097 Remaining work: Get agreement from @kyleconroy Discuss whether to put in effort to skip generation of...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/1582/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1582%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1582%2Ffiles
Sign uphttps://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/1582/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1582/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1582/files
sqlc-devhttps://github.com/sqlc-dev
sqlchttps://github.com/sqlc-dev/sqlc
Codehttps://github.com/sqlc-dev/sqlc
Issues600 (600)https://github.com/sqlc-dev/sqlc/issues
Pull requests132 (132)https://github.com/sqlc-dev/sqlc/pulls
Discussionshttps://github.com/sqlc-dev/sqlc/discussions
Actionshttps://github.com/sqlc-dev/sqlc/actions
Projectshttps://github.com/sqlc-dev/sqlc/projects
Security and qualityhttps://github.com/sqlc-dev/sqlc/security
Insightshttps://github.com/sqlc-dev/sqlc/insights
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
Jillehttps://github.com/Jille
sqlc-dev:mainhttps://github.com/sqlc-dev/sqlc/tree/main
Jille:nullable-enumshttps://github.com/Jille/sqlc/tree/nullable-enums
Conversation 4 https://github.com/sqlc-dev/sqlc/pull/1582
Commits 1 https://github.com/sqlc-dev/sqlc/pull/1582/commits
Checks 0 https://github.com/sqlc-dev/sqlc/pull/1582/checks
Files changed https://github.com/sqlc-dev/sqlc/pull/1582/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1582/files
feat: Nullable enums https://github.com/sqlc-dev/sqlc/pull/1582/files#top
Show all changes 1 commit https://github.com/sqlc-dev/sqlc/pull/1582/files
e278bcb feat: Nullable enums Jille May 2, 2022 https://github.com/sqlc-dev/sqlc/pull/1582/commits/e278bcb08dfae2fa4856e2a76030aa37caf57359
Clear filters https://github.com/sqlc-dev/sqlc/pull/1582/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1582/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1582/files
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-f520054d6db5f22b1df35e988aa7d0ea0f8482d2842d5296245cc9b9c1c986c4
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-d371073c799437bdd38132a5d685ec871315b43ce0677a1452d5c6a77d3e03fa
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-cde8eed42ca3a4f6b47c2d81d47dd0be54ff307e25980d7783d6123ec5a4e076
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-52f9b7d71f2d2e767d8c25f8ca0f63637eafbc274339f5c1f2ccf34807182a81
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-725bfed3dd836dacd08635d0364e290a53dbe22c120dde3b12ea014921bf5374
imports.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-5888848f9ffbddb7b5d76142e6226de61375df0b151360152edae46b25965fde
postgresql_type.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-0f092fe64405c1184e1bc4a30d6ffb1d5dbd2397fe90fd70590c12f15512808c
template.tmpl https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-e566da12b32f324281c5598a05b13851c551f3d7ec29fd20b0f72c67a77666e3
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-12611ad0ade10e4dda13c1e874f3296c52ccc1bf8937aef11f4e09ed19375f19
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-2126dfbc9a2cb4b9002989ffbdfd533681279b560f7fbb82b5ad5958aa84fb8c
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-8c23bcc11c86f00d8789ab15968634ea2d2704c7d03ab99e0ac61cca39b53fc3
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-c2f2e2f4e082dc0448ac9843e2bf72bdfbc8ca66e9744bbb133952ceb784fab5
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-bf63f8b445e961af5c4f8fa6e9c343838944b3e35a3ea8926bace29eea770d86
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-990d095e74274309f0a7688c64e6b2307e7269433fa655a6a0ab70de8e4434b1
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-2ee388b8da70464284e4a12c711d856cbc96d80fb75844b8fcf63325f53cdabe
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-d2ef733a952498ca2a090f6bd1d568bbfa5b4f1db7515b93ce47e856bc6528aa
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-66f09fea01c189acb1d84ae1610491d4a9c96b8b63b41d89b0a86caf0b0b743e
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-2900f2332173298340576ad0e5c3d35adec01705368dc4027bf00f2a18643922
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-7c47144b39a15b2176da28a3fb9d42afa013bd4ed20b3304839439e9122b40a2
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-9c2f6db2e036a509c2a0cf2827cb4999ff7439a962cdbce3b36e9e5003569f50
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-b73683cc3ea823f19293e067eb2925204fea1c941bb4ec62e5a68b856a5eaec2
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-d01d4306842c5f468bf79379572c2c128ed3ea0c994fc7723804848864278075
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-5870ea74cff48fcf40a97e105534ae1a5f74117369872f7b8ecfa578edfe2980
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-e79b61e4e60fb475590b2956f5107f7c3060b9a69537daf83da6e5628cccb6e6
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-17c77da2d984e7b65c113ee0b5e454aae0b5883d5b08fa64a59edc504a9aee2d
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-f11184d4314c87a3a28118130518e28c6c13aa8ba5ebe33a9b056a9e6e25f654
query.sql.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-c38e2ed68379613af0c53f5d79c8a52ec5cb5cf6c01134dce990ce087c8f06fc
models.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-8962a7dee1b3f81be1ad363ebaaf8e40b274261005f30ae9131bc34f1261fd6a
query.sql.go https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-075f7f3cbb51c6dd49f329976df0de616d2c8b50468425c666d057a1664a00f1
examples/batch/postgresql/models.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-f520054d6db5f22b1df35e988aa7d0ea0f8482d2842d5296245cc9b9c1c986c4
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/examples/batch/postgresql/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/1582/files
examples/booktest/mysql/models.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-d371073c799437bdd38132a5d685ec871315b43ce0677a1452d5c6a77d3e03fa
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/examples/booktest/mysql/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/1582/files
examples/booktest/postgresql/models.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-cde8eed42ca3a4f6b47c2d81d47dd0be54ff307e25980d7783d6123ec5a4e076
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/examples/booktest/postgresql/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/1582/files
examples/ondeck/mysql/models.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-52f9b7d71f2d2e767d8c25f8ca0f63637eafbc274339f5c1f2ccf34807182a81
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/examples/ondeck/mysql/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/1582/files
examples/ondeck/postgresql/models.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-725bfed3dd836dacd08635d0364e290a53dbe22c120dde3b12ea014921bf5374
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/examples/ondeck/postgresql/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/1582/files
internal/codegen/golang/imports.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-5888848f9ffbddb7b5d76142e6226de61375df0b151360152edae46b25965fde
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/internal/codegen/golang/imports.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1582/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-5888848f9ffbddb7b5d76142e6226de61375df0b151360152edae46b25965fde
https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-5888848f9ffbddb7b5d76142e6226de61375df0b151360152edae46b25965fde
internal/codegen/golang/postgresql_type.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-0f092fe64405c1184e1bc4a30d6ffb1d5dbd2397fe90fd70590c12f15512808c
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/internal/codegen/golang/postgresql_type.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1582/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-0f092fe64405c1184e1bc4a30d6ffb1d5dbd2397fe90fd70590c12f15512808c
https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-0f092fe64405c1184e1bc4a30d6ffb1d5dbd2397fe90fd70590c12f15512808c
internal/codegen/golang/templates/template.tmplhttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-e566da12b32f324281c5598a05b13851c551f3d7ec29fd20b0f72c67a77666e3
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/internal/codegen/golang/templates/template.tmpl
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1582/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-e566da12b32f324281c5598a05b13851c551f3d7ec29fd20b0f72c67a77666e3
https://github.com/sqlc-dev/sqlc/pull/1582/files#diff-e566da12b32f324281c5598a05b13851c551f3d7ec29fd20b0f72c67a77666e3
internal/endtoend/testdata/comment_on/postgresql/pgx/go/models.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-12611ad0ade10e4dda13c1e874f3296c52ccc1bf8937aef11f4e09ed19375f19
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/internal/endtoend/testdata/comment_on/postgresql/pgx/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/1582/files
internal/endtoend/testdata/comment_on/postgresql/stdlib/go/models.gohttps://github.com/sqlc-dev/sqlc/pull/1582/files#diff-2126dfbc9a2cb4b9002989ffbdfd533681279b560f7fbb82b5ad5958aa84fb8c
View file https://github.com/Jille/sqlc/blob/e278bcb08dfae2fa4856e2a76030aa37caf57359/internal/endtoend/testdata/comment_on/postgresql/stdlib/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/1582/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1582/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.