1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
-- | This module provides the tools for defining your database schema and using
-- it to generate Haskell data types and migrations.
--
-- For documentation on the domain specific language used for defining database
-- models, see "Database.Persist.Quasi".
--
--
module Database.Persist.TH
( -- * Parse entity defs
persistWith
, persistUpperCase
, persistLowerCase
, persistFileWith
, persistManyFileWith
-- * Turn @EntityDef@s into types
, mkPersist
, mkPersistWith
-- ** Configuring Entity Definition
, MkPersistSettings
, mkPersistSettings
, sqlSettings
-- *** Record Fields (for update/viewing settings)
, mpsBackend
, mpsGeneric
, mpsPrefixFields
, mpsFieldLabelModifier
, mpsAvoidHsKeyword
, mpsConstraintLabelModifier
, mpsEntityHaddocks
, mpsEntityJSON
, mpsGenerateLenses
, mpsDeriveInstances
, mpsCamelCaseCompositeKeySelector
, EntityJSON(..)
-- ** Implicit ID Columns
, ImplicitIdDef
, setImplicitIdDef
-- * Various other TH functions
, mkMigrate
, migrateModels
, discoverEntities
, mkEntityDefList
, share
, derivePersistField
, derivePersistFieldJSON
, persistFieldFromEntity
) where
import Database.Persist.TH.Internal
|