persistent-test 2.13.1.2 → 2.13.1.3
raw patch · 7 files changed
+209/−34 lines, 7 filesdep ~persistentPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: persistent
API changes (from Hackage documentation)
- CompositeTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey CompositeTest.CitizenAddress
- CompositeTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey CompositeTest.PrimaryCompositeWithOtherNullableFields
- CompositeTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey CompositeTest.TestParent
- CompositeTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey CompositeTest.CitizenAddress
- CompositeTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey CompositeTest.PrimaryCompositeWithOtherNullableFields
- CompositeTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey CompositeTest.TestParent
- CustomPrimaryKeyReferenceTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey CustomPrimaryKeyReferenceTest.Tweet
- ForeignKey: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey ForeignKey.Parent
- ForeignKey: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey ForeignKey.ParentComposite
- ForeignKey: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey ForeignKey.SelfReferenced
- ForeignKey: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey ForeignKey.Parent
- ForeignKey: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey ForeignKey.ParentComposite
- ForeignKey: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey ForeignKey.SelfReferenced
- MigrationTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey MigrationTest.CustomSqlId
- MigrationTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey MigrationTest.CustomSqlId
- PersistUniqueTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PersistUniqueTest.Fo
- PersistentTestModels: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PersistentTestModels.Tree
- PersistentTestModels: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PersistentTestModels.Tree
- PrimaryTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PrimaryTest.CompositePrimary
- PrimaryTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PrimaryTest.Foo
- PrimaryTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PrimaryTest.Trees
- PrimaryTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PrimaryTest.CompositePrimary
- PrimaryTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PrimaryTest.Foo
- PrimaryTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PrimaryTest.Trees
- TransactionLevelTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey TransactionLevelTest.Wombat
- TransactionLevelTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey TransactionLevelTest.Wombat
- TreeTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey TreeTest.Tree
- TreeTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey TreeTest.Tree
+ CompositeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert CompositeTest.Address
+ CompositeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert CompositeTest.Citizen
+ CompositeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert CompositeTest.CitizenAddress
+ CompositeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert CompositeTest.PrimaryCompositeWithOtherNullableFields
+ CompositeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert CompositeTest.TestChild
+ CompositeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert CompositeTest.TestParent
+ CompositeTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey CompositeTest.CitizenAddress
+ CompositeTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey CompositeTest.PrimaryCompositeWithOtherNullableFields
+ CompositeTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey CompositeTest.TestParent
+ CompositeTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey CompositeTest.CitizenAddress
+ CompositeTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey CompositeTest.PrimaryCompositeWithOtherNullableFields
+ CompositeTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey CompositeTest.TestParent
+ CustomPersistFieldTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (CustomPersistFieldTest.BlogPostGeneric backend)
+ CustomPrimaryKeyReferenceTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey CustomPrimaryKeyReferenceTest.Tweet
+ CustomPrimaryKeyReferenceTest: instance Database.Persist.Class.PersistEntity.SafeToInsert CustomPrimaryKeyReferenceTest.Tweet
+ CustomPrimaryKeyReferenceTest: instance Database.Persist.Class.PersistEntity.SafeToInsert CustomPrimaryKeyReferenceTest.TweetUrl
+ DataTypeTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (DataTypeTest.DataTypeTableGeneric backend)
+ EmbedOrderTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedOrderTest.BarGeneric backend)
+ EmbedOrderTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedOrderTest.FooGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.AccountGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.ContactGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.EmbedsHasMapGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.HasArrayWithEntitiesGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.HasEmbedGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.HasEmbedsGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.HasListEmbedGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.HasListGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.HasMapGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.HasNestedListGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.HasSetEmbedGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.InListGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.IntListGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.ListEmbedGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.MapIdValueGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.OnlyNameGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.ProfileGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.SelfListGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.SelfMaybeGeneric backend)
+ EmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmbedTest.UserGeneric backend)
+ EmptyEntityTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EmptyEntityTest.EmptyEntityGeneric backend)
+ EntityEmbedTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (EntityEmbedTest.ARecordGeneric backend)
+ EquivalentTypeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert EquivalentTypeTest.EquivalentType
+ EquivalentTypeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert EquivalentTypeTest.EquivalentType2
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.A
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.AComposite
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.B
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.BComposite
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.BExplicit
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.Chain
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.Chain2
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.Chain3
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.Child
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.ChildComposite
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.ChildImplicit
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.Parent
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.ParentComposite
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.ParentImplicit
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.SelfReferenced
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.SimpleCascade
+ ForeignKey: instance Database.Persist.Class.PersistEntity.SafeToInsert ForeignKey.SimpleCascadeChild
+ ForeignKey: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey ForeignKey.Parent
+ ForeignKey: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey ForeignKey.ParentComposite
+ ForeignKey: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey ForeignKey.SelfReferenced
+ ForeignKey: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey ForeignKey.Parent
+ ForeignKey: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey ForeignKey.ParentComposite
+ ForeignKey: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey ForeignKey.SelfReferenced
+ GeneratedColumnTestSQL: instance Database.Persist.Class.PersistEntity.SafeToInsert GeneratedColumnTestSQL.GenTest
+ GeneratedColumnTestSQL: instance Database.Persist.Class.PersistEntity.SafeToInsert GeneratedColumnTestSQL.MigrateTestV1
+ GeneratedColumnTestSQL: instance Database.Persist.Class.PersistEntity.SafeToInsert GeneratedColumnTestSQL.MigrateTestV2
+ HtmlTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (HtmlTest.HtmlTableGeneric backend)
+ LargeNumberTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (LargeNumberTest.NumberGeneric backend)
+ LongIdentifierTest: instance Database.Persist.Class.PersistEntity.SafeToInsert LongIdentifierTest.TableAnExtremelyFantasticallySuperLongNameChild
+ LongIdentifierTest: instance Database.Persist.Class.PersistEntity.SafeToInsert LongIdentifierTest.TableAnExtremelyFantasticallySuperLongNameParent
+ MaxLenTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (MaxLenTest.MaxLenGeneric backend)
+ MaybeFieldDefsTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (MaybeFieldDefsTest.MaybeFieldDefEntityGeneric backend)
+ MigrationColumnLengthTest: instance Database.Persist.Class.PersistEntity.SafeToInsert MigrationColumnLengthTest.VaryingLengths
+ MigrationIdempotencyTest: instance Database.Persist.Class.PersistEntity.SafeToInsert MigrationIdempotencyTest.Idempotency
+ MigrationOnlyTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (MigrationOnlyTest.ReferencingGeneric backend)
+ MigrationOnlyTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (MigrationOnlyTest.TwoField1Generic backend)
+ MigrationOnlyTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (MigrationOnlyTest.TwoFieldGeneric backend)
+ MigrationTest: instance Database.Persist.Class.PersistEntity.SafeToInsert MigrationTest.CustomSqlId
+ MigrationTest: instance Database.Persist.Class.PersistEntity.SafeToInsert MigrationTest.Source
+ MigrationTest: instance Database.Persist.Class.PersistEntity.SafeToInsert MigrationTest.Source1
+ MigrationTest: instance Database.Persist.Class.PersistEntity.SafeToInsert MigrationTest.Target
+ MigrationTest: instance Database.Persist.Class.PersistEntity.SafeToInsert MigrationTest.Target1
+ MigrationTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey MigrationTest.CustomSqlId
+ MigrationTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey MigrationTest.CustomSqlId
+ PersistUniqueTest: Ba :: !Int -> !Int -> Ba
+ PersistUniqueTest: OnlyPrimaryKey :: !Int -> !String -> OnlyPrimaryKey
+ PersistUniqueTest: [baBaz] :: Ba -> !Int
+ PersistUniqueTest: [baFoo] :: Ba -> !Int
+ PersistUniqueTest: [onlyPrimaryKeyFoo] :: OnlyPrimaryKey -> !Int
+ PersistUniqueTest: [onlyPrimaryKeyName] :: OnlyPrimaryKey -> !String
+ PersistUniqueTest: data Ba
+ PersistUniqueTest: data OnlyPrimaryKey
+ PersistUniqueTest: instance (TypeError ...) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PersistUniqueTest.Fo
+ PersistUniqueTest: instance Data.Aeson.Types.FromJSON.FromJSON (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance Data.Aeson.Types.FromJSON.FromJSON (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance Data.Aeson.Types.ToJSON.ToJSON (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance Data.Aeson.Types.ToJSON.ToJSON (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.PersistEntity PersistUniqueTest.Ba
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.PersistEntity PersistUniqueTest.OnlyPrimaryKey
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.SafeToInsert PersistUniqueTest.Ba
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.SafeToInsert PersistUniqueTest.Fo
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.SafeToInsert PersistUniqueTest.OnlyPrimaryKey
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.SymbolToField "baz" PersistUniqueTest.Ba GHC.Types.Int
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.SymbolToField "foo" PersistUniqueTest.Ba GHC.Types.Int
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.SymbolToField "foo" PersistUniqueTest.OnlyPrimaryKey GHC.Types.Int
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.SymbolToField "id" PersistUniqueTest.Ba (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance Database.Persist.Class.PersistEntity.SymbolToField "name" PersistUniqueTest.OnlyPrimaryKey GHC.Base.String
+ PersistUniqueTest: instance Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance Database.Persist.Class.PersistField.PersistField PersistUniqueTest.Ba
+ PersistUniqueTest: instance Database.Persist.Class.PersistField.PersistField PersistUniqueTest.OnlyPrimaryKey
+ PersistUniqueTest: instance Database.Persist.Class.PersistStore.ToBackendKey Database.Persist.SqlBackend.Internal.SqlBackend PersistUniqueTest.Ba
+ PersistUniqueTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PersistUniqueTest.Ba
+ PersistUniqueTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PersistUniqueTest.OnlyPrimaryKey
+ PersistUniqueTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PersistUniqueTest.Ba
+ PersistUniqueTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PersistUniqueTest.OnlyPrimaryKey
+ PersistUniqueTest: instance Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance Database.Persist.Sql.Class.PersistFieldSql PersistUniqueTest.Ba
+ PersistUniqueTest: instance Database.Persist.Sql.Class.PersistFieldSql PersistUniqueTest.OnlyPrimaryKey
+ PersistUniqueTest: instance GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Unique PersistUniqueTest.Ba)
+ PersistUniqueTest: instance GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Unique PersistUniqueTest.Fo)
+ PersistUniqueTest: instance GHC.Classes.Eq PersistUniqueTest.Ba
+ PersistUniqueTest: instance GHC.Classes.Eq PersistUniqueTest.OnlyPrimaryKey
+ PersistUniqueTest: instance GHC.Classes.Ord (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance GHC.Classes.Ord (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance GHC.Read.Read (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance GHC.Read.Read (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance GHC.Show.Show (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance GHC.Show.Show (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance GHC.Show.Show (Database.Persist.Class.PersistEntity.Unique PersistUniqueTest.Ba)
+ PersistUniqueTest: instance GHC.Show.Show (Database.Persist.Class.PersistEntity.Unique PersistUniqueTest.Fo)
+ PersistUniqueTest: instance GHC.Show.Show PersistUniqueTest.Ba
+ PersistUniqueTest: instance GHC.Show.Show PersistUniqueTest.OnlyPrimaryKey
+ PersistUniqueTest: instance Web.Internal.HttpApiData.FromHttpApiData (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance Web.Internal.HttpApiData.FromHttpApiData (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance Web.Internal.HttpApiData.ToHttpApiData (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance Web.Internal.HttpApiData.ToHttpApiData (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: instance Web.PathPieces.PathPiece (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.Ba)
+ PersistUniqueTest: instance Web.PathPieces.PathPiece (Database.Persist.Class.PersistEntity.Key PersistUniqueTest.OnlyPrimaryKey)
+ PersistUniqueTest: shouldCompile :: (OnlyOneUniqueKey OnlyPrimaryKey, AtLeastOneUniqueKey OnlyPrimaryKey) => IO ()
+ PersistUniqueTest: type BaId = Key Ba
+ PersistUniqueTest: type OnlyPrimaryKeyId = Key OnlyPrimaryKey
+ PersistentTestModels: instance Database.Persist.Class.PersistEntity.SafeToInsert PersistentTestModels.Tree
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.CustomPrefix1Generic backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.CustomPrefix2Generic backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.CustomPrefixSumGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.DudeWeirdColumnsGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.EmailPTGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.MaybeOwnedPetGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.MutAGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.MutBGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.NeedsPetGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.NoPrefix1Generic backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.NoPrefix2Generic backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.NoPrefixSumGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.OutdoorPetGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.Person1Generic backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.PersonGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.PersonMayGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.PersonMaybeAgeGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.PetGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.RelationshipGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.StrictGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.UpsertByGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.UpsertGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (PersistentTestModels.UserPTGeneric backend)
+ PersistentTestModels: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PersistentTestModels.Tree
+ PersistentTestModels: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PersistentTestModels.Tree
+ PersistentTestModelsImports: instance Database.Persist.Class.PersistEntity.SafeToInsert PersistentTestModelsImports.User
+ PrimaryTest: instance Database.Persist.Class.PersistEntity.SafeToInsert PrimaryTest.Bar
+ PrimaryTest: instance Database.Persist.Class.PersistEntity.SafeToInsert PrimaryTest.CompositePrimary
+ PrimaryTest: instance Database.Persist.Class.PersistEntity.SafeToInsert PrimaryTest.Foo
+ PrimaryTest: instance Database.Persist.Class.PersistEntity.SafeToInsert PrimaryTest.Trees
+ PrimaryTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PrimaryTest.CompositePrimary
+ PrimaryTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PrimaryTest.Foo
+ PrimaryTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey PrimaryTest.Trees
+ PrimaryTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PrimaryTest.CompositePrimary
+ PrimaryTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PrimaryTest.Foo
+ PrimaryTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey PrimaryTest.Trees
+ Recursive: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (Recursive.MenuObjectGeneric backend)
+ Recursive: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (Recursive.SubTypeGeneric backend)
+ RenameTest: instance ((TypeError ...), Database.Persist.Class.PersistStore.PersistStoreWrite backend) => Database.Persist.Class.PersistEntity.SafeToInsert (RenameTest.IdTableGeneric backend)
+ RenameTest: instance ((TypeError ...), Database.Persist.Class.PersistStore.PersistStoreWrite backend) => Database.Persist.Class.PersistEntity.SafeToInsert (RenameTest.LowerCaseTableGeneric backend)
+ RenameTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (RenameTest.ForeignIdTableGeneric backend)
+ RenameTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (RenameTest.KeyTableGeneric backend)
+ RenameTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (RenameTest.RefTableGeneric backend)
+ SumTypeTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (SumTypeTest.BicycleGeneric backend)
+ SumTypeTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (SumTypeTest.CarGeneric backend)
+ SumTypeTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (SumTypeTest.VehicleGeneric backend)
+ TransactionLevelTest: instance Database.Persist.Class.PersistEntity.SafeToInsert TransactionLevelTest.Wombat
+ TransactionLevelTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey TransactionLevelTest.Wombat
+ TransactionLevelTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey TransactionLevelTest.Wombat
+ TreeTest: instance Database.Persist.Class.PersistEntity.SafeToInsert TreeTest.Tree
+ TreeTest: instance Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey TreeTest.Tree
+ TreeTest: instance Database.Persist.Class.PersistUnique.OnlyOneUniqueKey TreeTest.Tree
+ TypeLitFieldDefsTest: instance ((TypeError ...), Database.Persist.Class.PersistStore.PersistStoreWrite backend) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance ((TypeError ...), Database.Persist.Class.PersistStore.PersistStoreWrite backend) => Database.Persist.Class.PersistUnique.AtLeastOneUniqueKey (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance ((TypeError ...), Database.Persist.Class.PersistStore.PersistStoreWrite backend) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance ((TypeError ...), Database.Persist.Class.PersistStore.PersistStoreWrite backend) => Database.Persist.Class.PersistUnique.OnlyOneUniqueKey (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance Data.Aeson.Types.FromJSON.FromJSON (Database.Persist.Class.PersistStore.BackendKey backend) => Data.Aeson.Types.FromJSON.FromJSON (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance Data.Aeson.Types.FromJSON.FromJSON (Database.Persist.Class.PersistStore.BackendKey backend) => Data.Aeson.Types.FromJSON.FromJSON (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance Data.Aeson.Types.ToJSON.ToJSON (Database.Persist.Class.PersistStore.BackendKey backend) => Data.Aeson.Types.ToJSON.ToJSON (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance Data.Aeson.Types.ToJSON.ToJSON (Database.Persist.Class.PersistStore.BackendKey backend) => Data.Aeson.Types.ToJSON.ToJSON (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistEntity.SymbolToField "id" (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend) (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistEntity.SymbolToField "id" (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend) (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistEntity.SymbolToField "one" (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend) (TypeLitFieldDefsTest.Labelled "one")
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistEntity.SymbolToField "one" (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend) (TypeLitFieldDefsTest.Finite 1)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistEntity.SymbolToField "twenty" (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend) (TypeLitFieldDefsTest.Labelled "twenty")
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistEntity.SymbolToField "twenty" (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend) (TypeLitFieldDefsTest.Finite 20)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistStore.BackendKey backend) => Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistStore.BackendKey backend) => Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistField.PersistField (TypeLitFieldDefsTest.Finite n)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistField.PersistField (TypeLitFieldDefsTest.Labelled n)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore backend => Database.Persist.Class.PersistEntity.PersistEntity (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore backend => Database.Persist.Class.PersistEntity.PersistEntity (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore backend => Database.Persist.Class.PersistField.PersistField (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore backend => Database.Persist.Class.PersistField.PersistField (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore backend => Database.Persist.Class.PersistStore.ToBackendKey backend (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore backend => Database.Persist.Class.PersistStore.ToBackendKey backend (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore backend => Database.Persist.Sql.Class.PersistFieldSql (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore backend => Database.Persist.Sql.Class.PersistFieldSql (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Class.PersistStore.PersistStoreWrite backend => Database.Persist.Class.PersistEntity.SafeToInsert (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistStore.BackendKey backend) => Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistStore.BackendKey backend) => Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance Database.Persist.Sql.Class.PersistFieldSql (TypeLitFieldDefsTest.Finite n)
+ TypeLitFieldDefsTest: instance Database.Persist.Sql.Class.PersistFieldSql (TypeLitFieldDefsTest.Labelled n)
+ TypeLitFieldDefsTest: instance GHC.Classes.Eq (Database.Persist.Class.PersistStore.BackendKey backend) => GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance GHC.Classes.Eq (Database.Persist.Class.PersistStore.BackendKey backend) => GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance GHC.Classes.Eq (TypeLitFieldDefsTest.Finite n)
+ TypeLitFieldDefsTest: instance GHC.Classes.Eq (TypeLitFieldDefsTest.Labelled t)
+ TypeLitFieldDefsTest: instance GHC.Classes.Eq (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance GHC.Classes.Eq (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance GHC.Classes.Ord (Database.Persist.Class.PersistStore.BackendKey backend) => GHC.Classes.Ord (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance GHC.Classes.Ord (Database.Persist.Class.PersistStore.BackendKey backend) => GHC.Classes.Ord (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance GHC.Read.Read (Database.Persist.Class.PersistStore.BackendKey backend) => GHC.Read.Read (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance GHC.Read.Read (Database.Persist.Class.PersistStore.BackendKey backend) => GHC.Read.Read (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance GHC.Show.Show (Database.Persist.Class.PersistStore.BackendKey backend) => GHC.Show.Show (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance GHC.Show.Show (Database.Persist.Class.PersistStore.BackendKey backend) => GHC.Show.Show (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance GHC.Show.Show (TypeLitFieldDefsTest.Finite n)
+ TypeLitFieldDefsTest: instance GHC.Show.Show (TypeLitFieldDefsTest.Labelled t)
+ TypeLitFieldDefsTest: instance GHC.Show.Show (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend)
+ TypeLitFieldDefsTest: instance GHC.Show.Show (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend)
+ TypeLitFieldDefsTest: instance Web.Internal.HttpApiData.FromHttpApiData (Database.Persist.Class.PersistStore.BackendKey backend) => Web.Internal.HttpApiData.FromHttpApiData (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance Web.Internal.HttpApiData.FromHttpApiData (Database.Persist.Class.PersistStore.BackendKey backend) => Web.Internal.HttpApiData.FromHttpApiData (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance Web.Internal.HttpApiData.ToHttpApiData (Database.Persist.Class.PersistStore.BackendKey backend) => Web.Internal.HttpApiData.ToHttpApiData (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance Web.Internal.HttpApiData.ToHttpApiData (Database.Persist.Class.PersistStore.BackendKey backend) => Web.Internal.HttpApiData.ToHttpApiData (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: instance Web.PathPieces.PathPiece (Database.Persist.Class.PersistStore.BackendKey backend) => Web.PathPieces.PathPiece (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsLabelledGeneric backend))
+ TypeLitFieldDefsTest: instance Web.PathPieces.PathPiece (Database.Persist.Class.PersistStore.BackendKey backend) => Web.PathPieces.PathPiece (Database.Persist.Class.PersistEntity.Key (TypeLitFieldDefsTest.TypeLitFieldDefsNumericGeneric backend))
+ TypeLitFieldDefsTest: specsWith :: Runner backend m => RunDb backend m -> Spec
+ TypeLitFieldDefsTest: typeLitFieldDefsMigrate :: Migration
+ UniqueTest: instance Database.Persist.Class.PersistEntity.SafeToInsert UniqueTest.TestCheckmark
+ UniqueTest: instance Database.Persist.Class.PersistEntity.SafeToInsert UniqueTest.TestNonNull
+ UniqueTest: instance Database.Persist.Class.PersistEntity.SafeToInsert UniqueTest.TestNull
- DataTypeTest: specsWith :: forall db backend m entity. (db ~ ReaderT backend m, PersistStoreRead backend, PersistEntity entity, PersistEntityBackend entity ~ BaseBackend backend, Arbitrary entity, PersistStoreWrite backend, PersistStoreWrite (BaseBackend backend), PersistQueryWrite (BaseBackend backend), PersistQueryWrite backend, MonadFail m, MonadIO m) => (db () -> IO ()) -> Maybe (db [Text]) -> [TestFn entity] -> [(String, entity -> Pico)] -> (entity -> Double) -> Spec
+ DataTypeTest: specsWith :: forall db backend m entity. (db ~ ReaderT backend m, PersistStoreRead backend, PersistEntity entity, PersistEntityBackend entity ~ BaseBackend backend, Arbitrary entity, PersistStoreWrite backend, PersistStoreWrite (BaseBackend backend), PersistQueryWrite (BaseBackend backend), PersistQueryWrite backend, MonadFail m, MonadIO m, SafeToInsert entity) => (db () -> IO ()) -> Maybe (db [Text]) -> [TestFn entity] -> [(String, entity -> Pico)] -> (entity -> Double) -> Spec
Files
- ChangeLog.md +4/−0
- persistent-test.cabal +3/−2
- src/DataTypeTest.hs +2/−0
- src/PersistUniqueTest.hs +127/−31
- src/PersistentTestModels.hs +3/−0
- src/RawSqlTest.hs +2/−1
- src/TypeLitFieldDefsTest.hs +68/−0
ChangeLog.md view
@@ -1,5 +1,9 @@ ## Unreleased changes +## 2.13.1.3++* Support persistent-2.14 with `SafeToInsert` class+ ## 2.13.1.2 * [#1367](https://github.com/yesodweb/persistent/pull/1367),
persistent-test.cabal view
@@ -1,5 +1,5 @@ name: persistent-test-version: 2.13.1.2+version: 2.13.1.3 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -53,6 +53,7 @@ SumTypeTest TransactionLevelTest TreeTest+ TypeLitFieldDefsTest UniqueTest UpsertTest LongIdentifierTest@@ -75,7 +76,7 @@ , monad-logger >= 0.3.25 , mtl , path-pieces >= 0.2- , persistent >= 2.13.3 && < 2.14+ , persistent >= 2.14 && < 2.15 , QuickCheck >= 2.9 , quickcheck-instances >= 0.3 , random >= 1.1
src/DataTypeTest.hs view
@@ -20,6 +20,7 @@ import Test.QuickCheck.Gen (Gen(..)) import Test.QuickCheck.Instances () import Test.QuickCheck.Random (newQCGen)+import Database.Persist.Class.PersistEntity import Database.Persist.TH import Init@@ -91,6 +92,7 @@ , PersistQueryWrite backend , MonadFail m , MonadIO m+ , SafeToInsert entity ) => (db () -> IO ()) -- ^ DB Runner
src/PersistUniqueTest.hs view
@@ -6,43 +6,139 @@ -- mpsGeneric = False is due to a bug or at least lack of a feature in mkKeyTypeDec TH.hs share [mkPersist persistSettings { mpsGeneric = False }, mkMigrate "migration"] [persistLowerCase|- Fo- foo Int- bar Int- Primary foo- UniqueBar bar- deriving Eq Show++Fo+ foo Int+ bar Int+ Primary foo+ UniqueBar bar+ deriving Eq Show++Ba+ foo Int+ baz Int+ UniqueBaz baz+ deriving Eq Show++OnlyPrimaryKey+ foo Int+ name String+ Primary foo+ deriving Eq Show+ |] +deriving stock instance Eq (Unique Fo)+deriving stock instance Show (Unique Fo)++deriving stock instance Show (Unique Ba)+deriving stock instance Eq (Unique Ba)++shouldCompile :: (OnlyOneUniqueKey OnlyPrimaryKey, AtLeastOneUniqueKey OnlyPrimaryKey) => IO ()+shouldCompile = pure ()+ cleanDB :: (MonadIO m, PersistQuery backend, PersistEntityBackend Fo ~ backend) => ReaderT backend m () cleanDB = do deleteWhere ([] :: [Filter Fo]) specsWith :: Runner SqlBackend m => RunDb SqlBackend m -> Spec-specsWith runDb = describe "custom primary key" $ do- it "getBy" $ runDb $ do- let b = 5- k <- insert $ Fo 3 b- Just vk <- get k- Just vu <- getBy (UniqueBar b)- vu @== Entity k vk- it "insertUniqueEntity" $ runDb $ do- let fo = Fo 3 5- Just (Entity _ insertedFoValue) <- insertUniqueEntity fo- Nothing <- insertUniqueEntity fo- fo @== insertedFoValue- it "checkUniqueUpdateable" $ runDb $ do- let f = 3- let b = 5- let fo = Fo f b- k <- insert fo- Just _ <- checkUnique fo -- conflicts with itself+specsWith runDb = describe "PersistUniqueTest" $ do+ describe "getBy" $ do+ it "works to pull a record from the database" $ runDb $ do+ let b = 5+ k <- insert Fo { foFoo = 3, foBar = b }+ Just vk <- get k+ Just vu <- getBy (UniqueBar b)+ vu @== Entity k vk - let fo' = Fo (f + 1) b- Just _ <- checkUnique fo' -- conflicts with fo- Nothing <- checkUniqueUpdateable $ Entity k fo' -- but fo can be updated to fo'+ describe "insertUniqueEntity" $ do+ it "inserts a value if no conflicts are present" $ runDb $ do+ let fo = Fo 3 5+ Just (Entity _ insertedFoValue) <- insertUniqueEntity fo+ fo @== insertedFoValue - let fo'' = Fo (f + 1) (b + 1)- insert_ fo''- Just (UniqueBar conflict) <- checkUniqueUpdateable $ Entity k fo'' -- fo can't be updated to fo''- conflict @== b + 1+ it "does not insert if the record is entirely the same" $ runDb $ do+ let fo = Fo 3 5+ Just (Entity _ insertedFoValue) <- insertUniqueEntity fo+ mresult <- insertUniqueEntity fo+ mresult @== Nothing++ it "does not insert if there is a primary key conflict" $ runDb $ do+ let fo = Fo 3 5+ Just (Entity _ insertedFoValue) <- insertUniqueEntity fo+ mresult <- insertUniqueEntity fo { foFoo = 4 }+ mresult @== Nothing++ it "does not insert if there is a unique key conflict" $ runDb $ do+ let fo = Fo 3 5+ Just (Entity _ insertedFoValue) <- insertUniqueEntity fo+ mresult <- insertUniqueEntity fo { foBar = 4 }+ mresult @== Nothing++ describe "checkUniqueUpdateable" $ do+ describe "with standard id" $ do+ it "returns the unique constraint that failed" $ runDb $ do+ let ba = Ba { baFoo = 1, baBaz = 2 }+ bk <- insert ba+ mresult <- checkUnique ba+ mresult @== Just (UniqueBaz 2)+ it "returns Nothing if no constraint conflict exists" $ runDb $ do+ let ba = Ba { baFoo = 1, baBaz = 2 }+ mresult <- checkUnique ba+ mresult @== Nothing++ describe "with Primary" $ do+ it "conflicts with itself" $ runDb $ do+ let f = 3+ let b = 5+ let fo = Fo f b+ k <- insert fo+ mresult <- checkUnique fo+ mresult @== Just (FoPrimaryKey f)++ it "returns the key that failed" $ runDb $ do+ let f = 3+ let b = 5+ let fo = Fo f b+ k <- insert fo+ _ <- checkUnique fo -- conflicts with itself++ let fo' = Fo (f + 1) b+ Just _ <- checkUnique fo' -- conflicts with fo+ Nothing <- checkUniqueUpdateable $ Entity k fo' -- but fo can be updated to fo'++ let fo'' = Fo (f + 1) (b + 1)+ insert_ fo''+ mresult <- checkUniqueUpdateable $ Entity k fo'' -- fo can't be updated to fo''+ mresult @== Just (FoPrimaryKey (f + 1))++ describe "upsert" $ do+ describe "OnlyPrimaryKey" $ do+ it "can upsert" $ runDb $ do+ let+ record =+ OnlyPrimaryKey+ { onlyPrimaryKeyFoo = 1+ , onlyPrimaryKeyName = "Oh no"+ }+ entity <- upsert record [OnlyPrimaryKeyName =. "Hello"]+ entityVal entity @== record+ entity' <- upsert record [OnlyPrimaryKeyName =. "Hello"]+ entityVal entity' @== record { onlyPrimaryKeyName = "Hello" }++ describe "Fo" $ do+ it "cannot upsert" $ runDb $ do+ -- uncomment to verify+ -- _ <- upsert Fo { foFoo = 1, foBar = 2 } [FoFoo +=. 1]+ pure ()+ it "can upsertBy" $ runDb $ do+ let f = Fo { foFoo = 1, foBar = 2 }+ entity <- upsertBy (FoPrimaryKey 1) f [FoBar +=. 1]+ entityVal entity @== f+ entity' <- upsertBy (FoPrimaryKey 1) f [FoBar +=. 1]+ entityVal entity' @== f { foBar = 1 + foBar f }++ describe "OnlyPrimaryKey" $ do+ it "has unique constraints" $ do+ shouldCompile+
src/PersistentTestModels.hs view
@@ -2,6 +2,9 @@ {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE UndecidableInstances #-} -- FIXME++{-# OPTIONS_GHC -ddump-splices #-}+ module PersistentTestModels where import Data.Aeson hiding (Key)
src/RawSqlTest.hs view
@@ -7,6 +7,7 @@ import qualified Data.Conduit.List as CL import qualified Data.Text as T +import Database.Persist.Class.PersistEntity import Init import Database.Persist.SqlBackend import PersistTestPetType@@ -104,7 +105,7 @@ it "OUTER JOIN" $ runDb $ do- let insert' :: (PersistStore backend, PersistEntity val, PersistEntityBackend val ~ BaseBackend backend, MonadIO m)+ let insert' :: (PersistStore backend, PersistEntity val, PersistEntityBackend val ~ BaseBackend backend, MonadIO m, SafeToInsert val) => val -> ReaderT backend m (Key val, val) insert' v = insert v >>= \k -> return (k, v) (p1k, p1) <- insert' $ Person "Mathias" 23 Nothing
+ src/TypeLitFieldDefsTest.hs view
@@ -0,0 +1,68 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveAnyClass #-}+{-# LANGUAGE UndecidableInstances #-}+{-# OPTIONS_GHC -Wno-unused-top-binds #-}++module TypeLitFieldDefsTest (specsWith, typeLitFieldDefsMigrate) where++import Data.Maybe (fromJust)+import GHC.TypeLits+import Init++newtype Finite (n :: Nat) = Finite Int+ deriving (Show, Eq)++instance PersistField (Finite n) where+ toPersistValue (Finite n) = toPersistValue n+ fromPersistValue = fmap Finite . fromPersistValue++instance PersistFieldSql (Finite n) where+ sqlType _ = sqlType (Proxy :: Proxy Int)++newtype Labelled (t :: Symbol) = Labelled Int+ deriving (Show, Eq)++instance PersistField (Labelled n) where+ toPersistValue (Labelled n) = toPersistValue n+ fromPersistValue = fmap Labelled . fromPersistValue++instance PersistFieldSql (Labelled n) where+ sqlType _ = sqlType (Proxy :: Proxy Int)++share [mkPersist sqlSettings { mpsGeneric = True }, mkMigrate "typeLitFieldDefsMigrate"] [persistLowerCase|+ TypeLitFieldDefsNumeric+ one (Finite 1)+ twenty (Finite 20)+ deriving Eq Show++ TypeLitFieldDefsLabelled+ one (Labelled "one")+ twenty (Labelled "twenty")+ deriving Eq Show+|]++one :: Finite 1+one = Finite 1++oneLabelled :: Labelled "one"+oneLabelled = Labelled 1++twenty :: Finite 20+twenty = Finite 20++twentyLabelled :: Labelled "twenty"+twentyLabelled = Labelled 20++specsWith :: Runner backend m => RunDb backend m -> Spec+specsWith runDb =+ describe "Type Lit Field Definitions" $ do+ it "runs appropriate migrations" $ runDb $ do+ numKey <- insert $ TypeLitFieldDefsNumeric one twenty+ num <- getJust numKey+ liftIO $ typeLitFieldDefsNumericOne num @?= one+ liftIO $ typeLitFieldDefsNumericTwenty num @?= twenty++ labelledKey <- insert $ TypeLitFieldDefsLabelled oneLabelled twentyLabelled+ lbl <- getJust labelledKey+ liftIO $ typeLitFieldDefsLabelledOne lbl @?= oneLabelled+ liftIO $ typeLitFieldDefsLabelledTwenty lbl @?= twentyLabelled