Modulepersistent-test-2.13.2.1Haskell2010
PrimaryTest
- 8 types
- 5 values
- Packagepersistent-test-2.13.2.1
- Exports13
- LanguageHaskell2010
- LicenceMIT
Constructors
Instances23PersistEntity, SafeToInsert, AtLeastOneUniqueKey, OnlyOneUniqueKey, SymbolToField, Eq, …
PersistEntity CompositePrimaryDefined in persistent-test-2.13.2.1 · PrimaryTestSafeToInsert CompositePrimaryDefined in persistent-test-2.13.2.1 · PrimaryTestPersistField CompositePrimaryDefined in persistent-test-2.13.2.1 · PrimaryTestAtLeastOneUniqueKey CompositePrimaryDefined in persistent-test-2.13.2.1 · PrimaryTestOnlyOneUniqueKey CompositePrimaryDefined in persistent-test-2.13.2.1 · PrimaryTestPersistFieldSql CompositePrimaryDefined in persistent-test-2.13.2.1 · PrimaryTestSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"age"
CompositePrimary IntSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"name"
CompositePrimary StringSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"id"
CompositePrimary (Key CompositePrimary)Eq (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTestOrd (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTestRead (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTestShow (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTestGeneric (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTestFromJSON (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTestToJSON (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTestPersistField (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTestPersistFieldSql (Key CompositePrimary)Defined in persistent-test-2.13.2.1 · PrimaryTesttype Rep (Key CompositePrimary) = D1 ('MetaDataDefined in persistent-test-2.13.2.1 · PrimaryTest"Key"
"PrimaryTest"
"persistent-test-2.13.2.1-9oAMIdHEzso84cdauHkpBL"
'False) (C1 ('MetaCons"CompositePrimaryKey"
'PrefixI 'True) (S1 ('MetaSel ('Just"compositePrimaryKeyname"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just"compositePrimaryKeyage"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))data EntityField CompositePrimarytyp ~ CompositePrimaryId => CompositePrimaryIdtyp ~ String => CompositePrimaryNametyp ~ Int => CompositePrimaryAge
data Key CompositePrimaryDefined in persistent-test-2.13.2.1 · PrimaryTesttype PersistEntityBackend CompositePrimary = SqlBackendDefined in persistent-test-2.13.2.1 · PrimaryTestdata Unique CompositePrimaryDefined in persistent-test-2.13.2.1 · PrimaryTest
Instances24PersistEntity, SafeToInsert, AtLeastOneUniqueKey, OnlyOneUniqueKey, SymbolToField, Eq, …
PersistEntity TreesDefined in persistent-test-2.13.2.1 · PrimaryTestSafeToInsert TreesDefined in persistent-test-2.13.2.1 · PrimaryTestPersistField TreesDefined in persistent-test-2.13.2.1 · PrimaryTestAtLeastOneUniqueKey TreesDefined in persistent-test-2.13.2.1 · PrimaryTestOnlyOneUniqueKey TreesDefined in persistent-test-2.13.2.1 · PrimaryTestPersistFieldSql TreesDefined in persistent-test-2.13.2.1 · PrimaryTestSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"name"
Trees StringSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"id"
Trees (Key Trees)SymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"parent"
Trees (Maybe String)Eq (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestOrd (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestRead (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestShow (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestFromJSON (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestToJSON (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestFromHttpApiData (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestToHttpApiData (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestPathPiece (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestPersistField (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestPersistFieldSql (Key Trees)Defined in persistent-test-2.13.2.1 · PrimaryTestdata EntityField TreesDefined in persistent-test-2.13.2.1 · PrimaryTestdata Key TreesTreesKeyunTreesKey :: String
type PersistEntityBackend Trees = SqlBackendDefined in persistent-test-2.13.2.1 · PrimaryTestdata Unique TreesTreesPrimaryKey String
Instances24PersistEntity, SafeToInsert, AtLeastOneUniqueKey, OnlyOneUniqueKey, ToBackendKey, SymbolToField, …
PersistEntity BarDefined in persistent-test-2.13.2.1 · PrimaryTestSafeToInsert BarDefined in persistent-test-2.13.2.1 · PrimaryTestPersistField BarDefined in persistent-test-2.13.2.1 · PrimaryTestTypeError (NoUniqueKeysError Bar) => AtLeastOneUniqueKey BarDefined in persistent-test-2.13.2.1 · PrimaryTestTypeError (NoUniqueKeysError Bar) => OnlyOneUniqueKey BarDefined in persistent-test-2.13.2.1 · PrimaryTestPersistFieldSql BarDefined in persistent-test-2.13.2.1 · PrimaryTestToBackendKey SqlBackend BarDefined in persistent-test-2.13.2.1 · PrimaryTestSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"quux"
Bar FooIdSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"id"
Bar (Key Bar)Eq (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestOrd (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestRead (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestShow (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestFromJSON (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestToJSON (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestFromHttpApiData (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestToHttpApiData (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestPathPiece (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestPersistField (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestPersistFieldSql (Key Bar)Defined in persistent-test-2.13.2.1 · PrimaryTestdata EntityField BarDefined in persistent-test-2.13.2.1 · PrimaryTestdata Key BarBarKeyunBarKey :: BackendKey SqlBackend
type PersistEntityBackend Bar = SqlBackendDefined in persistent-test-2.13.2.1 · PrimaryTestdata Unique BarDefined in persistent-test-2.13.2.1 · PrimaryTest
Instances24PersistEntity, SafeToInsert, AtLeastOneUniqueKey, OnlyOneUniqueKey, SymbolToField, Eq, …
PersistEntity FooDefined in persistent-test-2.13.2.1 · PrimaryTestSafeToInsert FooDefined in persistent-test-2.13.2.1 · PrimaryTestPersistField FooDefined in persistent-test-2.13.2.1 · PrimaryTestAtLeastOneUniqueKey FooDefined in persistent-test-2.13.2.1 · PrimaryTestOnlyOneUniqueKey FooDefined in persistent-test-2.13.2.1 · PrimaryTestPersistFieldSql FooDefined in persistent-test-2.13.2.1 · PrimaryTestSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"name"
Foo StringSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"quux"
Bar FooIdSymbolToFieldDefined in persistent-test-2.13.2.1 · PrimaryTest"id"
Foo (Key Foo)Eq (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestOrd (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestRead (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestShow (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestFromJSON (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestToJSON (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestFromHttpApiData (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestToHttpApiData (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestPathPiece (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestPersistField (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestPersistFieldSql (Key Foo)Defined in persistent-test-2.13.2.1 · PrimaryTestdata EntityField FooDefined in persistent-test-2.13.2.1 · PrimaryTestdata Key FooFooKeyunFooKey :: String
type PersistEntityBackend Foo = SqlBackendDefined in persistent-test-2.13.2.1 · PrimaryTestdata Unique FooFooPrimaryKey String
value
cleanDB :: (MonadIO m, PersistQuery backend, PersistEntityBackend Foo ~ backend) => ReaderT backend m ()