opaleye-0.6.7000.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Internal.Join

Documentation

newtype NullMaker a b #

Constructors

NullMaker (a -> b) 

Instances

Profunctor NullMaker # 

Methods

dimap :: (a -> b) -> (c -> d) -> NullMaker b c -> NullMaker a d #

lmap :: (a -> b) -> NullMaker b c -> NullMaker a c #

rmap :: (b -> c) -> NullMaker a b -> NullMaker a c #

(#.) :: Coercible * c b => (b -> c) -> NullMaker a b -> NullMaker a c #

(.#) :: Coercible * b a => NullMaker b c -> (a -> b) -> NullMaker a c #

ProductProfunctor NullMaker # 

Methods

purePP :: b -> NullMaker a b #

(****) :: NullMaker a (b -> c) -> NullMaker a b -> NullMaker a c #

empty :: NullMaker () () #

(***!) :: NullMaker a b -> NullMaker a' b' -> NullMaker (a, a') (b, b') #

Default NullMaker (Column a) (Column (Nullable a)) # 

Methods

def :: NullMaker (Column a) (Column (Nullable a)) #

Default NullMaker (Column (Nullable a)) (Column (Nullable a)) # 

Methods

def :: NullMaker (Column (Nullable a)) (Column (Nullable a)) #

Functor (NullMaker a) # 

Methods

fmap :: (a -> b) -> NullMaker a a -> NullMaker a b #

(<$) :: a -> NullMaker a b -> NullMaker a a #

Applicative (NullMaker a) # 

Methods

pure :: a -> NullMaker a a #

(<*>) :: NullMaker a (a -> b) -> NullMaker a a -> NullMaker a b #

liftA2 :: (a -> b -> c) -> NullMaker a a -> NullMaker a b -> NullMaker a c #

(*>) :: NullMaker a a -> NullMaker a b -> NullMaker a b #

(<*) :: NullMaker a a -> NullMaker a b -> NullMaker a a #

toNullable :: NullMaker a b -> a -> b #

joinExplicit :: Unpackspec columnsA columnsA -> Unpackspec columnsB columnsB -> (columnsA -> returnedColumnsA) -> (columnsB -> returnedColumnsB) -> JoinType -> Query columnsA -> Query columnsB -> ((columnsA, columnsB) -> Column PGBool) -> Query (returnedColumnsA, returnedColumnsB) #

leftJoinAExplicit :: Unpackspec a a -> NullMaker a nullableA -> Query a -> QueryArr (a -> Column PGBool) nullableA #

data Nulled #

Instances

type IMap Nulled NullsT # 
type IMap Nulled OT # 
type Map Nulled (Column (Nullable a)) # 
type Map Nulled (Column PGJsonb) # 
type Map Nulled (Column PGJson) # 
type Map Nulled (Column PGBytea) # 
type Map Nulled (Column PGCitext) # 
type Map Nulled (Column PGUuid) # 
type Map Nulled (Column PGTimestamptz) # 
type Map Nulled (Column PGTimestamp) # 
type Map Nulled (Column PGTime) # 
type Map Nulled (Column PGText) # 
type Map Nulled (Column PGText) # 
type Map Nulled (Column PGInt4) # 
type Map Nulled (Column PGInt8) # 
type Map Nulled (Column PGFloat8) # 
type Map Nulled (Column PGDate) # 
type Map Nulled (Column PGBool) #