Safe Haskell | None |
---|---|
Language | Haskell2010 |
CompositeTest
Documentation
type PrimaryCompositeWithOtherNullableFieldsId = Key PrimaryCompositeWithOtherNullableFields Source #
data PrimaryCompositeWithOtherNullableFields Source #
Constructors
PrimaryCompositeWithOtherNullableFields | |
Instances
type CitizenAddressId = Key CitizenAddress Source #
data CitizenAddress Source #
Constructors
CitizenAddress | |
Fields |
Instances
Show CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest Methods showsPrec :: Int -> CitizenAddress -> ShowS # show :: CitizenAddress -> String # showList :: [CitizenAddress] -> ShowS # | |||||||||||||||||
Eq CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest Methods (==) :: CitizenAddress -> CitizenAddress -> Bool # (/=) :: CitizenAddress -> CitizenAddress -> Bool # | |||||||||||||||||
PersistEntity CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest Associated Types
Methods keyToValues :: Key CitizenAddress -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key CitizenAddress) # persistIdField :: EntityField CitizenAddress (Key CitizenAddress) # entityDef :: proxy CitizenAddress -> EntityDef # persistFieldDef :: EntityField CitizenAddress typ -> FieldDef # toPersistFields :: CitizenAddress -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text CitizenAddress # tabulateEntityA :: Applicative f => (forall a. EntityField CitizenAddress a -> f a) -> f (Entity CitizenAddress) # persistUniqueKeys :: CitizenAddress -> [Unique CitizenAddress] # persistUniqueToFieldNames :: Unique CitizenAddress -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique CitizenAddress -> [PersistValue] # fieldLens :: EntityField CitizenAddress field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity CitizenAddress -> f (Entity CitizenAddress) # keyFromRecordM :: Maybe (CitizenAddress -> Key CitizenAddress) # | |||||||||||||||||
SafeToInsert CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistField CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: CitizenAddress -> PersistValue # fromPersistValue :: PersistValue -> Either Text CitizenAddress # | |||||||||||||||||
AtLeastOneUniqueKey CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest Methods requireUniquesP :: CitizenAddress -> NonEmpty (Unique CitizenAddress) # | |||||||||||||||||
OnlyOneUniqueKey CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
PersistFieldSql CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest Methods sqlType :: Proxy CitizenAddress -> SqlType # | |||||||||||||||||
SymbolToField "address" CitizenAddress AddressId Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "citizen" CitizenAddress CitizenId Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "id" CitizenAddress (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest Methods symbolToField :: EntityField CitizenAddress (Key CitizenAddress) # | |||||||||||||||||
FromJSON (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest Methods parseJSON :: Value -> Parser (Key CitizenAddress) # parseJSONList :: Value -> Parser [Key CitizenAddress] # omittedField :: Maybe (Key CitizenAddress) # | |||||||||||||||||
ToJSON (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest Methods toJSON :: Key CitizenAddress -> Value # toEncoding :: Key CitizenAddress -> Encoding # toJSONList :: [Key CitizenAddress] -> Value # toEncodingList :: [Key CitizenAddress] -> Encoding # omitField :: Key CitizenAddress -> Bool # | |||||||||||||||||
Generic (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest Associated Types
Methods from :: Key CitizenAddress -> Rep (Key CitizenAddress) x # to :: Rep (Key CitizenAddress) x -> Key CitizenAddress # | |||||||||||||||||
Read (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
Show (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
Eq (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest Methods (==) :: Key CitizenAddress -> Key CitizenAddress -> Bool # (/=) :: Key CitizenAddress -> Key CitizenAddress -> Bool # | |||||||||||||||||
Ord (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest Methods compare :: Key CitizenAddress -> Key CitizenAddress -> Ordering # (<) :: Key CitizenAddress -> Key CitizenAddress -> Bool # (<=) :: Key CitizenAddress -> Key CitizenAddress -> Bool # (>) :: Key CitizenAddress -> Key CitizenAddress -> Bool # (>=) :: Key CitizenAddress -> Key CitizenAddress -> Bool # max :: Key CitizenAddress -> Key CitizenAddress -> Key CitizenAddress # min :: Key CitizenAddress -> Key CitizenAddress -> Key CitizenAddress # | |||||||||||||||||
PersistField (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: Key CitizenAddress -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key CitizenAddress) # | |||||||||||||||||
PersistFieldSql (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
data EntityField CitizenAddress typ Source # | |||||||||||||||||
Defined in CompositeTest data EntityField CitizenAddress typ
| |||||||||||||||||
data Key CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
type PersistEntityBackend CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
data Unique CitizenAddress Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
type Rep (Key CitizenAddress) Source # | |||||||||||||||||
Defined in CompositeTest type Rep (Key CitizenAddress) = D1 ('MetaData "Key" "CompositeTest" "persistent-test-2.13.1.3-CygQh8RpXM7LHEmWNNgFGC" 'False) (C1 ('MetaCons "CitizenAddressKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "citizenAddressKeycitizen") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CitizenId) :*: S1 ('MetaSel ('Just "citizenAddressKeyaddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AddressId))) |
Constructors
Address | |
Fields
|
Instances
Show Address Source # | |||||||||||||||||
Eq Address Source # | |||||||||||||||||
PersistEntity Address Source # | |||||||||||||||||
Defined in CompositeTest Associated Types
Methods keyToValues :: Key Address -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Address) # persistIdField :: EntityField Address (Key Address) # entityDef :: proxy Address -> EntityDef # persistFieldDef :: EntityField Address typ -> FieldDef # toPersistFields :: Address -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Address # tabulateEntityA :: Applicative f => (forall a. EntityField Address a -> f a) -> f (Entity Address) # persistUniqueKeys :: Address -> [Unique Address] # persistUniqueToFieldNames :: Unique Address -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Address -> [PersistValue] # fieldLens :: EntityField Address field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Address -> f (Entity Address) # | |||||||||||||||||
SafeToInsert Address Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistField Address Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: Address -> PersistValue # | |||||||||||||||||
(TypeError (NoUniqueKeysError Address) :: Constraint) => AtLeastOneUniqueKey Address Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
(TypeError (NoUniqueKeysError Address) :: Constraint) => OnlyOneUniqueKey Address Source # | |||||||||||||||||
Defined in CompositeTest Methods onlyUniqueP :: Address -> Unique Address # | |||||||||||||||||
PersistFieldSql Address Source # | |||||||||||||||||
ToBackendKey SqlBackend Address Source # | |||||||||||||||||
Defined in CompositeTest Methods toBackendKey :: Key Address -> BackendKey SqlBackend # | |||||||||||||||||
SymbolToField "address" Address String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "address" CitizenAddress AddressId Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "country" Address String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "id" Address (Key Address) Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
FromJSON (Key Address) Source # | |||||||||||||||||
ToJSON (Key Address) Source # | |||||||||||||||||
Read (Key Address) Source # | |||||||||||||||||
Show (Key Address) Source # | |||||||||||||||||
Eq (Key Address) Source # | |||||||||||||||||
Ord (Key Address) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
FromHttpApiData (Key Address) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
ToHttpApiData (Key Address) Source # | |||||||||||||||||
Defined in CompositeTest Methods toUrlPiece :: Key Address -> Text # toEncodedUrlPiece :: Key Address -> Builder # toHeader :: Key Address -> ByteString # toQueryParam :: Key Address -> Text # toEncodedQueryParam :: Key Address -> Builder # | |||||||||||||||||
PathPiece (Key Address) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistField (Key Address) Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: Key Address -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Address) # | |||||||||||||||||
PersistFieldSql (Key Address) Source # | |||||||||||||||||
data EntityField Address typ Source # | |||||||||||||||||
Defined in CompositeTest data EntityField Address typ
| |||||||||||||||||
newtype Key Address Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
type PersistEntityBackend Address Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
data Unique Address Source # | |||||||||||||||||
Defined in CompositeTest |
Constructors
Citizen | |
Fields
|
Instances
Show Citizen Source # | |||||||||||||||||
Eq Citizen Source # | |||||||||||||||||
PersistEntity Citizen Source # | |||||||||||||||||
Defined in CompositeTest Associated Types
Methods keyToValues :: Key Citizen -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Citizen) # persistIdField :: EntityField Citizen (Key Citizen) # entityDef :: proxy Citizen -> EntityDef # persistFieldDef :: EntityField Citizen typ -> FieldDef # toPersistFields :: Citizen -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Citizen # tabulateEntityA :: Applicative f => (forall a. EntityField Citizen a -> f a) -> f (Entity Citizen) # persistUniqueKeys :: Citizen -> [Unique Citizen] # persistUniqueToFieldNames :: Unique Citizen -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Citizen -> [PersistValue] # fieldLens :: EntityField Citizen field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Citizen -> f (Entity Citizen) # | |||||||||||||||||
SafeToInsert Citizen Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistField Citizen Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: Citizen -> PersistValue # | |||||||||||||||||
(TypeError (NoUniqueKeysError Citizen) :: Constraint) => AtLeastOneUniqueKey Citizen Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
(TypeError (NoUniqueKeysError Citizen) :: Constraint) => OnlyOneUniqueKey Citizen Source # | |||||||||||||||||
Defined in CompositeTest Methods onlyUniqueP :: Citizen -> Unique Citizen # | |||||||||||||||||
PersistFieldSql Citizen Source # | |||||||||||||||||
ToBackendKey SqlBackend Citizen Source # | |||||||||||||||||
Defined in CompositeTest Methods toBackendKey :: Key Citizen -> BackendKey SqlBackend # | |||||||||||||||||
SymbolToField "citizen" CitizenAddress CitizenId Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "name" Citizen String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "age" Citizen (Maybe Int) Source # | |||||||||||||||||
Defined in CompositeTest Methods symbolToField :: EntityField Citizen (Maybe Int) # | |||||||||||||||||
SymbolToField "id" Citizen (Key Citizen) Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
FromJSON (Key Citizen) Source # | |||||||||||||||||
ToJSON (Key Citizen) Source # | |||||||||||||||||
Read (Key Citizen) Source # | |||||||||||||||||
Show (Key Citizen) Source # | |||||||||||||||||
Eq (Key Citizen) Source # | |||||||||||||||||
Ord (Key Citizen) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
FromHttpApiData (Key Citizen) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
ToHttpApiData (Key Citizen) Source # | |||||||||||||||||
Defined in CompositeTest Methods toUrlPiece :: Key Citizen -> Text # toEncodedUrlPiece :: Key Citizen -> Builder # toHeader :: Key Citizen -> ByteString # toQueryParam :: Key Citizen -> Text # toEncodedQueryParam :: Key Citizen -> Builder # | |||||||||||||||||
PathPiece (Key Citizen) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistField (Key Citizen) Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: Key Citizen -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Citizen) # | |||||||||||||||||
PersistFieldSql (Key Citizen) Source # | |||||||||||||||||
data EntityField Citizen typ Source # | |||||||||||||||||
Defined in CompositeTest data EntityField Citizen typ
| |||||||||||||||||
newtype Key Citizen Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
type PersistEntityBackend Citizen Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
data Unique Citizen Source # | |||||||||||||||||
Defined in CompositeTest |
type TestChildId = Key TestChild Source #
Constructors
TestChild | |
Fields
|
Instances
Show TestChild Source # | |||||||||||||||||
Eq TestChild Source # | |||||||||||||||||
PersistEntity TestChild Source # | |||||||||||||||||
Defined in CompositeTest Associated Types
Methods keyToValues :: Key TestChild -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key TestChild) # persistIdField :: EntityField TestChild (Key TestChild) # entityDef :: proxy TestChild -> EntityDef # persistFieldDef :: EntityField TestChild typ -> FieldDef # toPersistFields :: TestChild -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text TestChild # tabulateEntityA :: Applicative f => (forall a. EntityField TestChild a -> f a) -> f (Entity TestChild) # persistUniqueKeys :: TestChild -> [Unique TestChild] # persistUniqueToFieldNames :: Unique TestChild -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique TestChild -> [PersistValue] # fieldLens :: EntityField TestChild field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity TestChild -> f (Entity TestChild) # | |||||||||||||||||
SafeToInsert TestChild Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistField TestChild Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: TestChild -> PersistValue # | |||||||||||||||||
(TypeError (NoUniqueKeysError TestChild) :: Constraint) => AtLeastOneUniqueKey TestChild Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
(TypeError (NoUniqueKeysError TestChild) :: Constraint) => OnlyOneUniqueKey TestChild Source # | |||||||||||||||||
Defined in CompositeTest Methods onlyUniqueP :: TestChild -> Unique TestChild # | |||||||||||||||||
PersistFieldSql TestChild Source # | |||||||||||||||||
ToBackendKey SqlBackend TestChild Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "age" TestChild Int Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "extra4" TestChild String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "name" TestChild String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "name2" TestChild String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "id" TestChild (Key TestChild) Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
FromJSON (Key TestChild) Source # | |||||||||||||||||
ToJSON (Key TestChild) Source # | |||||||||||||||||
Read (Key TestChild) Source # | |||||||||||||||||
Show (Key TestChild) Source # | |||||||||||||||||
Eq (Key TestChild) Source # | |||||||||||||||||
Ord (Key TestChild) Source # | |||||||||||||||||
Defined in CompositeTest Methods compare :: Key TestChild -> Key TestChild -> Ordering # (<) :: Key TestChild -> Key TestChild -> Bool # (<=) :: Key TestChild -> Key TestChild -> Bool # (>) :: Key TestChild -> Key TestChild -> Bool # (>=) :: Key TestChild -> Key TestChild -> Bool # | |||||||||||||||||
FromHttpApiData (Key TestChild) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
ToHttpApiData (Key TestChild) Source # | |||||||||||||||||
Defined in CompositeTest Methods toUrlPiece :: Key TestChild -> Text # toEncodedUrlPiece :: Key TestChild -> Builder # toHeader :: Key TestChild -> ByteString # toQueryParam :: Key TestChild -> Text # toEncodedQueryParam :: Key TestChild -> Builder # | |||||||||||||||||
PathPiece (Key TestChild) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistField (Key TestChild) Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: Key TestChild -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key TestChild) # | |||||||||||||||||
PersistFieldSql (Key TestChild) Source # | |||||||||||||||||
data EntityField TestChild typ Source # | |||||||||||||||||
Defined in CompositeTest data EntityField TestChild typ
| |||||||||||||||||
newtype Key TestChild Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
type PersistEntityBackend TestChild Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
data Unique TestChild Source # | |||||||||||||||||
Defined in CompositeTest |
type TestParentId = Key TestParent Source #
data TestParent Source #
Constructors
TestParent | |
Fields
|
Instances
Show TestParent Source # | |||||||||||||||||
Defined in CompositeTest Methods showsPrec :: Int -> TestParent -> ShowS # show :: TestParent -> String # showList :: [TestParent] -> ShowS # | |||||||||||||||||
Eq TestParent Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistEntity TestParent Source # | |||||||||||||||||
Defined in CompositeTest Associated Types
Methods keyToValues :: Key TestParent -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key TestParent) # persistIdField :: EntityField TestParent (Key TestParent) # entityDef :: proxy TestParent -> EntityDef # persistFieldDef :: EntityField TestParent typ -> FieldDef # toPersistFields :: TestParent -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text TestParent # tabulateEntityA :: Applicative f => (forall a. EntityField TestParent a -> f a) -> f (Entity TestParent) # persistUniqueKeys :: TestParent -> [Unique TestParent] # persistUniqueToFieldNames :: Unique TestParent -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique TestParent -> [PersistValue] # fieldLens :: EntityField TestParent field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity TestParent -> f (Entity TestParent) # keyFromRecordM :: Maybe (TestParent -> Key TestParent) # | |||||||||||||||||
SafeToInsert TestParent Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
PersistField TestParent Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: TestParent -> PersistValue # fromPersistValue :: PersistValue -> Either Text TestParent # | |||||||||||||||||
AtLeastOneUniqueKey TestParent Source # | |||||||||||||||||
Defined in CompositeTest Methods requireUniquesP :: TestParent -> NonEmpty (Unique TestParent) # | |||||||||||||||||
OnlyOneUniqueKey TestParent Source # | |||||||||||||||||
Defined in CompositeTest Methods onlyUniqueP :: TestParent -> Unique TestParent # | |||||||||||||||||
PersistFieldSql TestParent Source # | |||||||||||||||||
Defined in CompositeTest Methods sqlType :: Proxy TestParent -> SqlType # | |||||||||||||||||
SymbolToField "age" TestParent Int Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "extra44" TestParent String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "name" TestParent String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "name2" TestParent String Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
SymbolToField "id" TestParent (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest Methods | |||||||||||||||||
FromJSON (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest Methods parseJSON :: Value -> Parser (Key TestParent) # parseJSONList :: Value -> Parser [Key TestParent] # omittedField :: Maybe (Key TestParent) # | |||||||||||||||||
ToJSON (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest Methods toJSON :: Key TestParent -> Value # toEncoding :: Key TestParent -> Encoding # toJSONList :: [Key TestParent] -> Value # toEncodingList :: [Key TestParent] -> Encoding # omitField :: Key TestParent -> Bool # | |||||||||||||||||
Generic (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest Associated Types
Methods from :: Key TestParent -> Rep (Key TestParent) x # to :: Rep (Key TestParent) x -> Key TestParent # | |||||||||||||||||
Read (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest Methods readsPrec :: Int -> ReadS (Key TestParent) # readList :: ReadS [Key TestParent] # readPrec :: ReadPrec (Key TestParent) # readListPrec :: ReadPrec [Key TestParent] # | |||||||||||||||||
Show (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
Eq (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest Methods (==) :: Key TestParent -> Key TestParent -> Bool # (/=) :: Key TestParent -> Key TestParent -> Bool # | |||||||||||||||||
Ord (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest Methods compare :: Key TestParent -> Key TestParent -> Ordering # (<) :: Key TestParent -> Key TestParent -> Bool # (<=) :: Key TestParent -> Key TestParent -> Bool # (>) :: Key TestParent -> Key TestParent -> Bool # (>=) :: Key TestParent -> Key TestParent -> Bool # max :: Key TestParent -> Key TestParent -> Key TestParent # min :: Key TestParent -> Key TestParent -> Key TestParent # | |||||||||||||||||
PersistField (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest Methods toPersistValue :: Key TestParent -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key TestParent) # | |||||||||||||||||
PersistFieldSql (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
data EntityField TestParent typ Source # | |||||||||||||||||
Defined in CompositeTest data EntityField TestParent typ
| |||||||||||||||||
data Key TestParent Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
type PersistEntityBackend TestParent Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
data Unique TestParent Source # | |||||||||||||||||
Defined in CompositeTest | |||||||||||||||||
type Rep (Key TestParent) Source # | |||||||||||||||||
Defined in CompositeTest type Rep (Key TestParent) = D1 ('MetaData "Key" "CompositeTest" "persistent-test-2.13.1.3-CygQh8RpXM7LHEmWNNgFGC" 'False) (C1 ('MetaCons "TestParentKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "testParentKeyname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: (S1 ('MetaSel ('Just "testParentKeyname2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "testParentKeyage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) |
cleanDB :: forall backend (m :: Type -> Type). (PersistQuery backend, PersistEntityBackend TestChild ~ backend, MonadIO m) => ReaderT backend m () Source #
specsWith :: forall (m :: Type -> Type). (MonadIO m, MonadFail m) => RunDb SqlBackend m -> Spec Source #
matchK :: (PersistField a, PersistEntity record) => Key record -> Either Text a Source #
matchK2 :: (PersistField a1, PersistField a, PersistEntity record, PersistEntity record2) => Key record -> Key record2 -> Either Text (a1, a) Source #
matchParentK :: Key TestParent -> Either Text (String, String, Int64) Source #
matchCitizenAddressK :: Key CitizenAddress -> Either Text (Int64, Int64) Source #