René's URL Explorer Experiment


Title: Define code generation interface via Protocol Buffers by kyleconroy · Pull Request #1406 · sqlc-dev/sqlc · GitHub

Open Graph Title: Define code generation interface via Protocol Buffers by kyleconroy · Pull Request #1406 · sqlc-dev/sqlc

X Title: Define code generation interface via Protocol Buffers by kyleconroy · Pull Request #1406 · sqlc-dev/sqlc

Description: Before we can land a plugin system for code generation, we need to solidify the interface and data for the code generation step. These types are defined via a new set of protocol buffers that will eventually become the plugin API. The goal of this PR is just to get code gen working with the new types. The python2 folder is temporary and will be copied over to the Python folder once we're ready.

Open Graph Description: Before we can land a plugin system for code generation, we need to solidify the interface and data for the code generation step. These types are defined via a new set of protocol buffers that will ...

X Description: Before we can land a plugin system for code generation, we need to solidify the interface and data for the code generation step. These types are defined via a new set of protocol buffers that will ...

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

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:cf9775df-be8f-6737-97c0-55ee025faf04
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB074:21DFED:7D2BE:9FA13:6B01EB4B
html-safe-nonce69a441634f59dedb2f4e6821935a10e172102f94e91d74458466958de64dde66
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDc0OjIxREZFRDo3RDJCRTo5RkExMzo2QjAxRUI0QiIsInZpc2l0b3JfaWQiOiI2NTAwMjE3NjgwNDAwODcwMjE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6046ea9516b5aa456c8dfa0151070547eddb35cd591c47b481cdc3a4ec023274
hovercard-subject-tagpull_request:835780108
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/1406/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:altBefore we can land a plugin system for code generation, we need to solidify the interface and data for the code generation step. These types are defined via a new set of protocol buffers that will ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/1406/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1406%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%2F1406%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/1406/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1406/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1406/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/codegen-proto-interfacehttps://github.com/sqlc-dev/sqlc/tree/kyle/codegen-proto-interface
Conversation 0 https://github.com/sqlc-dev/sqlc/pull/1406
Commits 11 https://github.com/sqlc-dev/sqlc/pull/1406/commits
Checks 0 https://github.com/sqlc-dev/sqlc/pull/1406/checks
Files changed https://github.com/sqlc-dev/sqlc/pull/1406/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1406/files
Define code generation interface via Protocol Buffers https://github.com/sqlc-dev/sqlc/pull/1406/files#top
Show all changes 11 commits https://github.com/sqlc-dev/sqlc/pull/1406/files
bf2afc7 First pass at the plugin proto files kyleconroy Jan 20, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/bf2afc7842ef83c5218248ea3a69f580f78c2df7
ee3f21f Make fmt kyleconroy Jan 22, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/ee3f21f2328b9506ed522224eca5b6c9f44116f3
3825d3a More progress kyleconroy Jan 22, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/3825d3a2a88e18d3e29a6210c2904193fdc8d38a
c84a17f First pass at finished shim kyleconroy Jan 22, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/c84a17fc6a52dfda1341c154389d21b6793449b5
c7fdf1d Not building kyleconroy Jan 22, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/c7fdf1d7a5bc19807a834e9d6e17536085eae608
cf86d86 Try some more things kyleconroy Jan 31, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/cf86d864a203a39b6992af54503e8b949be650cf
cc849aa Python tests are passing kyleconroy Feb 1, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/cc849aa894f6dd5ef60578bf77412e8a06c6c361
d3c90cc Move Python code to old home kyleconroy Feb 1, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/d3c90ccbbd663496d529d087eb8b8afb5bbf7647
3764929 Implement pattern matching kyleconroy Feb 1, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/376492945fd70273bfbe6e69cd54423fdba26b98
f2922a2 Simplify imports kyleconroy Feb 1, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/f2922a2a61e26cf7affe3cc3241f8b220ecbc527
64c2e4d Move pattern matching to another package kyleconroy Feb 1, 2022 https://github.com/sqlc-dev/sqlc/pull/1406/commits/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000
Clear filters https://github.com/sqlc-dev/sqlc/pull/1406/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1406/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1406/files
Makefile https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
db_test.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-8766284a40418bfc9b2526abcb3e56225f7b4e0ffb37f132e2d39847f8267d2e
db_test.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-050e61e48a036616d3f967f9425536483deeac939462fcd0be14be26c81ee3e0
db_test.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-bd8b74d680779aa6dba92d5ac7c437044b72363df54f13470d31f506b5e02a84
db_test.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-df57999696d6fb80de247175f1c74afdd7918a9b6373b93e260414f846937c7a
db_test.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-af2d17f1f04de3ce6f56f80efaa504a0ddb57d0ae5ec8e87e31a4244886d5344
generate.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3
shim.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-1fe57c4219899679429d16ce3afd38f0e5519b1df6e6004594a68496498de77e
gen.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-4a1cf90ba2481aa2ceb7d4fa05de163b7af23afe883d14d85dac6f7bd031fe67
imports.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-ec691f29985038d8622fe3e038f5ef9ea3dab8bde745df1a7a201d1e5a35b3e5
postgresql_type.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-5962cb308fe6790725623571e3c275c44fef79e8f2f84d7e49bcc3fc55f29ece
config.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-54c7c1af5fa8d5db4dc49f0e8e80e93ba2b1183ba4d5c9e2e5729e6deae6a3cd
parse_windows.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-ef0e818259be2ca5ba6bf7484c60447ffef9789ba92b288b2d3236855fdfd512
utils.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-974f825ebbdd20d36d451d46a70d3ac0f1133c738600adbebb2adb8e2b9c0761
match.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-d816f2b1e03705b0d3648afe5e8cbf30c1b6800c34c711ae23068423ec55f4c5
codegen.pb.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-989ed321aa608b36a4c349345f3f959eae2b51c37d1f20099f1a0b6222dba995
ast.pb.go https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-bb8dc372545f5d34af16cc9d6bda195a3fb9f79bce06e2e5c6ea6cb8ae53276c
codegen.proto https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-7bd827b9e5f70a79f2e832b726d22c7fd81735b254e86fa0e43147b46ae7b0c3
ast.proto https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-9bc898090c133f03a9ce8454950378b88ea4d638162a8504a7ba0e77b09ec528
Makefilehttps://github.com/sqlc-dev/sqlc/pull/1406/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
View file https://github.com/sqlc-dev/sqlc/blob/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000/Makefile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1406/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
examples/authors/mysql/db_test.gohttps://github.com/sqlc-dev/sqlc/pull/1406/files#diff-8766284a40418bfc9b2526abcb3e56225f7b4e0ffb37f132e2d39847f8267d2e
View file https://github.com/sqlc-dev/sqlc/blob/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000/examples/authors/mysql/db_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1406/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-8766284a40418bfc9b2526abcb3e56225f7b4e0ffb37f132e2d39847f8267d2e
examples/authors/postgresql/db_test.gohttps://github.com/sqlc-dev/sqlc/pull/1406/files#diff-050e61e48a036616d3f967f9425536483deeac939462fcd0be14be26c81ee3e0
View file https://github.com/sqlc-dev/sqlc/blob/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000/examples/authors/postgresql/db_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1406/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-050e61e48a036616d3f967f9425536483deeac939462fcd0be14be26c81ee3e0
examples/booktest/postgresql/db_test.gohttps://github.com/sqlc-dev/sqlc/pull/1406/files#diff-bd8b74d680779aa6dba92d5ac7c437044b72363df54f13470d31f506b5e02a84
View file https://github.com/sqlc-dev/sqlc/blob/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000/examples/booktest/postgresql/db_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1406/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-bd8b74d680779aa6dba92d5ac7c437044b72363df54f13470d31f506b5e02a84
examples/ondeck/mysql/db_test.gohttps://github.com/sqlc-dev/sqlc/pull/1406/files#diff-df57999696d6fb80de247175f1c74afdd7918a9b6373b93e260414f846937c7a
View file https://github.com/sqlc-dev/sqlc/blob/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000/examples/ondeck/mysql/db_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1406/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-df57999696d6fb80de247175f1c74afdd7918a9b6373b93e260414f846937c7a
examples/ondeck/postgresql/db_test.gohttps://github.com/sqlc-dev/sqlc/pull/1406/files#diff-af2d17f1f04de3ce6f56f80efaa504a0ddb57d0ae5ec8e87e31a4244886d5344
View file https://github.com/sqlc-dev/sqlc/blob/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000/examples/ondeck/postgresql/db_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1406/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-af2d17f1f04de3ce6f56f80efaa504a0ddb57d0ae5ec8e87e31a4244886d5344
internal/cmd/generate.gohttps://github.com/sqlc-dev/sqlc/pull/1406/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3
View file https://github.com/sqlc-dev/sqlc/blob/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000/internal/cmd/generate.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1406/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3
https://github.com/sqlc-dev/sqlc/pull/1406/files#diff-2ccbd26a302b29c524a67aa623a57582264d19b24a40646065be500f2e15bbd3
internal/cmd/shim.gohttps://github.com/sqlc-dev/sqlc/pull/1406/files#diff-1fe57c4219899679429d16ce3afd38f0e5519b1df6e6004594a68496498de77e
View file https://github.com/sqlc-dev/sqlc/blob/64c2e4de226b0fcfa30d153c3f35e29ea2ff5000/internal/cmd/shim.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1406/{{ revealButtonHref }}
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1406/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.