relational-record-examples-0.5.0.0: Examples of Haskell Relationa Record

Safe HaskellNone
LanguageHaskell2010

Department

Documentation

data Department Source #

Constructors

Department 

Fields

Instances

Show Department Source # 
Generic Department Source # 

Associated Types

type Rep Department :: * -> * #

PersistableWidth Department Source # 
TableDerivable Department Source # 
ShowConstantTermsSQL Department Source # 
FromSql SqlValue Department Source # 
ToSql SqlValue Department Source # 
HasColumnConstraint NotNull Department Source # 
HasColumnConstraint Primary Department Source # 
HasKeyConstraint Primary Department Source # 
HasConstraintKey Primary Department Int Source # 
HasProjection "deptId" Department Int Source # 

Methods

projection :: PiLabel "deptId" -> Pi Department Int #

HasProjection "name" Department String Source # 

Methods

projection :: PiLabel "name" -> Pi Department String #

ProductConstructor (Int -> String -> Department) Source # 
type Rep Department Source # 
type Rep Department = D1 (MetaData "Department" "Department" "relational-record-examples-0.5.0.0-4ts4L5tKOTDDQVjhwpRfI0" False) (C1 (MetaCons "Department" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "deptId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "name") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String))))