Safe Haskell | None |
---|---|
Language | Haskell2010 |
A Select
represents an SQL SELECT
statment. To run a
Select
use the functions in Opaleye.RunSelect. To create a
Select
you probably want to start by querying one of your
Table
s using selectTable
.
SelectArr
is a parametrised version of Select
, i.e. it can be
passed arguments.
Documentation
type Select = SelectArr () Source #
A SELECT
, i.e. an SQL query which produces a collection of
rows.
Select a
is analogous to a Haskell value [a]
.
A parametrised Select
. A SelectArr a b
accepts an argument
of type a
.
SelectArr a b
is analogous to a Haskell function a -> [b]
.
Instances
Arrow QueryArr Source # | |
Defined in Opaleye.Internal.QueryArr | |
ArrowChoice QueryArr Source # | |
Defined in Opaleye.Internal.QueryArr | |
ArrowApply QueryArr Source # | |
Defined in Opaleye.Internal.QueryArr | |
Profunctor QueryArr Source # | |
Defined in Opaleye.Internal.QueryArr dimap :: (a -> b) -> (c -> d) -> QueryArr b c -> QueryArr a d # lmap :: (a -> b) -> QueryArr b c -> QueryArr a c # rmap :: (b -> c) -> QueryArr a b -> QueryArr a c # (#.) :: forall a b c q. Coercible c b => q b c -> QueryArr a b -> QueryArr a c # (.#) :: forall a b c q. Coercible b a => QueryArr b c -> q a b -> QueryArr a c # | |
ProductProfunctor QueryArr Source # | |
Monad (QueryArr a) Source # | |
Functor (QueryArr a) Source # | |
Applicative (QueryArr a) Source # | |
Defined in Opaleye.Internal.QueryArr | |
Category QueryArr Source # | |