문제

How do I do the equivalent of

SELECT *, id=1 AS calc_column FROM table

in Korma? (Obviously, id=1 is just a simple example).

도움이 되었습니까?

해결책

Korma has sqlfn which can be used in fields as show here. If even that doesn't fit your need then you always have the raw function to feed in raw sql in main query.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top