| 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:37e833be-7412-6ea3-803f-022d9c0b215b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DE26:2F543F:749A33:9A986E:6B01A9A6 |
| html-safe-nonce | 983534679d879d2a499193ee7dff3a68437e512b2117881bfc0ba2c5bce6fa60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTI2OjJGNTQzRjo3NDlBMzM6OUE5ODZFOjZCMDFBOUE2IiwidmlzaXRvcl9pZCI6IjgyMjA1ODQ2ODkyODc2NzAxODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | acd0500467118f7b843f3d64d0b177aecc6370aacfc3f643472414b0b71eeb4a |
| hovercard-subject-tag | pull_request:917040397 |
| 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/1565/files |
| twitter:image | https://avatars.githubusercontent.com/u/34893?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/34893?s=400&v=4 |
| og:image:alt | Inspired by @skabbes here #1470 (comment)
Add a json option to the codegen output. You'll need to use version 2 of the configuration file. You can configure the output path using the out option... |
| 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/1565/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1565%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%2F1565%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/1565/files |
| Reload | https://github.com/sqlc-dev/sqlc/pull/1565/files |
| Reload | https://github.com/sqlc-dev/sqlc/pull/1565/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 |
| kyleconroy | https://github.com/kyleconroy |
| main | https://github.com/sqlc-dev/sqlc/tree/main |
| kyle/json-codegen-output | https://github.com/sqlc-dev/sqlc/tree/kyle/json-codegen-output |
|
Conversation
2
| https://github.com/sqlc-dev/sqlc/pull/1565 |
|
Commits
4
| https://github.com/sqlc-dev/sqlc/pull/1565/commits |
|
Checks
0
| https://github.com/sqlc-dev/sqlc/pull/1565/checks |
|
Files changed
| https://github.com/sqlc-dev/sqlc/pull/1565/files |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1565/files |
|
feat: Add JSON "codegen" output
| https://github.com/sqlc-dev/sqlc/pull/1565/files#top |
|
Show all changes
4 commits
| https://github.com/sqlc-dev/sqlc/pull/1565/files |
|
9016fea
feat: Add JSON codegen output
kyleconroy Apr 22, 2022
| https://github.com/sqlc-dev/sqlc/pull/1565/commits/9016fea4311b5ef49088db6279b4cbfb9dd6b10f |
|
69800e6
Tests are failing; random spaces show up
kyleconroy Apr 22, 2022
| https://github.com/sqlc-dev/sqlc/pull/1565/commits/69800e6645a15733b23903175a9fcc79915cc03d |
|
94bf3e7
fix: Flakey test results
kyleconroy Apr 22, 2022
| https://github.com/sqlc-dev/sqlc/pull/1565/commits/94bf3e7ff5750cf81ff4ec3fc8d036ab0ed77cb6 |
|
4193f12
Remove debug line
kyleconroy Apr 23, 2022
| https://github.com/sqlc-dev/sqlc/pull/1565/commits/4193f120c74387ef0d91e1f48eb14385ed52d2e0 |
|
Clear filters
| https://github.com/sqlc-dev/sqlc/pull/1565/files |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1565/files |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1565/files |
|
generate.go
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3 |
|
shim.go
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-1fe57c4219899679429d16ce3afd38f0e5519b1df6e6004594a68496498de77e |
|
gen.go
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-abbcd5aee47e3aa3a2532e5233f7551a4fc1aceb8bfa5dec3cea3996890f6b5d |
|
config.go
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
|
v_two.go
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-5cbb844a4791fafa0b189ed613ce169fd9157f636b7767f35555c62d91206bd4 |
|
endtoend_test.go
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e |
|
codegen_request.json
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-fb24864c51f51e2609449f5b8d352e1ec2b298ca72d0f49b428315b97464f8f2 |
|
query.sql
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-a4f0334890a69ac2ec2215eb8a7544932ed3fbc4fd520c6cf4e205c81b6066bf |
|
schema.sql
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-00be403479e211228d024bf1376a581c11317a4e94d3e2647beb6b3364907952 |
|
sqlc.json
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-d39a2cc8f4e44ebf8f4e22094d9105b2fe284c32ba18dd281acdc98e98207635 |
|
codegen.pb.go
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-989ed321aa608b36a4c349345f3f959eae2b51c37d1f20099f1a0b6222dba995 |
|
codegen_vtproto.pb.go
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-36630ad8e458c172d3e42fd39d5bdbc9f7b068ba16f3a9415bd362bdc93d3593 |
|
codegen.proto
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-7bd827b9e5f70a79f2e832b726d22c7fd81735b254e86fa0e43147b46ae7b0c3 |
| internal/cmd/generate.go | https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3 |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/4193f120c74387ef0d91e1f48eb14385ed52d2e0/internal/cmd/generate.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/1565/{{ revealButtonHref }} |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3 |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3 |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3 |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3 |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3 |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3 |
| internal/cmd/shim.go | https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-1fe57c4219899679429d16ce3afd38f0e5519b1df6e6004594a68496498de77e |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/4193f120c74387ef0d91e1f48eb14385ed52d2e0/internal/cmd/shim.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/1565/{{ revealButtonHref }} |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-1fe57c4219899679429d16ce3afd38f0e5519b1df6e6004594a68496498de77e |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-1fe57c4219899679429d16ce3afd38f0e5519b1df6e6004594a68496498de77e |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-1fe57c4219899679429d16ce3afd38f0e5519b1df6e6004594a68496498de77e |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-1fe57c4219899679429d16ce3afd38f0e5519b1df6e6004594a68496498de77e |
| internal/codegen/json/gen.go | https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-abbcd5aee47e3aa3a2532e5233f7551a4fc1aceb8bfa5dec3cea3996890f6b5d |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/4193f120c74387ef0d91e1f48eb14385ed52d2e0/internal/codegen/json/gen.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/1565/{{ revealButtonHref }} |
| internal/config/config.go | https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/4193f120c74387ef0d91e1f48eb14385ed52d2e0/internal/config/config.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/1565/{{ revealButtonHref }} |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd |
| internal/config/v_two.go | https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-5cbb844a4791fafa0b189ed613ce169fd9157f636b7767f35555c62d91206bd4 |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/4193f120c74387ef0d91e1f48eb14385ed52d2e0/internal/config/v_two.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/1565/{{ revealButtonHref }} |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-5cbb844a4791fafa0b189ed613ce169fd9157f636b7767f35555c62d91206bd4 |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-5cbb844a4791fafa0b189ed613ce169fd9157f636b7767f35555c62d91206bd4 |
| internal/endtoend/endtoend_test.go | https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/4193f120c74387ef0d91e1f48eb14385ed52d2e0/internal/endtoend/endtoend_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/1565/{{ revealButtonHref }} |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e |
|
| https://github.com/sqlc-dev/sqlc/pull/1565/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/1565/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 |