René's URL Explorer Experiment


Title: Add kwargs to ForeignKey definitions by farzadsbakhtiar · Pull Request #610 · fastapi/sqlmodel · GitHub

Open Graph Title: Add kwargs to ForeignKey definitions by farzadsbakhtiar · Pull Request #610 · fastapi/sqlmodel

X Title: Add kwargs to ForeignKey definitions by farzadsbakhtiar · Pull Request #610 · fastapi/sqlmodel

Description: SQL databases in Python, designed for simplicity, compatibility, and robustness. - Add kwargs to ForeignKey definitions by farzadsbakhtiar · Pull Request #610 · fastapi/sqlmodel

Open Graph Description: ForeignKey definitions in SqlAlchemy accept kwargs such as onupdate and ondelete that determine the behaviour of the foreign key at the DB level. This PR adds the option to provide kwargs to the Fo...

X Description: ForeignKey definitions in SqlAlchemy accept kwargs such as onupdate and ondelete that determine the behaviour of the foreign key at the DB level. This PR adds the option to provide kwargs to the Fo...

Opengraph URL: https://github.com/fastapi/sqlmodel/pull/610

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:100a5403-b055-d4d2-2899-7916547a57e1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id87DC:7A2A7:50A67:6E9EF:6AFE2065
html-safe-nonced2aff972d7d38833db353fa6fc49b8a9036a0cfc3806925ac6560bf98c85d90f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0RDOjdBMkE3OjUwQTY3OjZFOUVGOjZBRkUyMDY1IiwidmlzaXRvcl9pZCI6IjQ3NDg1NjgyOTg2ODgyMjUzODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac46dc357bfe5b71542bbdeb88864a424ad8efe2d28c22f6d2440192c261ff3996
hovercard-subject-tagpull_request:1400680652
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/fastapi/sqlmodel/610/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3cc512813cc336449d54aebeaaa55804f2fd2775a33e7fd2fb12b7d7480c788c/fastapi/sqlmodel/pull/610
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3cc512813cc336449d54aebeaaa55804f2fd2775a33e7fd2fb12b7d7480c788c/fastapi/sqlmodel/pull/610
og:image:altForeignKey definitions in SqlAlchemy accept kwargs such as onupdate and ondelete that determine the behaviour of the foreign key at the DB level. This PR adds the option to provide kwargs to the Fo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefarzadsbakhtiar
hostnamegithub.com
expected-hostnamegithub.com
Nonee973f9ec3625f3faad8cac5c2d11a214b7ffe45f3cc563b828459b290ecaeed3
turbo-cache-controlno-cache
go-importgithub.com/fastapi/sqlmodel git https://github.com/fastapi/sqlmodel.git
octolytics-dimension-user_id156354296
octolytics-dimension-user_loginfastapi
octolytics-dimension-repository_id399495186
octolytics-dimension-repository_nwofastapi/sqlmodel
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id399495186
octolytics-dimension-repository_network_root_nwofastapi/sqlmodel
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
release1f92c367595b9190e0be293896078033886b1913
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/fastapi/sqlmodel/pull/610#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F610
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%2Ffastapi%2Fsqlmodel%2Fpull%2F610
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=fastapi%2Fsqlmodel
Reloadhttps://github.com/fastapi/sqlmodel/pull/610
Reloadhttps://github.com/fastapi/sqlmodel/pull/610
Reloadhttps://github.com/fastapi/sqlmodel/pull/610
fastapihttps://github.com/fastapi
sqlmodelhttps://github.com/fastapi/sqlmodel
Codehttps://github.com/fastapi/sqlmodel
Issues1 (1)https://github.com/fastapi/sqlmodel/issues
Pull requests53 (53)https://github.com/fastapi/sqlmodel/pulls
Discussionshttps://github.com/fastapi/sqlmodel/discussions
Actionshttps://github.com/fastapi/sqlmodel/actions
Projectshttps://github.com/fastapi/sqlmodel/projects
Security and qualityhttps://github.com/fastapi/sqlmodel/security
Insightshttps://github.com/fastapi/sqlmodel/insights
https://github.com/fastapi/sqlmodel
farzadsbakhtiarhttps://github.com/farzadsbakhtiar
fastapi:mainhttps://github.com/fastapi/sqlmodel/tree/main
farzadsbakhtiar:mainhttps://github.com/farzadsbakhtiar/sqlmodel/tree/main
Conversationhttps://github.com/fastapi/sqlmodel/pull/610
Commits1 (1)https://github.com/fastapi/sqlmodel/pull/610/commits
Checkshttps://github.com/fastapi/sqlmodel/pull/610/checks
Files changedhttps://github.com/fastapi/sqlmodel/pull/610/files
Add kwargs to ForeignKey definitionshttps://github.com/fastapi/sqlmodel/pull/610#top
farzadsbakhtiarhttps://github.com/farzadsbakhtiar
fastapi:mainhttps://github.com/fastapi/sqlmodel/tree/main
farzadsbakhtiar:mainhttps://github.com/farzadsbakhtiar/sqlmodel/tree/main
https://github.com/farzadsbakhtiar
farzadsbakhtiarhttps://github.com/farzadsbakhtiar
Jun 21, 2023https://github.com/fastapi/sqlmodel/pull/610#issue-1766379777
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/farzadsbakhtiar
added foreign_key_kwargs to Fieldhttps://github.com/fastapi/sqlmodel/pull/610/commits/ca9dc4c6ae1415ca0bd85de599d1477c959a826e
ca9dc4chttps://github.com/fastapi/sqlmodel/pull/610/commits/ca9dc4c6ae1415ca0bd85de599d1477c959a826e
https://github.com/antont
antonthttps://github.com/antont
Jun 21, 2023https://github.com/fastapi/sqlmodel/pull/610#issuecomment-1600178102
#436https://github.com/fastapi/sqlmodel/pull/436
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/farzadsbakhtiar
farzadsbakhtiarhttps://github.com/farzadsbakhtiar
Jun 21, 2023https://github.com/fastapi/sqlmodel/pull/610#issuecomment-1600913596
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/vlntsolo
vlntsolohttps://github.com/vlntsolo
Aug 1, 2023https://github.com/fastapi/sqlmodel/pull/610#issuecomment-1660950067
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/nick-catalist
nick-catalisthttps://github.com/nick-catalist
Aug 19, 2023https://github.com/fastapi/sqlmodel/pull/610#issuecomment-1684803082
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
@tiangolohttps://github.com/tiangolo
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/tiangolo
tiangolohttps://github.com/tiangolo
feature https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Afeature
Oct 22, 2023https://github.com/fastapi/sqlmodel/pull/610#event-10733234764
https://github.com/YuriiMotov
YuriiMotovhttps://github.com/YuriiMotov
Aug 23, 2025https://github.com/fastapi/sqlmodel/pull/610#issuecomment-3216437057
https://sqlmodel.tiangolo.com/tutorial/relationship-attributes/cascade-delete-relationships/https://sqlmodel.tiangolo.com/tutorial/relationship-attributes/cascade-delete-relationships/
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
conflicts https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Aconflicts
Sep 5, 2025https://github.com/fastapi/sqlmodel/pull/610#event-19524499980
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 5, 2025https://github.com/fastapi/sqlmodel/pull/610#issuecomment-3257546414
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/tiangolo
tiangolohttps://github.com/tiangolo
Sep 20, 2025https://github.com/fastapi/sqlmodel/pull/610#issuecomment-3315067261
@YuriiMotovhttps://github.com/YuriiMotov
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/tiangolo
tiangolohttps://github.com/tiangolo
Sep 20, 2025https://github.com/fastapi/sqlmodel/pull/610#event-19816838892
https://github.co/hiddenchars
https://github.com/fastapi/sqlmodel/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%2Ffastapi%2Fsqlmodel%2Fpull%2F610
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
conflicts https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Aconflicts
feature https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Afeature
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/610
https://github.com/farzadsbakhtiar
https://github.com/antont
https://github.com/vlntsolo
https://github.com/nick-catalist
https://github.com/YuriiMotov
https://github.com/tiangolo
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.