Safe Haskell | None |
---|---|
Language | Haskell2010 |
MigrationTest
Documentation
type CustomSqlIdId = Key CustomSqlId Source #
data CustomSqlId Source #
Constructors
CustomSqlId | |
Fields
|
Instances
Constructors
Source | |
Fields
|
Instances
PersistEntity Source Source # | |||||||||||||||||
Defined in MigrationTest Associated Types
Methods keyToValues :: Key Source -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Source) # persistIdField :: EntityField Source (Key Source) # entityDef :: proxy Source -> EntityDef # persistFieldDef :: EntityField Source typ -> FieldDef # toPersistFields :: Source -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Source # tabulateEntityA :: Applicative f => (forall a. EntityField Source a -> f a) -> f (Entity Source) # persistUniqueKeys :: Source -> [Unique Source] # persistUniqueToFieldNames :: Unique Source -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Source -> [PersistValue] # fieldLens :: EntityField Source field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Source -> f (Entity Source) # | |||||||||||||||||
SafeToInsert Source Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
PersistField Source Source # | |||||||||||||||||
Defined in MigrationTest Methods toPersistValue :: Source -> PersistValue # | |||||||||||||||||
(TypeError (NoUniqueKeysError Source) :: Constraint) => AtLeastOneUniqueKey Source Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
(TypeError (NoUniqueKeysError Source) :: Constraint) => OnlyOneUniqueKey Source Source # | |||||||||||||||||
Defined in MigrationTest Methods onlyUniqueP :: Source -> Unique Source # | |||||||||||||||||
PersistFieldSql Source Source # | |||||||||||||||||
ToBackendKey SqlBackend Source Source # | |||||||||||||||||
Defined in MigrationTest Methods toBackendKey :: Key Source -> BackendKey SqlBackend # fromBackendKey :: BackendKey SqlBackend -> Key Source # | |||||||||||||||||
SymbolToField "field3" Source Int Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "field4" Source TargetId Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "id" Source (Key Source) Source # | |||||||||||||||||
Defined in MigrationTest Methods symbolToField :: EntityField Source (Key Source) # | |||||||||||||||||
FromJSON (Key Source) Source # | |||||||||||||||||
ToJSON (Key Source) Source # | |||||||||||||||||
Read (Key Source) Source # | |||||||||||||||||
Show (Key Source) Source # | |||||||||||||||||
Eq (Key Source) Source # | |||||||||||||||||
Ord (Key Source) Source # | |||||||||||||||||
FromHttpApiData (Key Source) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
ToHttpApiData (Key Source) Source # | |||||||||||||||||
Defined in MigrationTest Methods toUrlPiece :: Key Source -> Text # toEncodedUrlPiece :: Key Source -> Builder # toHeader :: Key Source -> ByteString # toQueryParam :: Key Source -> Text # toEncodedQueryParam :: Key Source -> Builder # | |||||||||||||||||
PathPiece (Key Source) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
PersistField (Key Source) Source # | |||||||||||||||||
Defined in MigrationTest Methods toPersistValue :: Key Source -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Source) # | |||||||||||||||||
PersistFieldSql (Key Source) Source # | |||||||||||||||||
data EntityField Source typ Source # | |||||||||||||||||
Defined in MigrationTest data EntityField Source typ
| |||||||||||||||||
newtype Key Source Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
type PersistEntityBackend Source Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
data Unique Source Source # | |||||||||||||||||
Defined in MigrationTest |
Constructors
Target | |
Fields
|
Instances
Show Target Source # | |||||||||||||||||
Eq Target Source # | |||||||||||||||||
PersistEntity Target Source # | |||||||||||||||||
Defined in MigrationTest Associated Types
Methods keyToValues :: Key Target -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Target) # persistIdField :: EntityField Target (Key Target) # entityDef :: proxy Target -> EntityDef # persistFieldDef :: EntityField Target typ -> FieldDef # toPersistFields :: Target -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Target # tabulateEntityA :: Applicative f => (forall a. EntityField Target a -> f a) -> f (Entity Target) # persistUniqueKeys :: Target -> [Unique Target] # persistUniqueToFieldNames :: Unique Target -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Target -> [PersistValue] # fieldLens :: EntityField Target field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Target -> f (Entity Target) # | |||||||||||||||||
SafeToInsert Target Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
PersistField Target Source # | |||||||||||||||||
Defined in MigrationTest Methods toPersistValue :: Target -> PersistValue # | |||||||||||||||||
AtLeastOneUniqueKey Target Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
OnlyOneUniqueKey Target Source # | |||||||||||||||||
Defined in MigrationTest Methods onlyUniqueP :: Target -> Unique Target # | |||||||||||||||||
PersistFieldSql Target Source # | |||||||||||||||||
ToBackendKey SqlBackend Target Source # | |||||||||||||||||
Defined in MigrationTest Methods toBackendKey :: Key Target -> BackendKey SqlBackend # fromBackendKey :: BackendKey SqlBackend -> Key Target # | |||||||||||||||||
SymbolToField "field1" Target Int Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "field2" Target Text Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "field4" Source TargetId Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "id" Target (Key Target) Source # | |||||||||||||||||
Defined in MigrationTest Methods symbolToField :: EntityField Target (Key Target) # | |||||||||||||||||
FromJSON (Key Target) Source # | |||||||||||||||||
ToJSON (Key Target) Source # | |||||||||||||||||
Read (Key Target) Source # | |||||||||||||||||
Show (Key Target) Source # | |||||||||||||||||
Eq (Key Target) Source # | |||||||||||||||||
Ord (Key Target) Source # | |||||||||||||||||
FromHttpApiData (Key Target) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
ToHttpApiData (Key Target) Source # | |||||||||||||||||
Defined in MigrationTest Methods toUrlPiece :: Key Target -> Text # toEncodedUrlPiece :: Key Target -> Builder # toHeader :: Key Target -> ByteString # toQueryParam :: Key Target -> Text # toEncodedQueryParam :: Key Target -> Builder # | |||||||||||||||||
PathPiece (Key Target) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
PersistField (Key Target) Source # | |||||||||||||||||
Defined in MigrationTest Methods toPersistValue :: Key Target -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Target) # | |||||||||||||||||
PersistFieldSql (Key Target) Source # | |||||||||||||||||
data EntityField Target typ Source # | |||||||||||||||||
Defined in MigrationTest data EntityField Target typ
| |||||||||||||||||
newtype Key Target Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
type PersistEntityBackend Target Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
data Unique Target Source # | |||||||||||||||||
Defined in MigrationTest |
Constructors
Source1 | |
Fields
|
Instances
PersistEntity Source1 Source # | |||||||||||||||||
Defined in MigrationTest Associated Types
Methods keyToValues :: Key Source1 -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Source1) # persistIdField :: EntityField Source1 (Key Source1) # entityDef :: proxy Source1 -> EntityDef # persistFieldDef :: EntityField Source1 typ -> FieldDef # toPersistFields :: Source1 -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Source1 # tabulateEntityA :: Applicative f => (forall a. EntityField Source1 a -> f a) -> f (Entity Source1) # persistUniqueKeys :: Source1 -> [Unique Source1] # persistUniqueToFieldNames :: Unique Source1 -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Source1 -> [PersistValue] # fieldLens :: EntityField Source1 field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Source1 -> f (Entity Source1) # | |||||||||||||||||
SafeToInsert Source1 Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
PersistField Source1 Source # | |||||||||||||||||
Defined in MigrationTest Methods toPersistValue :: Source1 -> PersistValue # | |||||||||||||||||
(TypeError (NoUniqueKeysError Source1) :: Constraint) => AtLeastOneUniqueKey Source1 Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
(TypeError (NoUniqueKeysError Source1) :: Constraint) => OnlyOneUniqueKey Source1 Source # | |||||||||||||||||
Defined in MigrationTest Methods onlyUniqueP :: Source1 -> Unique Source1 # | |||||||||||||||||
PersistFieldSql Source1 Source # | |||||||||||||||||
ToBackendKey SqlBackend Source1 Source # | |||||||||||||||||
Defined in MigrationTest Methods toBackendKey :: Key Source1 -> BackendKey SqlBackend # | |||||||||||||||||
SymbolToField "extra" Source1 Int Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "field3" Source1 Int Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "field4" Source1 Target1Id Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "id" Source1 (Key Source1) Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
FromJSON (Key Source1) Source # | |||||||||||||||||
ToJSON (Key Source1) Source # | |||||||||||||||||
Read (Key Source1) Source # | |||||||||||||||||
Show (Key Source1) Source # | |||||||||||||||||
Eq (Key Source1) Source # | |||||||||||||||||
Ord (Key Source1) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
FromHttpApiData (Key Source1) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
ToHttpApiData (Key Source1) Source # | |||||||||||||||||
Defined in MigrationTest Methods toUrlPiece :: Key Source1 -> Text # toEncodedUrlPiece :: Key Source1 -> Builder # toHeader :: Key Source1 -> ByteString # toQueryParam :: Key Source1 -> Text # toEncodedQueryParam :: Key Source1 -> Builder # | |||||||||||||||||
PathPiece (Key Source1) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
PersistField (Key Source1) Source # | |||||||||||||||||
Defined in MigrationTest Methods toPersistValue :: Key Source1 -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Source1) # | |||||||||||||||||
PersistFieldSql (Key Source1) Source # | |||||||||||||||||
data EntityField Source1 typ Source # | |||||||||||||||||
Defined in MigrationTest data EntityField Source1 typ
| |||||||||||||||||
newtype Key Source1 Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
type PersistEntityBackend Source1 Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
data Unique Source1 Source # | |||||||||||||||||
Defined in MigrationTest |
Constructors
Target1 | |
Fields
|
Instances
Show Target1 Source # | |||||||||||||||||
Eq Target1 Source # | |||||||||||||||||
PersistEntity Target1 Source # | |||||||||||||||||
Defined in MigrationTest Associated Types
Methods keyToValues :: Key Target1 -> [PersistValue] # keyFromValues :: [PersistValue] -> Either Text (Key Target1) # persistIdField :: EntityField Target1 (Key Target1) # entityDef :: proxy Target1 -> EntityDef # persistFieldDef :: EntityField Target1 typ -> FieldDef # toPersistFields :: Target1 -> [PersistValue] # fromPersistValues :: [PersistValue] -> Either Text Target1 # tabulateEntityA :: Applicative f => (forall a. EntityField Target1 a -> f a) -> f (Entity Target1) # persistUniqueKeys :: Target1 -> [Unique Target1] # persistUniqueToFieldNames :: Unique Target1 -> NonEmpty (FieldNameHS, FieldNameDB) # persistUniqueToValues :: Unique Target1 -> [PersistValue] # fieldLens :: EntityField Target1 field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Target1 -> f (Entity Target1) # | |||||||||||||||||
SafeToInsert Target1 Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
PersistField Target1 Source # | |||||||||||||||||
Defined in MigrationTest Methods toPersistValue :: Target1 -> PersistValue # | |||||||||||||||||
AtLeastOneUniqueKey Target1 Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
OnlyOneUniqueKey Target1 Source # | |||||||||||||||||
Defined in MigrationTest Methods onlyUniqueP :: Target1 -> Unique Target1 # | |||||||||||||||||
PersistFieldSql Target1 Source # | |||||||||||||||||
ToBackendKey SqlBackend Target1 Source # | |||||||||||||||||
Defined in MigrationTest Methods toBackendKey :: Key Target1 -> BackendKey SqlBackend # | |||||||||||||||||
SymbolToField "field1" Target1 Int Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "field2" Target1 Text Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "field4" Source1 Target1Id Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
SymbolToField "id" Target1 (Key Target1) Source # | |||||||||||||||||
Defined in MigrationTest Methods | |||||||||||||||||
FromJSON (Key Target1) Source # | |||||||||||||||||
ToJSON (Key Target1) Source # | |||||||||||||||||
Read (Key Target1) Source # | |||||||||||||||||
Show (Key Target1) Source # | |||||||||||||||||
Eq (Key Target1) Source # | |||||||||||||||||
Ord (Key Target1) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
FromHttpApiData (Key Target1) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
ToHttpApiData (Key Target1) Source # | |||||||||||||||||
Defined in MigrationTest Methods toUrlPiece :: Key Target1 -> Text # toEncodedUrlPiece :: Key Target1 -> Builder # toHeader :: Key Target1 -> ByteString # toQueryParam :: Key Target1 -> Text # toEncodedQueryParam :: Key Target1 -> Builder # | |||||||||||||||||
PathPiece (Key Target1) Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
PersistField (Key Target1) Source # | |||||||||||||||||
Defined in MigrationTest Methods toPersistValue :: Key Target1 -> PersistValue # fromPersistValue :: PersistValue -> Either Text (Key Target1) # | |||||||||||||||||
PersistFieldSql (Key Target1) Source # | |||||||||||||||||
data EntityField Target1 typ Source # | |||||||||||||||||
Defined in MigrationTest data EntityField Target1 typ
| |||||||||||||||||
newtype Key Target1 Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
type PersistEntityBackend Target1 Source # | |||||||||||||||||
Defined in MigrationTest | |||||||||||||||||
data Unique Target1 Source # | |||||||||||||||||
Defined in MigrationTest |
specsWith :: forall (m :: Type -> Type). MonadUnliftIO m => RunDb SqlBackend m -> Spec Source #