-
-
Notifications
You must be signed in to change notification settings - Fork 784
✨ Add IntEnum type that allows storing values of enum as integers in database
#1337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
+69
−10
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
07bf10c
feat: add IntEnum for sqltypes
0f49d7a
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] f462b3e
fix: type lint check
4de75b5
Merge branch 'feat/IntEnum' of https://github.com/KunxiSun/sqlmodel i...
acb12ca
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] 1bd5dee
fix: sqltypes lint check
2d3185d
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] f388555
fix: unit test pydanticv1
bfcd346
fix: pydanticv1 unitest
921c295
doc: no class docstring like other s
34fc6d4
perfomance: add cache and remove warning
412fed1
Merge branch 'main' into feat/IntEnum
svlandeg 3d04d94
Apply suggestions from code review
KunxiSun fecdbd2
test: add sa_type to BaseModel.int_enum_field
KunxiSun 433ef53
update: Uses SmallInteger type for IntEnum
KunxiSun d1f65ac
test: Adds tests for integer enum fields
KunxiSun 64309f1
Merge branch 'main' into feat/IntEnum
YuriiMotov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.