Вопрос

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