persistent-relational-record-0.1.0.0: relational-record on persisten backends.

Safe HaskellNone
LanguageHaskell2010

Database.Persist.Relational.TH

Synopsis

Documentation

defineTableFromPersistentWithConfig Source #

Arguments

:: Config

Configration for haskell relational record

-> String

Database schema name

-> Name

Name of the persistent record type corresponds to the table

-> [EntityDef]

EntityDef which is generated by persistent

-> Q [Dec] 

Generate all templates about table from persistent table definition.

defineTableFromPersistent Source #

Arguments

:: Name

Name of the persistent record type corresponds to the table

-> [EntityDef]

EntityDef which is generated by persistent

-> Q [Dec] 

Generate all templates about table from persistent table definition using default naming rule.

mkHrrInstances :: [EntityDef] -> Q [Dec] Source #

Generate instances for haskell-relational-record.