René's URL Explorer Experiment


Title: feat: honor omit_unused_structs (#74) by aimestereo · Pull Request #105 · sqlc-dev/sqlc-gen-python · GitHub

Open Graph Title: feat: honor omit_unused_structs (#74) by aimestereo · Pull Request #105 · sqlc-dev/sqlc-gen-python

X Title: feat: honor omit_unused_structs (#74) by aimestereo · Pull Request #105 · sqlc-dev/sqlc-gen-python

Description: Hello, I'm sharing what I have AI generated for internal use. Fixes #74 The Python plugin ignored omit_unused_structs because Config had no field for it. This ports Go's filterUnusedStructs so unused table and enum types are omitted from models.py. Add OmitUnusedStructs to plugin config Filter enums/models after queries are built (same order as Go codegen) Python keep-set: bare name + models.Name (no Go NullXxx wrappers) Endtoend fixture mirroring sqlc's omit_unused_structs testdata README option note Query Params/Row structs stay in query.py (Emit: true). Made with Cursor

Open Graph Description: Hello, I'm sharing what I have AI generated for internal use. Fixes #74 The Python plugin ignored omit_unused_structs because Config had no field for it. This ports Go's filterUnusedStructs...

X Description: Hello, I'm sharing what I have AI generated for internal use. Fixes #74 The Python plugin ignored omit_unused_structs because Config had no field for it. This ports Go's filterUnuse...

Opengraph URL: https://github.com/sqlc-dev/sqlc-gen-python/pull/105

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:ebfc2631-f7c5-90cb-d2ea-788bded5e09b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEC92:1D86C4:40FC22C:527AB8E:6B021F3E
html-safe-noncead6626b966cecc7e7c98a4e3c6552a799f4edc71c20eb6fdcb42723626ea7216
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzkyOjFEODZDNDo0MEZDMjJDOjUyN0FCOEU6NkIwMjFGM0UiLCJ2aXNpdG9yX2lkIjoiMjYwNDg1MjMzNzczNDQ1OTE5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7c71e88081462065d1aa0872fa3c9d3915b8d393bacaf7df45224383e3d9f6b7
hovercard-subject-tagpull_request:4549373387
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-gen-python/pull/105/files
twitter:imagehttps://avatars.githubusercontent.com/u/2869535?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2869535?s=400&v=4
og:image:altHello, I'm sharing what I have AI generated for internal use. Fixes #74 The Python plugin ignored omit_unused_structs because Config had no field for it. This ports Go's filterUnusedStructs...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/sqlc-dev/sqlc-gen-python git https://github.com/sqlc-dev/sqlc-gen-python.git
octolytics-dimension-user_id136738596
octolytics-dimension-user_loginsqlc-dev
octolytics-dimension-repository_id548530161
octolytics-dimension-repository_nwosqlc-dev/sqlc-gen-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id548530161
octolytics-dimension-repository_network_root_nwosqlc-dev/sqlc-gen-python
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-gen-python/pull/105/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc-gen-python%2Fpull%2F105%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-gen-python%2Fpull%2F105%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-gen-python
Reloadhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
Reloadhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
Reloadhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
sqlc-devhttps://github.com/sqlc-dev
sqlc-gen-pythonhttps://github.com/sqlc-dev/sqlc-gen-python
Codehttps://github.com/sqlc-dev/sqlc-gen-python
Issues36 (36)https://github.com/sqlc-dev/sqlc-gen-python/issues
Pull requests18 (18)https://github.com/sqlc-dev/sqlc-gen-python/pulls
Actionshttps://github.com/sqlc-dev/sqlc-gen-python/actions
Projectshttps://github.com/sqlc-dev/sqlc-gen-python/projects
Security and qualityhttps://github.com/sqlc-dev/sqlc-gen-python/security
Insightshttps://github.com/sqlc-dev/sqlc-gen-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fsqlc-dev%2Fsqlc-gen-python%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-gen-python%2Fissues%2Fnew%2Fchoose
aimestereohttps://github.com/aimestereo
sqlc-dev:mainhttps://github.com/sqlc-dev/sqlc-gen-python/tree/main
ablt-ai:feat/omit-unused-structs-upstreamhttps://github.com/ablt-ai/sqlc-gen-python/tree/feat/omit-unused-structs-upstream
Conversation 0 https://github.com/sqlc-dev/sqlc-gen-python/pull/105
Commits 1 https://github.com/sqlc-dev/sqlc-gen-python/pull/105/commits
Checks 0 https://github.com/sqlc-dev/sqlc-gen-python/pull/105/checks
Files changed https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
feat: honor omit_unused_structs (#74) https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#top
Show all changes 1 commit https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
108f73d feat: honor omit_unused_structs (#74) aimestereo Sep 16, 2026 https://github.com/sqlc-dev/sqlc-gen-python/pull/105/commits/108f73dda0b7e2cc98524047589bc7a33c34a21f
Clear filters https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files
README.md https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
config.go https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-0cb36811c5ab07631529c9e82697352bb620d50cf5f88e3e5503bb3e85441caa
models.py https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-c963adebbd4d03b5d927920065e23500ba5f02455a308ce04618f3f3504677de
query.py https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-370ac65a4bf5646974e608b80003802af5ee724f5833473fef3523bbcfe05d37
query.sql https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-edd1e5fc2ac743101f83edc80827e7e0b1b7394315965a19ec837b79fe56166c
schema.sql https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-c5dc9c64eee87c0d7ec20fb4f9ce0ca2ad080d3b8fab50770fef131b6bbe6b59
sqlc.yaml https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-e86391692c223083092f03a7e1f034a603f8cd3bc1e21b87f62d3ea4518f2ab8
gen.go https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-8e745f10e32a54e4d9b0479fbd670007f1a9658bc9518177d5261b27ba46ba1c
README.mdhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/sqlc-dev/sqlc-gen-python/blob/108f73dda0b7e2cc98524047589bc7a33c34a21f/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
internal/config.gohttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-0cb36811c5ab07631529c9e82697352bb620d50cf5f88e3e5503bb3e85441caa
View file https://github.com/sqlc-dev/sqlc-gen-python/blob/108f73dda0b7e2cc98524047589bc7a33c34a21f/internal/config.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-0cb36811c5ab07631529c9e82697352bb620d50cf5f88e3e5503bb3e85441caa
internal/endtoend/testdata/omit_unused_structs/db/models.pyhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-c963adebbd4d03b5d927920065e23500ba5f02455a308ce04618f3f3504677de
View file https://github.com/sqlc-dev/sqlc-gen-python/blob/108f73dda0b7e2cc98524047589bc7a33c34a21f/internal/endtoend/testdata/omit_unused_structs/db/models.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/{{ revealButtonHref }}
internal/endtoend/testdata/omit_unused_structs/db/query.pyhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-370ac65a4bf5646974e608b80003802af5ee724f5833473fef3523bbcfe05d37
View file https://github.com/sqlc-dev/sqlc-gen-python/blob/108f73dda0b7e2cc98524047589bc7a33c34a21f/internal/endtoend/testdata/omit_unused_structs/db/query.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/{{ revealButtonHref }}
internal/endtoend/testdata/omit_unused_structs/query.sqlhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-edd1e5fc2ac743101f83edc80827e7e0b1b7394315965a19ec837b79fe56166c
View file https://github.com/sqlc-dev/sqlc-gen-python/blob/108f73dda0b7e2cc98524047589bc7a33c34a21f/internal/endtoend/testdata/omit_unused_structs/query.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/{{ revealButtonHref }}
internal/endtoend/testdata/omit_unused_structs/schema.sqlhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-c5dc9c64eee87c0d7ec20fb4f9ce0ca2ad080d3b8fab50770fef131b6bbe6b59
View file https://github.com/sqlc-dev/sqlc-gen-python/blob/108f73dda0b7e2cc98524047589bc7a33c34a21f/internal/endtoend/testdata/omit_unused_structs/schema.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/{{ revealButtonHref }}
internal/endtoend/testdata/omit_unused_structs/sqlc.yamlhttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/files#diff-e86391692c223083092f03a7e1f034a603f8cd3bc1e21b87f62d3ea4518f2ab8
View file https://github.com/sqlc-dev/sqlc-gen-python/blob/108f73dda0b7e2cc98524047589bc7a33c34a21f/internal/endtoend/testdata/omit_unused_structs/sqlc.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc-gen-python/pull/105/{{ revealButtonHref }}
Please reload this pagehttps://github.com/sqlc-dev/sqlc-gen-python/pull/105/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.