| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9b8fb283-5f3b-7ce6-aada-c6ddb143e180 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E150:399E4B:234C751:2ECC7D2:6B01897E |
| html-safe-nonce | 3c869e18c0bd540e44ac6da78920838dc2af08c145b2840c27ccc10261e12c4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTUwOjM5OUU0QjoyMzRDNzUxOjJFQ0M3RDI6NkIwMTg5N0UiLCJ2aXNpdG9yX2lkIjoiNzU0Mjk5MDU5MDE1MDkyNjA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 54a9f0fe937f8325b7969449883a2e28ff08ad62549f678ceca8d58390f7bfa6 |
| hovercard-subject-tag | pull_request:925639567 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/1582/files |
| twitter:image | https://avatars.githubusercontent.com/u/460628?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/460628?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/sqlc-dev/sqlc/pull/1582/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1582%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| 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 |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | 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 |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1582%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 |
| Reload | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| Reload | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| Reload | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| sqlc-dev | https://github.com/sqlc-dev |
| sqlc | https://github.com/sqlc-dev/sqlc |
| Code | https://github.com/sqlc-dev/sqlc |
| Issues600 (600) | https://github.com/sqlc-dev/sqlc/issues |
| Pull requests132 (132) | 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/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose |
| Jille | https://github.com/Jille |
| sqlc-dev:main | https://github.com/sqlc-dev/sqlc/tree/main |
| Jille:nullable-enums | https://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 page | https://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 page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| Please reload this page | https://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.go | https://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 GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| examples/booktest/mysql/models.go | https://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 GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| examples/booktest/postgresql/models.go | https://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 GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| examples/ondeck/mysql/models.go | https://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 GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| examples/ondeck/postgresql/models.go | https://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 GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| internal/codegen/golang/imports.go | https://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.go | https://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.tmpl | https://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.go | https://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 GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| internal/endtoend/testdata/comment_on/postgresql/stdlib/go/models.go | https://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 GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1582/files |
|
| 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 |