Support custom expressions for a field
thosakwe opened this issue · comments
Example:
@serializable
@orm
class _Forum extends Model {
@Column(expression: 'COUNT(SELECT * FROM posts WHERE forum_id=id)')
int postCount;
}
Work begins: 860e802
Closing, as this is available in the latest beta.