Safe Haskell | None |
---|---|
Language | Haskell2010 |
PrimaryTest
Documentation
type CompositePrimaryId = Key CompositePrimary Source #
data CompositePrimary Source #
Constructors
CompositePrimary | |
Fields |
Instances
Instances
PersistEntity Trees Source # | |||||||||||||||||
Defined in PrimaryTest Associated Types
Methods keyToValues :: Key Trees -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Trees) # persistIdField :: EntityField Trees (Key Trees) # entityDef :: proxy Trees -> EntityDef # persistFieldDef :: EntityField Trees typ -> FieldDef # toPersistFields :: Trees -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Trees # tabulateEntityA :: Applicative f => (forall a. EntityField Trees a -> f a) -> f (Entity Trees) # persistUniqueKeys :: Trees -> [Unique Trees] # persistUniqueToFieldNames :: Unique Trees -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Trees -> [PersistValue] # fieldLens :: EntityField Trees field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Trees -> f (Entity Trees) # | |||||||||||||||||
SafeToInsert Trees Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
PersistField Trees Source # | |||||||||||||||||
Defined in PrimaryTest Methods toPersistValue :: Trees -> PersistValue # fromPersistValue :: PersistValue -> Either Text Trees # | |||||||||||||||||
AtLeastOneUniqueKey Trees Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
OnlyOneUniqueKey Trees Source # | |||||||||||||||||
Defined in PrimaryTest Methods onlyUniqueP :: Trees -> Unique Trees # | |||||||||||||||||
PersistFieldSql Trees Source # | |||||||||||||||||
SymbolToField "name" Trees String Source # | |||||||||||||||||
Defined in PrimaryTest Methods | |||||||||||||||||
SymbolToField "id" Trees (Key Trees) Source # | |||||||||||||||||
Defined in PrimaryTest Methods symbolToField :: EntityField Trees (Key Trees) # | |||||||||||||||||
SymbolToField "parent" Trees (Maybe String) Source # | |||||||||||||||||
Defined in PrimaryTest Methods | |||||||||||||||||
FromJSON (Key Trees) Source # | |||||||||||||||||
ToJSON (Key Trees) Source # | |||||||||||||||||
Read (Key Trees) Source # | |||||||||||||||||
Show (Key Trees) Source # | |||||||||||||||||
Eq (Key Trees) Source # | |||||||||||||||||
Ord (Key Trees) Source # | |||||||||||||||||
FromHttpApiData (Key Trees) Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
ToHttpApiData (Key Trees) Source # | |||||||||||||||||
Defined in PrimaryTest Methods toUrlPiece :: Key Trees -> Text # toEncodedUrlPiece :: Key Trees -> Builder # toHeader :: Key Trees -> ByteString # toQueryParam :: Key Trees -> Text # toEncodedQueryParam :: Key Trees -> Builder # | |||||||||||||||||
PathPiece (Key Trees) Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
PersistField (Key Trees) Source # | |||||||||||||||||
Defined in PrimaryTest Methods toPersistValue :: Key Trees -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Trees) # | |||||||||||||||||
PersistFieldSql (Key Trees) Source # | |||||||||||||||||
data EntityField Trees typ Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
newtype Key Trees Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
type PersistEntityBackend Trees Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
data Unique Trees Source # | |||||||||||||||||
Defined in PrimaryTest |
Instances
PersistEntity Bar Source # | |||||||||||||||||
Defined in PrimaryTest Associated Types
Methods keyToValues :: Key Bar -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Bar) # persistIdField :: EntityField Bar (Key Bar) # entityDef :: proxy Bar -> EntityDef # persistFieldDef :: EntityField Bar typ -> FieldDef # toPersistFields :: Bar -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Bar # tabulateEntityA :: Applicative f => (forall a. EntityField Bar a -> f a) -> f (Entity Bar) # persistUniqueKeys :: Bar -> [Unique Bar] # persistUniqueToFieldNames :: Unique Bar -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Bar -> [PersistValue] # fieldLens :: EntityField Bar field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Bar -> f (Entity Bar) # | |||||||||||||||||
SafeToInsert Bar Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
PersistField Bar Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
(TypeError (NoUniqueKeysError Bar) :: Constraint) => AtLeastOneUniqueKey Bar Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
(TypeError (NoUniqueKeysError Bar) :: Constraint) => OnlyOneUniqueKey Bar Source # | |||||||||||||||||
Defined in PrimaryTest Methods onlyUniqueP :: Bar -> Unique Bar # | |||||||||||||||||
PersistFieldSql Bar Source # | |||||||||||||||||
ToBackendKey SqlBackend Bar Source # | |||||||||||||||||
Defined in PrimaryTest Methods toBackendKey :: Key Bar -> BackendKey SqlBackend # fromBackendKey :: BackendKey SqlBackend -> Key Bar # | |||||||||||||||||
SymbolToField "quux" Bar FooId Source # | |||||||||||||||||
Defined in PrimaryTest Methods | |||||||||||||||||
SymbolToField "id" Bar (Key Bar) Source # | |||||||||||||||||
Defined in PrimaryTest Methods symbolToField :: EntityField Bar (Key Bar) # | |||||||||||||||||
FromJSON (Key Bar) Source # | |||||||||||||||||
ToJSON (Key Bar) Source # | |||||||||||||||||
Read (Key Bar) Source # | |||||||||||||||||
Show (Key Bar) Source # | |||||||||||||||||
Eq (Key Bar) Source # | |||||||||||||||||
Ord (Key Bar) Source # | |||||||||||||||||
FromHttpApiData (Key Bar) Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
ToHttpApiData (Key Bar) Source # | |||||||||||||||||
Defined in PrimaryTest Methods toUrlPiece :: Key Bar -> Text # toEncodedUrlPiece :: Key Bar -> Builder # toHeader :: Key Bar -> ByteString # toQueryParam :: Key Bar -> Text # toEncodedQueryParam :: Key Bar -> Builder # | |||||||||||||||||
PathPiece (Key Bar) Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
PersistField (Key Bar) Source # | |||||||||||||||||
Defined in PrimaryTest Methods toPersistValue :: Key Bar -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Bar) # | |||||||||||||||||
PersistFieldSql (Key Bar) Source # | |||||||||||||||||
data EntityField Bar typ Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
newtype Key Bar Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
type PersistEntityBackend Bar Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
data Unique Bar Source # | |||||||||||||||||
Defined in PrimaryTest |
Instances
PersistEntity Foo Source # | |||||||||||||||||
Defined in PrimaryTest Associated Types
Methods keyToValues :: Key Foo -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Foo) # persistIdField :: EntityField Foo (Key Foo) # entityDef :: proxy Foo -> EntityDef # persistFieldDef :: EntityField Foo typ -> FieldDef # toPersistFields :: Foo -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Foo # tabulateEntityA :: Applicative f => (forall a. EntityField Foo a -> f a) -> f (Entity Foo) # persistUniqueKeys :: Foo -> [Unique Foo] # persistUniqueToFieldNames :: Unique Foo -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Foo -> [PersistValue] # fieldLens :: EntityField Foo field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Foo -> f (Entity Foo) # | |||||||||||||||||
SafeToInsert Foo Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
PersistField Foo Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
AtLeastOneUniqueKey Foo Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
OnlyOneUniqueKey Foo Source # | |||||||||||||||||
Defined in PrimaryTest Methods onlyUniqueP :: Foo -> Unique Foo # | |||||||||||||||||
PersistFieldSql Foo Source # | |||||||||||||||||
SymbolToField "name" Foo String Source # | |||||||||||||||||
Defined in PrimaryTest Methods | |||||||||||||||||
SymbolToField "quux" Bar FooId Source # | |||||||||||||||||
Defined in PrimaryTest Methods | |||||||||||||||||
SymbolToField "id" Foo (Key Foo) Source # | |||||||||||||||||
Defined in PrimaryTest Methods symbolToField :: EntityField Foo (Key Foo) # | |||||||||||||||||
FromJSON (Key Foo) Source # | |||||||||||||||||
ToJSON (Key Foo) Source # | |||||||||||||||||
Read (Key Foo) Source # | |||||||||||||||||
Show (Key Foo) Source # | |||||||||||||||||
Eq (Key Foo) Source # | |||||||||||||||||
Ord (Key Foo) Source # | |||||||||||||||||
FromHttpApiData (Key Foo) Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
ToHttpApiData (Key Foo) Source # | |||||||||||||||||
Defined in PrimaryTest Methods toUrlPiece :: Key Foo -> Text # toEncodedUrlPiece :: Key Foo -> Builder # toHeader :: Key Foo -> ByteString # toQueryParam :: Key Foo -> Text # toEncodedQueryParam :: Key Foo -> Builder # | |||||||||||||||||
PathPiece (Key Foo) Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
PersistField (Key Foo) Source # | |||||||||||||||||
Defined in PrimaryTest Methods toPersistValue :: Key Foo -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Foo) # | |||||||||||||||||
PersistFieldSql (Key Foo) Source # | |||||||||||||||||
data EntityField Foo typ Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
newtype Key Foo Source # | |||||||||||||||||
type PersistEntityBackend Foo Source # | |||||||||||||||||
Defined in PrimaryTest | |||||||||||||||||
data Unique Foo Source # | |||||||||||||||||
Defined in PrimaryTest |