Open parsonsmatt opened 3 years ago
distinctOn is a bit weird.
distinctOn
distinctOn :: [SqlExpr DistinctOn] -> SqlQuery a -> SqlQuery a distinctOn exprs act = Q (W.tell mempty { sdDistinctClause = DistinctOn exprs }) >> act
It might as well just be distinctOn :: [SqlExpr DistinctOn] -> SqlQuery ().
distinctOn :: [SqlExpr DistinctOn] -> SqlQuery ()
Also, the docs indicate it only works on Postgres.
I propose we deprecate the term, and move the SqlQuery () variant into Database.Esqueleto.Postgres.
SqlQuery ()
Database.Esqueleto.Postgres
distinctOn
is a bit weird.It might as well just be
distinctOn :: [SqlExpr DistinctOn] -> SqlQuery ()
.Also, the docs indicate it only works on Postgres.
I propose we deprecate the term, and move the
SqlQuery ()
variant intoDatabase.Esqueleto.Postgres
.