Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- distinct :: Default Distinctspec fields fields => Select fields -> Select fields
- data Distinctspec a b
- distinctExplicit :: Distinctspec fields fields' -> Select fields -> Select fields'
- distinctspecField :: Distinctspec (Column a) (Column a)
- distinctspecMaybeFields :: WithNulls Distinctspec a b -> Distinctspec (MaybeFields a) (MaybeFields b)
Documentation
distinct :: Default Distinctspec fields fields => Select fields -> Select fields Source #
Remove duplicate rows from the Select
.
Example type specialization:
distinct :: Select (Field a, Field b) -> Select (Field a, Field b)
Assuming the makeAdaptorAndInstance
splice has been run for the product type Foo
:
distinct :: Select (Foo (Field a) (Field b) (Field c)) -> Select (Foo (Field a) (Field b) (Field c))
If you want to run distinct
on SelectArr
s you should
apply laterally
to it:
laterally
distinct
::Default
Distinctspec
fields fields =>SelectArr
i fields ->SelectArr
i fields
data Distinctspec a b Source #
Instances
Explicit versions
distinctExplicit :: Distinctspec fields fields' -> Select fields -> Select fields' Source #
Adaptors
distinctspecField :: Distinctspec (Column a) (Column a) Source #
distinctspecMaybeFields :: WithNulls Distinctspec a b -> Distinctspec (MaybeFields a) (MaybeFields b) Source #