-
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
#[sea_orm(table_name = "my_table", arrow_schema)]
pub struct Model {
#[sea_orm(primary_key)]
#[sea_orm(auto_increment = false)]
pub id: Uuid,
..
}I get a syntax error: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
thank for reporting, let me check. fixed in 6b3edde |
Beta Was this translation helpful? Give feedback.
-
|
Looks like this was a macro parsing bug around combining Since it was fixed in I would not remove #[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,So the expected fix is probably:
If it still fails on latest, then it’s worth opening a small repro with |
Beta Was this translation helpful? Give feedback.
Looks like this was a macro parsing bug around combining
arrow_schemawithauto_increment = false.Since it was fixed in
6b3edde, I’d try updating SeaORM / sea-orm-macros to a version that includes that commit.I would not remove
auto_increment = falsefor a UUID primary key. For UUID ids it’s still better to keep it explicit:So the expected fix is probably:
auto_increment = falseIf it still fails on latest, then it’s worth opening a small repro with
arrow_schema + Uuid primary key.