ihp-1.4.0: Haskell Web Framework
Safe HaskellNone
LanguageGHC2021

IHP.PGSimpleCompat

Description

Consolidates all postgresql-simple FromField/ToField/FromRow orphan instances for IHP model types.

Note: JobStatus FromField/ToField instances remain in IHP.Job.Queue to avoid a circular dependency through IHP.Job.Types -> IHP.Prelude -> IHP.ModelSupport.

Orphan instances

FromField (PrimaryKey model) => FromField (Id' model) Source # 
Instance details

Methods

fromField :: FieldParser (Id' model) Source #

(FromField value, Typeable value) => FromField [value] Source # 
Instance details

Methods

fromField :: FieldParser [value] Source #

ToField valueType => ToField (FieldWithDefault valueType) Source # 
Instance details

Methods

toField :: FieldWithDefault valueType -> Action Source #

ToField (PrimaryKey model) => ToField (Id' model) Source # 
Instance details

Methods

toField :: Id' model -> Action Source #

ToField value => ToField [value] Source # 
Instance details

Methods

toField :: [value] -> Action Source #

(FromField label, FromRow a) => FromRow (LabeledData label a) Source # 
Instance details

Methods

fromRow :: RowParser (LabeledData label a) Source #

(ToField (Id' a), ToField (Id' b)) => ToField (Id' a, Id' b) Source # 
Instance details

Methods

toField :: (Id' a, Id' b) -> Action Source #

(KnownSymbol name, ToField value) => ToField (FieldWithUpdate name value) Source # 
Instance details

Methods

toField :: FieldWithUpdate name value -> Action Source #