René's URL Explorer Experiment


Title: ✨ Add `IntEnum` type that allows storing values of enum as integers in database by sunkunxi · Pull Request #1337 · fastapi/sqlmodel · GitHub

Open Graph Title: ✨ Add `IntEnum` type that allows storing values of enum as integers in database by sunkunxi · Pull Request #1337 · fastapi/sqlmodel

X Title: ✨ Add `IntEnum` type that allows storing values of enum as integers in database by sunkunxi · Pull Request #1337 · fastapi/sqlmodel

Description: SQL databases in Python, designed for simplicity, compatibility, and robustness. - ✨ Add `IntEnum` type that allows storing values of enum as integers in database by sunkunxi · Pull Request #1337 · fastapi/sqlmodel

Open Graph Description: I add a IntEnum type decorator which I used in my private project. I wish it helps! import enum class HeroStatus(enum.IntEnum): ACTIVE = 1 DISABLE = 2 from sqlmodel import IntEnum clas...

X Description: I add a IntEnum type decorator which I used in my private project. I wish it helps! import enum class HeroStatus(enum.IntEnum): ACTIVE = 1 DISABLE = 2 from sqlmodel import IntEnum clas...

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

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(.:format)
route-controllerpull_requests
route-actionshow
fetch-noncev2:9c2f8a4a-fe69-9e44-cf99-3284f92c9cd2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8BA:222268:7808CD:A8A5D5:6AFE148A
html-safe-nonce6db6c38a412c8a4a21c2d4b741eea82fd58056a6c135b484495bd3f87e292460
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEJBOjIyMjI2ODo3ODA4Q0Q6QThBNUQ1OjZBRkUxNDhBIiwidmlzaXRvcl9pZCI6IjgxNjA0NzM4MDg3NzYzMzY1MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1da61270dcd81008a93b25b169698fa68c19e018496445e959bacc540c56e758
hovercard-subject-tagpull_request:2435822046
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
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/fastapi/sqlmodel/pull/1337
twitter:imagehttps://opengraph.githubassets.com/b5c3bf9e6abb45f4fa82c435068a6846f4080f5451b9cfedc880ec63d91152c9/fastapi/sqlmodel/pull/1337
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b5c3bf9e6abb45f4fa82c435068a6846f4080f5451b9cfedc880ec63d91152c9/fastapi/sqlmodel/pull/1337
og:image:altI add a IntEnum type decorator which I used in my private project. I wish it helps! import enum class HeroStatus(enum.IntEnum): ACTIVE = 1 DISABLE = 2 from sqlmodel import IntEnum clas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesunkunxi
hostnamegithub.com
expected-hostnamegithub.com
None3cd8a1d79ccbf9aecac62781f79072482a49047fb982b8c9e2ad4aca8bf6a9af
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
release05539640a34afe6142a519483d78ddd766a1304a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/fastapi/sqlmodel/pull/1337#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337
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%2F1337
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&source=header-repo&source_repo=fastapi%2Fsqlmodel
Reloadhttps://github.com/fastapi/sqlmodel/pull/1337
Reloadhttps://github.com/fastapi/sqlmodel/pull/1337
Reloadhttps://github.com/fastapi/sqlmodel/pull/1337
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
sunkunxihttps://github.com/sunkunxi
fastapi:mainhttps://github.com/fastapi/sqlmodel/tree/main
sunkunxi:feat/IntEnumhttps://github.com/sunkunxi/sqlmodel/tree/feat/IntEnum
Conversationhttps://github.com/fastapi/sqlmodel/pull/1337
Commits13 (13)https://github.com/fastapi/sqlmodel/pull/1337/commits
Checkshttps://github.com/fastapi/sqlmodel/pull/1337/checks
Files changedhttps://github.com/fastapi/sqlmodel/pull/1337/files
✨ Add IntEnum type that allows storing values of enum as integers in databasehttps://github.com/fastapi/sqlmodel/pull/1337#top
sunkunxihttps://github.com/sunkunxi
fastapi:mainhttps://github.com/fastapi/sqlmodel/tree/main
sunkunxi:feat/IntEnumhttps://github.com/sunkunxi/sqlmodel/tree/feat/IntEnum
https://github.com/sunkunxi
sunkunxihttps://github.com/sunkunxi
Apr 3, 2025https://github.com/fastapi/sqlmodel/pull/1337#issue-2968199454
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
https://github.com/sunkunxi
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337
https://github.com/svlandeg
svlandeghttps://github.com/svlandeg
Apr 4, 2025https://github.com/fastapi/sqlmodel/pull/1337#event-17125699167
https://github.com/svlandeg
svlandeghttps://github.com/svlandeg
feature https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Afeature
Apr 4, 2025https://github.com/fastapi/sqlmodel/pull/1337#event-17125699712
https://github.com/sunkunxi
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337
https://github.com/svlandeg
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337
https://github.com/sunkunxi
sunkunxihttps://github.com/sunkunxi
Apr 10, 2025https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-2791723307
@KunxiSunhttps://github.com/KunxiSun
herehttps://github.com/fastapi/sqlmodel/pull/1340
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
https://github.com/YuriiMotov
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
https://github.com/YuriiMotov
YuriiMotovhttps://github.com/YuriiMotov
waiting https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Awaiting
Sep 9, 2025https://github.com/fastapi/sqlmodel/pull/1337#event-19582939428
https://github.com/sunkunxi
sunkunxihttps://github.com/sunkunxi
Sep 22, 2025https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-3317670992
@KunxiSunhttps://github.com/KunxiSun
these testshttps://github.com/fastapi/sqlmodel/blob/c5085b6349889f4d7fabedc2d5fc02224045cad5/tests/test_enums.py#L38-L55
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
waiting https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Awaiting
Sep 22, 2025https://github.com/fastapi/sqlmodel/pull/1337#event-19832140013
https://github.com/YuriiMotov
YuriiMotovhttps://github.com/YuriiMotov
Oct 8, 2025 https://github.com/fastapi/sqlmodel/pull/1337#pullrequestreview-3315842198
View reviewed changes https://github.com/fastapi/sqlmodel/pull/1337/files
YuriiMotovhttps://github.com/YuriiMotov
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
https://github.com/fastapi/sqlmodel/pull/1337#pullrequestreview-3315842198
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
https://github.com/YuriiMotov
YuriiMotovhttps://github.com/YuriiMotov
Oct 8, 2025https://github.com/fastapi/sqlmodel/pull/1337#event-20169359851
https://github.com/AlanBogarin
AlanBogarinhttps://github.com/AlanBogarin
Dec 6, 2025https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-3619366882
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
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
Dec 28, 2025https://github.com/fastapi/sqlmodel/pull/1337#event-21769720115
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337
https://github.com/AlanBogarin
AlanBogarinhttps://github.com/AlanBogarin
Dec 29, 2025https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-3696614860
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
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
Jan 8, 2026https://github.com/fastapi/sqlmodel/pull/1337#event-21926391045
https://github.com/sunkunxi
sunkunxihttps://github.com/sunkunxi
Jan 31, 2026 https://github.com/fastapi/sqlmodel/pull/1337#ref-issue-995776922
How to make enum column to work with SQLModel? #96 https://github.com/fastapi/sqlmodel/issues/96
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 21, 2026https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-5767955661
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
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 21, 2026https://github.com/fastapi/sqlmodel/pull/1337#event-31561200916
September 23, 2026 18:05https://github.com/fastapi/sqlmodel/pull/1337#commits-pushed-a7ad22e
feat: add IntEnum for sqltypeshttps://github.com/fastapi/sqlmodel/pull/1337/commits/a7ad22e7ace1e97ec260c8c24a6d6e14aa137395
a7ad22ehttps://github.com/fastapi/sqlmodel/pull/1337/commits/a7ad22e7ace1e97ec260c8c24a6d6e14aa137395
fix: type lint checkhttps://github.com/fastapi/sqlmodel/pull/1337/commits/fa3d5853e747564a59be286e695472891edc8d81
fa3d585https://github.com/fastapi/sqlmodel/pull/1337/commits/fa3d5853e747564a59be286e695472891edc8d81
https://github.com/marketplace/pre-commit-ci
🎨 [pre-commit.ci] Auto format from pre-commit.com hookshttps://github.com/fastapi/sqlmodel/pull/1337/commits/b2a2ec448544a4f4da88ba5e7af8989b56838419
b2a2ec4https://github.com/fastapi/sqlmodel/pull/1337/commits/b2a2ec448544a4f4da88ba5e7af8989b56838419
fix: sqltypes lint checkhttps://github.com/fastapi/sqlmodel/pull/1337/commits/fcf2614e9d876c4560899b161152b5e824bf0e91
fcf2614https://github.com/fastapi/sqlmodel/pull/1337/commits/fcf2614e9d876c4560899b161152b5e824bf0e91
https://github.com/marketplace/pre-commit-ci
🎨 [pre-commit.ci] Auto format from pre-commit.com hookshttps://github.com/fastapi/sqlmodel/pull/1337/commits/9775560852c153a1794590f4aab12e7ffe47de6a
9775560https://github.com/fastapi/sqlmodel/pull/1337/commits/9775560852c153a1794590f4aab12e7ffe47de6a
doc: no class docstring like other shttps://github.com/fastapi/sqlmodel/pull/1337/commits/0a4dd7dc549b32459ba326d401d5bac7345cf6f7
0a4dd7dhttps://github.com/fastapi/sqlmodel/pull/1337/commits/0a4dd7dc549b32459ba326d401d5bac7345cf6f7
perfomance: add cache and remove warninghttps://github.com/fastapi/sqlmodel/pull/1337/commits/d0cd18eacc950fd7c050768a0ca61b5a9a28ef56
d0cd18ehttps://github.com/fastapi/sqlmodel/pull/1337/commits/d0cd18eacc950fd7c050768a0ca61b5a9a28ef56
https://github.com/sunkunxi
https://github.com/YuriiMotov
Apply suggestions from code reviewhttps://github.com/fastapi/sqlmodel/pull/1337/commits/18b8bac190256b22db85ef00549704aeb77c4088
18b8bachttps://github.com/fastapi/sqlmodel/pull/1337/commits/18b8bac190256b22db85ef00549704aeb77c4088
https://github.com/sunkunxi
test: add sa_type to BaseModel.int_enum_fieldhttps://github.com/fastapi/sqlmodel/pull/1337/commits/ea4083d788a02a24e6c7dd03d6fb1ae58fdb4817
ea4083dhttps://github.com/fastapi/sqlmodel/pull/1337/commits/ea4083d788a02a24e6c7dd03d6fb1ae58fdb4817
https://github.com/sunkunxi
update: Uses SmallInteger type for IntEnumhttps://github.com/fastapi/sqlmodel/pull/1337/commits/a9a45fa62bc2534107f2a94924be3182e9e8a01c
a9a45fahttps://github.com/fastapi/sqlmodel/pull/1337/commits/a9a45fa62bc2534107f2a94924be3182e9e8a01c
https://github.com/sunkunxi
test: Adds tests for integer enum fieldshttps://github.com/fastapi/sqlmodel/pull/1337/commits/0b86f1801628f16d534eeb4171b99fce0008e490
0b86f18https://github.com/fastapi/sqlmodel/pull/1337/commits/0b86f1801628f16d534eeb4171b99fce0008e490
https://github.com/sunkunxi
sunkunxihttps://github.com/sunkunxi
force-pushedhttps://github.com/fastapi/sqlmodel/compare/a5f40060aef26ee75f74b7bf3d52cf4826a93844..0b86f1801628f16d534eeb4171b99fce0008e490
a5f4006https://github.com/fastapi/sqlmodel/commit/a5f40060aef26ee75f74b7bf3d52cf4826a93844
0b86f18https://github.com/fastapi/sqlmodel/commit/0b86f1801628f16d534eeb4171b99fce0008e490
Compare https://github.com/fastapi/sqlmodel/compare/a5f40060aef26ee75f74b7bf3d52cf4826a93844..0b86f1801628f16d534eeb4171b99fce0008e490
September 23, 2026 10:14https://github.com/fastapi/sqlmodel/pull/1337#event-31667330689
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 23, 2026https://github.com/fastapi/sqlmodel/pull/1337#event-31667339905
pre-commit-ci-litehttps://github.com/apps/pre-commit-ci-lite
September 23, 2026 10:14https://github.com/fastapi/sqlmodel/pull/1337#commits-pushed-3d8db41
https://github.com/marketplace/pre-commit-ci-lite
🎨 Auto formathttps://github.com/fastapi/sqlmodel/pull/1337/commits/3d8db41339d34ca24d57e346c7322e50e88af00f
3d8db41https://github.com/fastapi/sqlmodel/pull/1337/commits/3d8db41339d34ca24d57e346c7322e50e88af00f
style: remove Optional and type ignorehttps://github.com/fastapi/sqlmodel/pull/1337/commits/a69a29ba68772a783181f04d4e94ee0b1817a96e
a69a29bhttps://github.com/fastapi/sqlmodel/pull/1337/commits/a69a29ba68772a783181f04d4e94ee0b1817a96e
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
Nov 13, 2026https://github.com/fastapi/sqlmodel/pull/1337#event-36051418179
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 13, 2026https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-6859098338
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
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%2F1337
https://github.com/YuriiMotov
YuriiMotov https://github.com/YuriiMotov
https://github.com/fastapi/sqlmodel/pull/1337/files/64309f167953c0aa28450ced71de8c05fb1aeda4
Please reload this pagehttps://github.com/fastapi/sqlmodel/pull/1337
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/1337
https://github.com/sunkunxi
https://github.com/svlandeg
https://github.com/AlanBogarin
https://github.com/YuriiMotov
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.