Skip to content

distinctOn  #286

@parsonsmatt

Description

@parsonsmatt

distinctOn is a bit weird.

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 ().

Also, the docs indicate it only works on Postgres.

I propose we deprecate the term, and move the SqlQuery () variant into Database.Esqueleto.Postgres.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions