Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ let user = user::ActiveModel::builder()

### Enhancements

* Added `serde` feature
* `TextUuid` now derives `Serialize` and `Deserialize` when the `serde` feature is enabled
* [sea-orm-cli] Added `--column-extra-derives` https://github.com/SeaQL/sea-orm/pull/2212
* [sea-orm-cli] Added `--big-integer-type=i32` to use i32 for bigint (for SQLite)
* [sea-orm-cli] Fix codegen to not generate relations to filtered entities https://github.com/SeaQL/sea-orm/pull/2913
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ sea-schema = { version = "0.17.0-rc.15", default-features = false, features = [
"writer",
"probe",
], optional = true }
serde = { version = "1.0", default-features = false }
serde = { version = "1.0", default-features = false, optional = true }
serde_json = { version = "1.0", default-features = false, optional = true }
sqlx = { version = "0.8.4", default-features = false, optional = true }
strum = { version = "0.28", default-features = false }
Expand Down Expand Up @@ -153,6 +153,7 @@ rusqlite = []
schema-sync = ["sea-schema"]
sea-orm-internal = []
seaography = ["sea-orm-macros/seaography"]
serde = ["dep:serde", "serde/derive", "uuid?/serde"]
sqlite-no-row-value-before-3_15 = []
sqlite-use-returning-for-3_35 = []
sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"]
Expand Down Expand Up @@ -204,6 +205,7 @@ with-ipnetwork = [
"sea-query-sqlx?/with-ipnetwork",
]
with-json = [
"dep:serde",
"serde_json",
"sea-query/with-json",
"sea-orm-macros/with-json",
Expand Down
1 change: 1 addition & 0 deletions src/value/text_uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::{DbErr, TryGetError};
/// - Allows for queries like `WHERE id IN (<uuid>, <uuid>, ...)` which are
/// impossible to write with `BLOB` values
#[derive(Clone, Debug, PartialEq, Eq, Copy)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct TextUuid(pub uuid::Uuid);

impl From<TextUuid> for sea_query::Value {
Expand Down
Loading