Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- valuesU :: Unpackspec columns columns' -> ValuesspecUnsafe columns columns' -> [columns] -> ((), Tag) -> (columns', PrimQuery, Tag)
- extractValuesEntry :: PrimExpr -> PM [PrimExpr] PrimExpr
- extractValuesField :: Tag -> primExpr -> PM [(Symbol, primExpr)] PrimExpr
- newtype ValuesspecUnsafe columns columns' = Valuesspec (PackMap () PrimExpr () columns')
- runValuesspec :: Applicative f => ValuesspecUnsafe columns columns' -> (() -> f PrimExpr) -> f columns'
- valuesUSafe :: Valuesspec columns columns' -> [columns] -> ((), Tag) -> (columns', PrimQuery, Tag)
- data Valuesspec columns columns' = ValuesspecSafe (PackMap PrimExpr PrimExpr () columns') (Unpackspec columns columns')
- type ValuesspecSafe = Valuesspec
- runValuesspecSafe :: Applicative f => Valuesspec columns columns' -> (PrimExpr -> f PrimExpr) -> f columns'
- valuesspecField :: IsSqlType a => Valuesspec (Column a) (Column a)
- nullPE :: IsSqlType a => proxy a -> PrimExpr
- newtype Nullspec fields fields' = Nullspec (Valuesspec fields fields')
- nullspecField :: IsSqlType b => Nullspec a (Column b)
- nullspecList :: Nullspec a [b]
- nullspecEitherLeft :: Nullspec a b -> Nullspec a (Either b b')
- nullspecEitherRight :: Nullspec a b' -> Nullspec a (Either b b')
- nullFields :: Nullspec a fields -> fields
Documentation
valuesU :: Unpackspec columns columns' -> ValuesspecUnsafe columns columns' -> [columns] -> ((), Tag) -> (columns', PrimQuery, Tag) Source #
newtype ValuesspecUnsafe columns columns' Source #
Valuesspec (PackMap () PrimExpr () columns') |
Instances
runValuesspec :: Applicative f => ValuesspecUnsafe columns columns' -> (() -> f PrimExpr) -> f columns' Source #
valuesUSafe :: Valuesspec columns columns' -> [columns] -> ((), Tag) -> (columns', PrimQuery, Tag) Source #
data Valuesspec columns columns' Source #
ValuesspecSafe (PackMap PrimExpr PrimExpr () columns') (Unpackspec columns columns') |
Instances
type ValuesspecSafe = Valuesspec Source #
runValuesspecSafe :: Applicative f => Valuesspec columns columns' -> (PrimExpr -> f PrimExpr) -> f columns' Source #
valuesspecField :: IsSqlType a => Valuesspec (Column a) (Column a) Source #
newtype Nullspec fields fields' Source #
Nullspec (Valuesspec fields fields') |
Instances
Profunctor Nullspec Source # | |
Defined in Opaleye.Internal.Values dimap :: (a -> b) -> (c -> d) -> Nullspec b c -> Nullspec a d # lmap :: (a -> b) -> Nullspec b c -> Nullspec a c # rmap :: (b -> c) -> Nullspec a b -> Nullspec a c # (#.) :: forall a b c q. Coercible c b => q b c -> Nullspec a b -> Nullspec a c # (.#) :: forall a b c q. Coercible b a => Nullspec b c -> q a b -> Nullspec a c # | |
ProductProfunctor Nullspec Source # | |
IsSqlType b => Default Nullspec a (Column b) Source # | |
Defined in Opaleye.Internal.Values | |
Functor (Nullspec a) Source # | |
Applicative (Nullspec a) Source # | |
Defined in Opaleye.Internal.Values |
nullspecList :: Nullspec a [b] Source #
nullFields :: Nullspec a fields -> fields Source #
All fields NULL
, even though technically the type may forbid
that! Used to create such fields when we know we will never look
at them expecting to find something non-NULL.