-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
Add Support For Decoding To Vec<T> For JSON Columns #1834
Closed
Closed
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c31830b
WIP: Add support for root arrays in JSON in SeaORM #1517
anshap1719 56f7031
Revert Removing ActiveEnum Vec TryGetable Implementation #1517
anshap1719 8293bd7
Add ActiveEnumOrJson Trait, Update Derive Macros To Implement This Tr…
anshap1719 139a95a
Remove Unintended Change #1517
anshap1719 fec6b80
Cleanup Feature Configuration, Remove ActiveEnum U16 & U64 Value Test…
anshap1719 243d700
WIP: Add Minimal Documentation #1517
anshap1719 87b6742
WIP: Merge FromJsonArrayQueryResult Into FromJsonQueryResult #1517
anshap1719 f56fd5d
WIP: Fix Lint Issues #1517
anshap1719 5a6fa05
WIP: Add Tests #1517
anshap1719 fdb8136
WIP: Add Tests #1517
anshap1719 6b9fd3a
Fix Broken Tests #1517
anshap1719 2e306e1
Revert Unintended Change In fec6b808186b2ab793281c140cdcbe8e58fe06db …
anshap1719 53a9459
Restrict try_get_from_json_impl To Be Compiled Only When with-json Fe…
anshap1719 9af0d4e
Merge branch 'SeaQL:master' into master
anshap1719 3a6af77
Remove Broken Tests #1517
anshap1719 d7c1f1b
Fix Clippy Lint Issues #1517
anshap1719 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 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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use super::sea_orm_active_enums::*; | ||
use sea_orm::entity::prelude::*; | ||
|
||
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] | ||
#[cfg_attr(feature = "sqlx-postgres", sea_orm(schema_name = "public"))] | ||
#[sea_orm(table_name = "active_enum")] | ||
pub struct Model { | ||
#[sea_orm(primary_key)] | ||
pub id: i32, | ||
pub categories: Option<Vec<Category>>, | ||
} | ||
|
||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] | ||
pub enum Relation {} | ||
|
||
impl ActiveModelBehavior for ActiveModel {} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tyt2y3 @billy1624 Can you please help me out with this one? I wrecked my brain a lot already but couldn't figure it out.
TinyInteger
instead ofTinyUnsigned
for example.u16
doesn't implement sqlx'sDecode
trait andu64
doesn't implement sqlx'sPgHasArray
trait, so I cannot add a manualTryGetable
implementation for either of them.