René's URL Explorer Experiment


Title: Python codegen support by robholt · Pull Request #923 · sqlc-dev/sqlc · GitHub

Open Graph Title: Python codegen support by robholt · Pull Request #923 · sqlc-dev/sqlc

X Title: Python codegen support by robholt · Pull Request #923 · sqlc-dev/sqlc

Description: Generate type-safe code from SQL. Contribute to sqlc-dev/sqlc development by creating an account on GitHub.

Open Graph Description: I've come to really like using sqlc for Go projects and wanted something similar for Python. There's a few existing Python libraries that load queries from sql files, but they lack the type...

X Description: I've come to really like using sqlc for Go projects and wanted something similar for Python. There's a few existing Python libraries that load queries from sql files, but they lack ...

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

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:28ed4ee1-4d8e-49aa-2a55-d288b897033f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C1A:B53AF:265B523:3314F9E:6B01A6E5
html-safe-nonce84852d004cc6e08cb0ca45993dd54ee8595bea7601515cb8cdd7e3dabdf50c2b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzFBOkI1M0FGOjI2NUI1MjM6MzMxNEY5RTo2QjAxQTZFNSIsInZpc2l0b3JfaWQiOiI2MjYwOTMzNzc4MDUxNTQwNzA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc985882eee3b17b879c6958d843f6f8c51c20ebdd5e0bcba11ec1ce79a38ace3
hovercard-subject-tagpull_request:584277513
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sqlc-dev/sqlc/923/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/74fbd9789b3fff08dbf337b7ec5230c041e3a7b6ddcb5eafb995632138327d9b/sqlc-dev/sqlc/pull/923
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/74fbd9789b3fff08dbf337b7ec5230c041e3a7b6ddcb5eafb995632138327d9b/sqlc-dev/sqlc/pull/923
og:image:altI've come to really like using sqlc for Go projects and wanted something similar for Python. There's a few existing Python libraries that load queries from sql files, but they lack the type...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerobholt
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
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
disable-turbofalse
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
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/923#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F923
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%2F923
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=sqlc-dev%2Fsqlc
Reloadhttps://github.com/sqlc-dev/sqlc/pull/923
Reloadhttps://github.com/sqlc-dev/sqlc/pull/923
Reloadhttps://github.com/sqlc-dev/sqlc/pull/923
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
https://github.com/sqlc-dev/sqlc
kyleconroyhttps://github.com/kyleconroy
sqlc-dev:masterhttps://github.com/sqlc-dev/sqlc/tree/master
robholt:python-supporthttps://github.com/robholt/sqlc/tree/python-support
Conversationhttps://github.com/sqlc-dev/sqlc/pull/923
Commits2 (2)https://github.com/sqlc-dev/sqlc/pull/923/commits
Checkshttps://github.com/sqlc-dev/sqlc/pull/923/checks
Files changedhttps://github.com/sqlc-dev/sqlc/pull/923/files
Python codegen supporthttps://github.com/sqlc-dev/sqlc/pull/923#top
kyleconroyhttps://github.com/kyleconroy
sqlc-dev:masterhttps://github.com/sqlc-dev/sqlc/tree/master
robholt:python-supporthttps://github.com/robholt/sqlc/tree/python-support
https://github.com/robholt
robholthttps://github.com/robholt
Mar 3, 2021https://github.com/sqlc-dev/sqlc/pull/923#issue-821496876
sqlc-python-runtimehttps://github.com/robholt/sqlc-python-runtime
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
March 3, 2021 13:50https://github.com/sqlc-dev/sqlc/pull/923#commits-pushed-8956e2a
Initial python codegen supporthttps://github.com/sqlc-dev/sqlc/pull/923/commits/8956e2aef9a46337e21935e8dd787348bdf58e7d
8956e2ahttps://github.com/sqlc-dev/sqlc/pull/923/commits/8956e2aef9a46337e21935e8dd787348bdf58e7d
Add python tests CI jobhttps://github.com/sqlc-dev/sqlc/pull/923/commits/0a382c3cb9a634e9f4929715849e98261533854d
0a382c3https://github.com/sqlc-dev/sqlc/pull/923/commits/0a382c3cb9a634e9f4929715849e98261533854d
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#issuecomment-790257695
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
Mar 4, 2021 https://github.com/sqlc-dev/sqlc/pull/923#pullrequestreview-603668632
View reviewed changes https://github.com/sqlc-dev/sqlc/pull/923/files/0a382c3cb9a634e9f4929715849e98261533854d
kyleconroyhttps://github.com/kyleconroy
https://github.com/sqlc-dev/sqlc/pull/923#pullrequestreview-603668632
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
corehttps://docs.sqlalchemy.org/en/14/core/future.html
thishttps://github.com/grpc/grpc/blob/v1.35.0/examples/python/route_guide/route_guide_server.py#L58
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
examples/python/src/authors/models.pyhttps://github.com/sqlc-dev/sqlc/pull/923/files/0a382c3cb9a634e9f4929715849e98261533854d#diff-ee5ac580ad63bf714e44b9be5731416a492cf541f81038ad93aa944ad974a4c4
kyleconroyhttps://github.com/kyleconroy
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#discussion_r587037314
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
robholthttps://github.com/robholt
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#discussion_r587555718
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
examples/python/src/authors/query.pyhttps://github.com/sqlc-dev/sqlc/pull/923/files/0a382c3cb9a634e9f4929715849e98261533854d#diff-c89f8979af02e775ccddfaba91d614eddb3bab71498afba34cc43d6464cffad9
kyleconroyhttps://github.com/kyleconroy
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#discussion_r587039485
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
robholthttps://github.com/robholt
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#discussion_r587561113
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
examples/python/src/authors/query.pyhttps://github.com/sqlc-dev/sqlc/pull/923/files/0a382c3cb9a634e9f4929715849e98261533854d#diff-c89f8979af02e775ccddfaba91d614eddb3bab71498afba34cc43d6464cffad9
kyleconroyhttps://github.com/kyleconroy
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#discussion_r587040318
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
robholthttps://github.com/robholt
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#discussion_r587564948
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
examples/python/src/booktest/models.pyhttps://github.com/sqlc-dev/sqlc/pull/923/files/0a382c3cb9a634e9f4929715849e98261533854d#diff-96909b321988c2a971e29eaa178d76f6c13550c628fc9238525934947d95c7bf
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
https://github.com/robholt
robholthttps://github.com/robholt
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#issuecomment-790691636
FastAPIhttps://github.com/tiangolo/fastapi
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#issuecomment-790742515
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
Mar 4, 2021 https://github.com/sqlc-dev/sqlc/pull/923#pullrequestreview-604309341
View reviewed changes https://github.com/sqlc-dev/sqlc/pull/923/files/0a382c3cb9a634e9f4929715849e98261533854d
https://github.com/robholt
robholthttps://github.com/robholt
Mar 4, 2021https://github.com/sqlc-dev/sqlc/pull/923#issuecomment-790770444
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
3f131b7https://github.com/sqlc-dev/sqlc/commit/3f131b796910e0bb026b3ca38497b968c31a20e7
Mar 5, 2021https://github.com/sqlc-dev/sqlc/pull/923#event-4411678280
https://github.com/stephen
stephenhttps://github.com/stephen
Mar 1, 2022 https://github.com/sqlc-dev/sqlc/pull/923#ref-pullrequest-1154808538
Refactor go codegen to plugin types #1460 https://github.com/sqlc-dev/sqlc/pull/1460
https://github.com/danicc097
danicc097https://github.com/danicc097
Apr 10, 2022 https://github.com/sqlc-dev/sqlc/pull/923#ref-pullrequest-1198984125
Pydantic models config field #1538 https://github.com/sqlc-dev/sqlc/pull/1538
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F923
https://github.com/kyleconroy
kyleconroy https://github.com/kyleconroy
https://github.com/sqlc-dev/sqlc/pull/923/files/0a382c3cb9a634e9f4929715849e98261533854d
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/923
https://github.com/robholt
https://github.com/kyleconroy
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.