-
I have a column of the following type: "id" uuid DEFAULT uuid_generate_v4() And I cannot find a row by it's ID. find_by_id("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11")
// SELECT "users"."name" FROM "users" WHERE "users"."id" = 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11' LIMIT 1
// Error: Query Error: error returned from database: operator does not exist: uuid = text
find_by_id(uuid::Uuid::from_str("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11").unwrap())
// ^^^^^^ the trait `From<uuid::Uuid>` is not implemented for `sea_orm::Value` Is there any way to currently filter a row by UUID? |
Beta Was this translation helpful? Give feedback.
Answered by
tyt2y3
Aug 8, 2021
Replies: 1 comment 1 reply
-
sea-orm/tests/crud/create_cake.rs Lines 30 to 40 in 2e9c19d Can you checkout this example? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tqwewe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sea-orm/tests/crud/create_cake.rs
Lines 30 to 40 in 2e9c19d
Can you checkout this example?