Replies: 3 comments
-
|
Hey @tyt2y3 is this possible yet using seaorm? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
same too |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Plus one on this from me too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
I want to create a unique index which has an expression as a column.
I tried this but it does not work.
manager .create_index( Index::create() .unique() .name("calendar_event-date-metadataid-info__uq-idx") .table(CalendarEvent::Table) .col(CalendarEvent::Date) .col(CalendarEvent::MetadataId) .col(Expr::expr(Func::coalesce([ Expr::col(CalendarEvent::MetadataExtraInformation).into(), Expr::val("some-str").into(), ]))) .to_owned(), ) .await?;Proposed Solutions
An API to allow the above.
Current Workarounds
Manually executing the query.
Beta Was this translation helpful? Give feedback.
All reactions