You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scenario where I need to cast a column for doing some ordering. This is a varchar column that I would like to cast to BIGINT for ordering. I have not found the way to do that using ORM bun. Not .Order() neither OrderExpr() works for that.
So I needed to move to Raw SQL instead, which I would prefer to avoid and use the orm instead.
Any idea about how to achieve this? Is this just a missing feature un bun?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey folks,
I have a scenario where I need to cast a column for doing some ordering. This is a varchar column that I would like to cast to BIGINT for ordering. I have not found the way to do that using ORM bun. Not .
Order()
neitherOrderExpr()
works for that.So I needed to move to Raw SQL instead, which I would prefer to avoid and use the orm instead.
Any idea about how to achieve this? Is this just a missing feature un bun?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions