René's URL Explorer Experiment


Title: feat: Add JSON "codegen" output by kyleconroy · Pull Request #1565 · sqlc-dev/sqlc · GitHub

Open Graph Title: feat: Add JSON "codegen" output by kyleconroy · Pull Request #1565 · sqlc-dev/sqlc

X Title: feat: Add JSON "codegen" output by kyleconroy · Pull Request #1565 · sqlc-dev/sqlc

Description: 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. { "version": "2", "sql": [ { "schema": "postgresql/schema.sql", "queries": "postgresql/query.sql", "engine": "postgresql", "gen": { "json": { "out": "gen", "indent": " " } } } ] } sqlc generate --experimental cat gen/codegen_request.json | gen-go-code cat gen/codegen_request.json | gen-ts-code cat gen/codegen_request.json | wasm-runner ./python-gen.wasm Add documentation for the JSON plugin

Open Graph Description: 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...

X Description: 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 op...

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

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:37e833be-7412-6ea3-803f-022d9c0b215b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE26:2F543F:749A33:9A986E:6B01A9A6
html-safe-nonce983534679d879d2a499193ee7dff3a68437e512b2117881bfc0ba2c5bce6fa60
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTI2OjJGNTQzRjo3NDlBMzM6OUE5ODZFOjZCMDFBOUE2IiwidmlzaXRvcl9pZCI6IjgyMjA1ODQ2ODkyODc2NzAxODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacacd0500467118f7b843f3d64d0b177aecc6370aacfc3f643472414b0b71eeb4a
hovercard-subject-tagpull_request:917040397
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/1565/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:altInspired 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_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/1565/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1565%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%2F1565%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/1565/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1565/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1565/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
kyleconroyhttps://github.com/kyleconroy
mainhttps://github.com/sqlc-dev/sqlc/tree/main
kyle/json-codegen-outputhttps://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 pagehttps://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 pagehttps://github.com/sqlc-dev/sqlc/pull/1565/files
Please reload this pagehttps://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.gohttps://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.gohttps://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.gohttps://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.gohttps://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.gohttps://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.gohttps://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 pagehttps://github.com/sqlc-dev/sqlc/pull/1565/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.