Am I missing a way to put a Query in the slice ? i...
# exposed
s
Am I missing a way to put a Query in the slice ? ie.
Copy code
INSERT INTO Tbl (parentId, number)
VALUES (42,
        COALESCE((SELECT MAX(aTbl.number) FROM Tbl as aTbl WHERE aTbl.parentId = 42) + 1, 1)
        );
I kind of expected a way to turn a query into an Expression<Int>.