persistent-test-2.0.3.0: Tests for Persistent

Safe HaskellNone
LanguageHaskell2010

PersistentTestModels

Synopsis

Documentation

data PersonGeneric backend Source #

Constructors

Person 
Instances
PersistStore backend => ToBackendKey backend (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (PersonGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (PersonGeneric backend) #

Eq (BackendKey backend) => Eq (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Bool #

(/=) :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Bool #

Eq (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: PersonGeneric backend -> PersonGeneric backend -> Bool #

(/=) :: PersonGeneric backend -> PersonGeneric backend -> Bool #

Ord (BackendKey backend) => Ord (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Ordering #

(<) :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Bool #

(<=) :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Bool #

(>) :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Bool #

(>=) :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Bool #

max :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Key (PersonGeneric backend) #

min :: Key (PersonGeneric backend) -> Key (PersonGeneric backend) -> Key (PersonGeneric backend) #

Read (BackendKey backend) => Read (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (Unique (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Unique (PersonGeneric backend) -> ShowS #

show :: Unique (PersonGeneric backend) -> String #

showList :: [Unique (PersonGeneric backend)] -> ShowS #

Show (BackendKey backend) => Show (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (PersonGeneric backend) -> ShowS #

show :: Key (PersonGeneric backend) -> String #

showList :: [Key (PersonGeneric backend)] -> ShowS #

Show (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> PersonGeneric backend -> ShowS #

show :: PersonGeneric backend -> String #

showList :: [PersonGeneric backend] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

toJSON :: Key (PersonGeneric backend) -> Value #

toEncoding :: Key (PersonGeneric backend) -> Encoding #

toJSONList :: [Key (PersonGeneric backend)] -> Value #

toEncodingList :: [Key (PersonGeneric backend)] -> Encoding #

PersistStore backend => ToJSON (Entity (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => ToJSON (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

parseJSON :: Value -> Parser (Key (PersonGeneric backend)) #

parseJSONList :: Value -> Parser [Key (PersonGeneric backend)] #

PersistStore backend => FromJSON (Entity (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => FromJSON (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (PersonGeneric backend)) #

toPathPiece :: Key (PersonGeneric backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (PersonGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (PersonGeneric backend) -> SqlType #

PersistStoreWrite backend => OnlyOneUniqueKey (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: PersonGeneric backend -> Unique (PersonGeneric backend) #

PersistStoreWrite backend => AtLeastOneUniqueKey (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

requireUniquesP :: PersonGeneric backend -> NonEmpty (Unique (PersonGeneric backend)) #

PersistStore backend => PersistEntity (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (PersonGeneric backend) :: Type #

data Key (PersonGeneric backend) :: Type #

data EntityField (PersonGeneric backend) a :: Type #

data Unique (PersonGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (PersonGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (PersonGeneric backend) ~ BaseBackend backend) => DeleteCascade (PersonGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (PersonGeneric backend) -> ReaderT backend m () #

data Unique (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data EntityField (PersonGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (PersonGeneric backend) typ where
newtype Key (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (PersonGeneric backend) = PersonKey {}
type PersistEntityBackend (PersonGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (PersonGeneric backend) = backend

data Person1Generic backend Source #

Constructors

Person1 

Fields

Instances
PersistStore backend => ToBackendKey backend (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (Person1Generic backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (Person1Generic backend) #

Eq (BackendKey backend) => Eq (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Bool #

(/=) :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Bool #

Eq (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Person1Generic backend -> Person1Generic backend -> Bool #

(/=) :: Person1Generic backend -> Person1Generic backend -> Bool #

Ord (BackendKey backend) => Ord (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Ordering #

(<) :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Bool #

(<=) :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Bool #

(>) :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Bool #

(>=) :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Bool #

max :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Key (Person1Generic backend) #

min :: Key (Person1Generic backend) -> Key (Person1Generic backend) -> Key (Person1Generic backend) #

Read (BackendKey backend) => Read (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (Person1Generic backend) -> ShowS #

show :: Key (Person1Generic backend) -> String #

showList :: [Key (Person1Generic backend)] -> ShowS #

Show (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Person1Generic backend -> ShowS #

show :: Person1Generic backend -> String #

showList :: [Person1Generic backend] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (Person1Generic backend)) #

toPathPiece :: Key (Person1Generic backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (Person1Generic backend)) -> SqlType #

PersistStore backend => PersistFieldSql (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Person1Generic backend) -> SqlType #

((TypeError (NoUniqueKeysError (Person1Generic backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: Person1Generic backend -> Unique (Person1Generic backend) #

((TypeError (MultipleUniqueKeysError (Person1Generic backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (Person1Generic backend) :: Type #

data Key (Person1Generic backend) :: Type #

data EntityField (Person1Generic backend) a :: Type #

data Unique (Person1Generic backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (Person1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (Person1Generic backend) ~ BaseBackend backend) => DeleteCascade (Person1Generic backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (Person1Generic backend) -> ReaderT backend m () #

data Unique (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (Person1Generic backend)
data EntityField (Person1Generic backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (Person1Generic backend) typ where
newtype Key (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (Person1Generic backend) = Person1Key {}
type PersistEntityBackend (Person1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (Person1Generic backend) = backend

data PersonMaybeAgeGeneric backend Source #

Instances
PersistStore backend => ToBackendKey backend (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Eq (BackendKey backend) => Eq (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (PersonMaybeAgeGeneric backend) -> Key (PersonMaybeAgeGeneric backend) -> Bool #

(/=) :: Key (PersonMaybeAgeGeneric backend) -> Key (PersonMaybeAgeGeneric backend) -> Bool #

Ord (BackendKey backend) => Ord (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Read (BackendKey backend) => Read (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToJSON (BackendKey backend) => ToJSON (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (PersonMaybeAgeGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

((TypeError (NoUniqueKeysError (PersonMaybeAgeGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

((TypeError (MultipleUniqueKeysError (PersonMaybeAgeGeneric backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (PersonMaybeAgeGeneric backend) :: Type #

data Key (PersonMaybeAgeGeneric backend) :: Type #

data EntityField (PersonMaybeAgeGeneric backend) a :: Type #

data Unique (PersonMaybeAgeGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (PersonMaybeAgeGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (PersonMaybeAgeGeneric backend) ~ BaseBackend backend) => DeleteCascade (PersonMaybeAgeGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (PersonMaybeAgeGeneric backend) -> ReaderT backend m () #

data Unique (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data EntityField (PersonMaybeAgeGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (PersonMaybeAgeGeneric backend) typ where
newtype Key (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (PersonMaybeAgeGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data PersonMayGeneric backend Source #

Constructors

PersonMay 
Instances
PersistStore backend => ToBackendKey backend (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (PersonMayGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (PersonMayGeneric backend) #

Eq (BackendKey backend) => Eq (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Bool #

(/=) :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Bool #

Eq (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: PersonMayGeneric backend -> PersonMayGeneric backend -> Bool #

(/=) :: PersonMayGeneric backend -> PersonMayGeneric backend -> Bool #

Ord (BackendKey backend) => Ord (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Ordering #

(<) :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Bool #

(<=) :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Bool #

(>) :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Bool #

(>=) :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Bool #

max :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) #

min :: Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) -> Key (PersonMayGeneric backend) #

Read (BackendKey backend) => Read (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (PersonMayGeneric backend) -> ShowS #

show :: Key (PersonMayGeneric backend) -> String #

showList :: [Key (PersonMayGeneric backend)] -> ShowS #

Show (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> PersonMayGeneric backend -> ShowS #

show :: PersonMayGeneric backend -> String #

showList :: [PersonMayGeneric backend] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => ToJSON (Entity (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => ToJSON (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => FromJSON (Entity (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => FromJSON (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (PersonMayGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (PersonMayGeneric backend) -> SqlType #

((TypeError (NoUniqueKeysError (PersonMayGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: PersonMayGeneric backend -> Unique (PersonMayGeneric backend) #

((TypeError (MultipleUniqueKeysError (PersonMayGeneric backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (PersonMayGeneric backend) :: Type #

data Key (PersonMayGeneric backend) :: Type #

data EntityField (PersonMayGeneric backend) a :: Type #

data Unique (PersonMayGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (PersonMayGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (PersonMayGeneric backend) ~ BaseBackend backend) => DeleteCascade (PersonMayGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (PersonMayGeneric backend) -> ReaderT backend m () #

data Unique (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (PersonMayGeneric backend)
data EntityField (PersonMayGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (PersonMayGeneric backend) typ where
newtype Key (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (PersonMayGeneric backend) = PersonMayKey {}
type PersistEntityBackend (PersonMayGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (PersonMayGeneric backend) = backend

data PetGeneric backend Source #

Constructors

Pet 

Fields

Instances
PersistStore backend => ToBackendKey backend (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (PetGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (PetGeneric backend) #

Eq (BackendKey backend) => Eq (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Bool #

(/=) :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Bool #

Eq (BackendKey backend) => Eq (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: PetGeneric backend -> PetGeneric backend -> Bool #

(/=) :: PetGeneric backend -> PetGeneric backend -> Bool #

Ord (BackendKey backend) => Ord (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Ordering #

(<) :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Bool #

(<=) :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Bool #

(>) :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Bool #

(>=) :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Bool #

max :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Key (PetGeneric backend) #

min :: Key (PetGeneric backend) -> Key (PetGeneric backend) -> Key (PetGeneric backend) #

Read (BackendKey backend) => Read (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

readsPrec :: Int -> ReadS (Key (PetGeneric backend)) #

readList :: ReadS [Key (PetGeneric backend)] #

readPrec :: ReadPrec (Key (PetGeneric backend)) #

readListPrec :: ReadPrec [Key (PetGeneric backend)] #

Show (BackendKey backend) => Show (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (PetGeneric backend) -> ShowS #

show :: Key (PetGeneric backend) -> String #

showList :: [Key (PetGeneric backend)] -> ShowS #

Show (BackendKey backend) => Show (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> PetGeneric backend -> ShowS #

show :: PetGeneric backend -> String #

showList :: [PetGeneric backend] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

toJSON :: Key (PetGeneric backend) -> Value #

toEncoding :: Key (PetGeneric backend) -> Encoding #

toJSONList :: [Key (PetGeneric backend)] -> Value #

toEncodingList :: [Key (PetGeneric backend)] -> Encoding #

FromJSON (BackendKey backend) => FromJSON (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

parseJSON :: Value -> Parser (Key (PetGeneric backend)) #

parseJSONList :: Value -> Parser [Key (PetGeneric backend)] #

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

toUrlPiece :: Key (PetGeneric backend) -> Text #

toEncodedUrlPiece :: Key (PetGeneric backend) -> Builder #

toHeader :: Key (PetGeneric backend) -> ByteString #

toQueryParam :: Key (PetGeneric backend) -> Text #

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (PetGeneric backend)) #

toPathPiece :: Key (PetGeneric backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (PetGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (PetGeneric backend) -> SqlType #

((TypeError (NoUniqueKeysError (PetGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: PetGeneric backend -> Unique (PetGeneric backend) #

((TypeError (MultipleUniqueKeysError (PetGeneric backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

requireUniquesP :: PetGeneric backend -> NonEmpty (Unique (PetGeneric backend)) #

PersistStore backend => PersistEntity (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (PetGeneric backend) :: Type #

data Key (PetGeneric backend) :: Type #

data EntityField (PetGeneric backend) a :: Type #

data Unique (PetGeneric backend) :: Type #

Methods

keyToValues :: Key (PetGeneric backend) -> [PersistValue] #

keyFromValues :: [PersistValue] -> Either Text (Key (PetGeneric backend)) #

persistIdField :: EntityField (PetGeneric backend) (Key (PetGeneric backend)) #

entityDef :: Monad m => m (PetGeneric backend) -> EntityDef #

persistFieldDef :: EntityField (PetGeneric backend) typ -> FieldDef #

toPersistFields :: PetGeneric backend -> [SomePersistField] #

fromPersistValues :: [PersistValue] -> Either Text (PetGeneric backend) #

persistUniqueKeys :: PetGeneric backend -> [Unique (PetGeneric backend)] #

persistUniqueToFieldNames :: Unique (PetGeneric backend) -> [(HaskellName, DBName)] #

persistUniqueToValues :: Unique (PetGeneric backend) -> [PersistValue] #

fieldLens :: EntityField (PetGeneric backend) field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity (PetGeneric backend) -> f (Entity (PetGeneric backend)) #

PersistField (BackendKey backend) => PersistField (Key (PetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (PetGeneric backend) ~ BaseBackend backend) => DeleteCascade (PetGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (PetGeneric backend) -> ReaderT backend m () #

data Unique (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (PetGeneric backend)
data EntityField (PetGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (PetGeneric backend) typ where
newtype Key (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (PetGeneric backend) = PetKey {}
type PersistEntityBackend (PetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (PetGeneric backend) = backend

data MaybeOwnedPetGeneric backend Source #

Instances
PersistStore backend => ToBackendKey backend (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (MaybeOwnedPetGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (MaybeOwnedPetGeneric backend) #

Eq (BackendKey backend) => Eq (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (MaybeOwnedPetGeneric backend) -> Key (MaybeOwnedPetGeneric backend) -> Bool #

(/=) :: Key (MaybeOwnedPetGeneric backend) -> Key (MaybeOwnedPetGeneric backend) -> Bool #

Ord (BackendKey backend) => Ord (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Read (BackendKey backend) => Read (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToJSON (BackendKey backend) => ToJSON (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (MaybeOwnedPetGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (MaybeOwnedPetGeneric backend) -> SqlType #

((TypeError (NoUniqueKeysError (MaybeOwnedPetGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

((TypeError (MultipleUniqueKeysError (MaybeOwnedPetGeneric backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (MaybeOwnedPetGeneric backend) :: Type #

data Key (MaybeOwnedPetGeneric backend) :: Type #

data EntityField (MaybeOwnedPetGeneric backend) a :: Type #

data Unique (MaybeOwnedPetGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (MaybeOwnedPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (MaybeOwnedPetGeneric backend) ~ BaseBackend backend) => DeleteCascade (MaybeOwnedPetGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (MaybeOwnedPetGeneric backend) -> ReaderT backend m () #

data Unique (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data EntityField (MaybeOwnedPetGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (MaybeOwnedPetGeneric backend) typ where
newtype Key (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (MaybeOwnedPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data NeedsPetGeneric backend Source #

Constructors

NeedsPet 

Fields

Instances
PersistStore backend => ToBackendKey backend (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (NeedsPetGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (NeedsPetGeneric backend) #

Eq (BackendKey backend) => Eq (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Bool #

(/=) :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Bool #

Ord (BackendKey backend) => Ord (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Ordering #

(<) :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Bool #

(<=) :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Bool #

(>) :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Bool #

(>=) :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Bool #

max :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) #

min :: Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) -> Key (NeedsPetGeneric backend) #

Read (BackendKey backend) => Read (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (NeedsPetGeneric backend) -> ShowS #

show :: Key (NeedsPetGeneric backend) -> String #

showList :: [Key (NeedsPetGeneric backend)] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (NeedsPetGeneric backend)) #

toPathPiece :: Key (NeedsPetGeneric backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (NeedsPetGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (NeedsPetGeneric backend) -> SqlType #

((TypeError (NoUniqueKeysError (NeedsPetGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: NeedsPetGeneric backend -> Unique (NeedsPetGeneric backend) #

((TypeError (MultipleUniqueKeysError (NeedsPetGeneric backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (NeedsPetGeneric backend) :: Type #

data Key (NeedsPetGeneric backend) :: Type #

data EntityField (NeedsPetGeneric backend) a :: Type #

data Unique (NeedsPetGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (NeedsPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (NeedsPetGeneric backend) ~ BaseBackend backend) => DeleteCascade (NeedsPetGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (NeedsPetGeneric backend) -> ReaderT backend m () #

data Unique (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (NeedsPetGeneric backend)
data EntityField (NeedsPetGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (NeedsPetGeneric backend) typ where
newtype Key (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (NeedsPetGeneric backend) = NeedsPetKey {}
type PersistEntityBackend (NeedsPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (NeedsPetGeneric backend) = backend

data OutdoorPetGeneric backend Source #

Instances
PersistStore backend => ToBackendKey backend (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (OutdoorPetGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (OutdoorPetGeneric backend) #

Eq (BackendKey backend) => Eq (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Bool #

(/=) :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Bool #

Ord (BackendKey backend) => Ord (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Ordering #

(<) :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Bool #

(<=) :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Bool #

(>) :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Bool #

(>=) :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Bool #

max :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) #

min :: Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) -> Key (OutdoorPetGeneric backend) #

Read (BackendKey backend) => Read (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (OutdoorPetGeneric backend) -> ShowS #

show :: Key (OutdoorPetGeneric backend) -> String #

showList :: [Key (OutdoorPetGeneric backend)] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (OutdoorPetGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (OutdoorPetGeneric backend) -> SqlType #

((TypeError (NoUniqueKeysError (OutdoorPetGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: OutdoorPetGeneric backend -> Unique (OutdoorPetGeneric backend) #

((TypeError (MultipleUniqueKeysError (OutdoorPetGeneric backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (OutdoorPetGeneric backend) :: Type #

data Key (OutdoorPetGeneric backend) :: Type #

data EntityField (OutdoorPetGeneric backend) a :: Type #

data Unique (OutdoorPetGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (OutdoorPetGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (OutdoorPetGeneric backend) ~ BaseBackend backend) => DeleteCascade (OutdoorPetGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (OutdoorPetGeneric backend) -> ReaderT backend m () #

data Unique (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (OutdoorPetGeneric backend)
data EntityField (OutdoorPetGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (OutdoorPetGeneric backend) typ where
newtype Key (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (OutdoorPetGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (OutdoorPetGeneric backend) = backend

data UserPTGeneric backend Source #

Constructors

UserPT 
Instances
PersistStore backend => ToBackendKey backend (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (UserPTGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (UserPTGeneric backend) #

Eq (BackendKey backend) => Eq (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Bool #

(/=) :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Bool #

Ord (BackendKey backend) => Ord (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Ordering #

(<) :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Bool #

(<=) :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Bool #

(>) :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Bool #

(>=) :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Bool #

max :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) #

min :: Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) -> Key (UserPTGeneric backend) #

Read (BackendKey backend) => Read (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (Unique (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Unique (UserPTGeneric backend) -> ShowS #

show :: Unique (UserPTGeneric backend) -> String #

showList :: [Unique (UserPTGeneric backend)] -> ShowS #

Show (BackendKey backend) => Show (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (UserPTGeneric backend) -> ShowS #

show :: Key (UserPTGeneric backend) -> String #

showList :: [Key (UserPTGeneric backend)] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

toJSON :: Key (UserPTGeneric backend) -> Value #

toEncoding :: Key (UserPTGeneric backend) -> Encoding #

toJSONList :: [Key (UserPTGeneric backend)] -> Value #

toEncodingList :: [Key (UserPTGeneric backend)] -> Encoding #

FromJSON (BackendKey backend) => FromJSON (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

parseJSON :: Value -> Parser (Key (UserPTGeneric backend)) #

parseJSONList :: Value -> Parser [Key (UserPTGeneric backend)] #

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (UserPTGeneric backend)) #

toPathPiece :: Key (UserPTGeneric backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (UserPTGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (UserPTGeneric backend) -> SqlType #

PersistStoreWrite backend => OnlyOneUniqueKey (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: UserPTGeneric backend -> Unique (UserPTGeneric backend) #

PersistStoreWrite backend => AtLeastOneUniqueKey (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

requireUniquesP :: UserPTGeneric backend -> NonEmpty (Unique (UserPTGeneric backend)) #

PersistStore backend => PersistEntity (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (UserPTGeneric backend) :: Type #

data Key (UserPTGeneric backend) :: Type #

data EntityField (UserPTGeneric backend) a :: Type #

data Unique (UserPTGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (UserPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (UserPTGeneric backend) ~ BaseBackend backend) => DeleteCascade (UserPTGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (UserPTGeneric backend) -> ReaderT backend m () #

data Unique (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data EntityField (UserPTGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (UserPTGeneric backend) typ where
newtype Key (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (UserPTGeneric backend) = UserPTKey {}
type PersistEntityBackend (UserPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (UserPTGeneric backend) = backend

data EmailPTGeneric backend Source #

Constructors

EmailPT 
Instances
PersistStore backend => ToBackendKey backend (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (EmailPTGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (EmailPTGeneric backend) #

Eq (BackendKey backend) => Eq (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Bool #

(/=) :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Bool #

Ord (BackendKey backend) => Ord (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Ordering #

(<) :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Bool #

(<=) :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Bool #

(>) :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Bool #

(>=) :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Bool #

max :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) #

min :: Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) -> Key (EmailPTGeneric backend) #

Read (BackendKey backend) => Read (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (Unique (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Unique (EmailPTGeneric backend) -> ShowS #

show :: Unique (EmailPTGeneric backend) -> String #

showList :: [Unique (EmailPTGeneric backend)] -> ShowS #

Show (BackendKey backend) => Show (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (EmailPTGeneric backend) -> ShowS #

show :: Key (EmailPTGeneric backend) -> String #

showList :: [Key (EmailPTGeneric backend)] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (EmailPTGeneric backend)) #

toPathPiece :: Key (EmailPTGeneric backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (EmailPTGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (EmailPTGeneric backend) -> SqlType #

PersistStoreWrite backend => OnlyOneUniqueKey (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: EmailPTGeneric backend -> Unique (EmailPTGeneric backend) #

PersistStoreWrite backend => AtLeastOneUniqueKey (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (EmailPTGeneric backend) :: Type #

data Key (EmailPTGeneric backend) :: Type #

data EntityField (EmailPTGeneric backend) a :: Type #

data Unique (EmailPTGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (EmailPTGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (EmailPTGeneric backend) ~ BaseBackend backend) => DeleteCascade (EmailPTGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (EmailPTGeneric backend) -> ReaderT backend m () #

data Unique (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data EntityField (EmailPTGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (EmailPTGeneric backend) typ where
newtype Key (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (EmailPTGeneric backend) = EmailPTKey {}
type PersistEntityBackend (EmailPTGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (EmailPTGeneric backend) = backend

data UpsertGeneric backend Source #

Constructors

Upsert 
Instances
PersistStore backend => ToBackendKey backend (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (UpsertGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (UpsertGeneric backend) #

Eq (BackendKey backend) => Eq (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Bool #

(/=) :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Bool #

Eq (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: UpsertGeneric backend -> UpsertGeneric backend -> Bool #

(/=) :: UpsertGeneric backend -> UpsertGeneric backend -> Bool #

Ord (BackendKey backend) => Ord (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Ordering #

(<) :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Bool #

(<=) :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Bool #

(>) :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Bool #

(>=) :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Bool #

max :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) #

min :: Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) -> Key (UpsertGeneric backend) #

Read (BackendKey backend) => Read (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (Unique (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Unique (UpsertGeneric backend) -> ShowS #

show :: Unique (UpsertGeneric backend) -> String #

showList :: [Unique (UpsertGeneric backend)] -> ShowS #

Show (BackendKey backend) => Show (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (UpsertGeneric backend) -> ShowS #

show :: Key (UpsertGeneric backend) -> String #

showList :: [Key (UpsertGeneric backend)] -> ShowS #

Show (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> UpsertGeneric backend -> ShowS #

show :: UpsertGeneric backend -> String #

showList :: [UpsertGeneric backend] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

toJSON :: Key (UpsertGeneric backend) -> Value #

toEncoding :: Key (UpsertGeneric backend) -> Encoding #

toJSONList :: [Key (UpsertGeneric backend)] -> Value #

toEncodingList :: [Key (UpsertGeneric backend)] -> Encoding #

FromJSON (BackendKey backend) => FromJSON (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

parseJSON :: Value -> Parser (Key (UpsertGeneric backend)) #

parseJSONList :: Value -> Parser [Key (UpsertGeneric backend)] #

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (UpsertGeneric backend)) #

toPathPiece :: Key (UpsertGeneric backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (UpsertGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (UpsertGeneric backend) -> SqlType #

PersistStoreWrite backend => OnlyOneUniqueKey (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: UpsertGeneric backend -> Unique (UpsertGeneric backend) #

PersistStoreWrite backend => AtLeastOneUniqueKey (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

requireUniquesP :: UpsertGeneric backend -> NonEmpty (Unique (UpsertGeneric backend)) #

PersistStore backend => PersistEntity (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (UpsertGeneric backend) :: Type #

data Key (UpsertGeneric backend) :: Type #

data EntityField (UpsertGeneric backend) a :: Type #

data Unique (UpsertGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (UpsertGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (UpsertGeneric backend) ~ BaseBackend backend) => DeleteCascade (UpsertGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (UpsertGeneric backend) -> ReaderT backend m () #

data Unique (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data EntityField (UpsertGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (UpsertGeneric backend) typ where
newtype Key (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (UpsertGeneric backend) = UpsertKey {}
type PersistEntityBackend (UpsertGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (UpsertGeneric backend) = backend

data UpsertByGeneric backend Source #

Constructors

UpsertBy 
Instances
PersistStore backend => ToBackendKey backend (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (UpsertByGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (UpsertByGeneric backend) #

Eq (BackendKey backend) => Eq (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Bool #

(/=) :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Bool #

Eq (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: UpsertByGeneric backend -> UpsertByGeneric backend -> Bool #

(/=) :: UpsertByGeneric backend -> UpsertByGeneric backend -> Bool #

Ord (BackendKey backend) => Ord (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Ordering #

(<) :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Bool #

(<=) :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Bool #

(>) :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Bool #

(>=) :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Bool #

max :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) #

min :: Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) -> Key (UpsertByGeneric backend) #

Read (BackendKey backend) => Read (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (Unique (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Unique (UpsertByGeneric backend) -> ShowS #

show :: Unique (UpsertByGeneric backend) -> String #

showList :: [Unique (UpsertByGeneric backend)] -> ShowS #

Show (BackendKey backend) => Show (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (UpsertByGeneric backend) -> ShowS #

show :: Key (UpsertByGeneric backend) -> String #

showList :: [Key (UpsertByGeneric backend)] -> ShowS #

Show (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> UpsertByGeneric backend -> ShowS #

show :: UpsertByGeneric backend -> String #

showList :: [UpsertByGeneric backend] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (UpsertByGeneric backend)) #

toPathPiece :: Key (UpsertByGeneric backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (UpsertByGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (UpsertByGeneric backend) -> SqlType #

((TypeError (MultipleUniqueKeysError (UpsertByGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: UpsertByGeneric backend -> Unique (UpsertByGeneric backend) #

PersistStoreWrite backend => AtLeastOneUniqueKey (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (UpsertByGeneric backend) :: Type #

data Key (UpsertByGeneric backend) :: Type #

data EntityField (UpsertByGeneric backend) a :: Type #

data Unique (UpsertByGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (UpsertByGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (UpsertByGeneric backend) ~ BaseBackend backend) => DeleteCascade (UpsertByGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (UpsertByGeneric backend) -> ReaderT backend m () #

data Unique (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data EntityField (UpsertByGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (UpsertByGeneric backend) typ where
newtype Key (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (UpsertByGeneric backend) = UpsertByKey {}
type PersistEntityBackend (UpsertByGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (UpsertByGeneric backend) = backend

data StrictGeneric backend Source #

Constructors

Strict 

Fields

Instances
PersistStore backend => ToBackendKey backend (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (StrictGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (StrictGeneric backend) #

Eq (BackendKey backend) => Eq (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Bool #

(/=) :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Bool #

Ord (BackendKey backend) => Ord (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Ordering #

(<) :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Bool #

(<=) :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Bool #

(>) :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Bool #

(>=) :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Bool #

max :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Key (StrictGeneric backend) #

min :: Key (StrictGeneric backend) -> Key (StrictGeneric backend) -> Key (StrictGeneric backend) #

Read (BackendKey backend) => Read (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (StrictGeneric backend) -> ShowS #

show :: Key (StrictGeneric backend) -> String #

showList :: [Key (StrictGeneric backend)] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

toJSON :: Key (StrictGeneric backend) -> Value #

toEncoding :: Key (StrictGeneric backend) -> Encoding #

toJSONList :: [Key (StrictGeneric backend)] -> Value #

toEncodingList :: [Key (StrictGeneric backend)] -> Encoding #

FromJSON (BackendKey backend) => FromJSON (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

parseJSON :: Value -> Parser (Key (StrictGeneric backend)) #

parseJSONList :: Value -> Parser [Key (StrictGeneric backend)] #

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

fromPathPiece :: Text -> Maybe (Key (StrictGeneric backend)) #

toPathPiece :: Key (StrictGeneric backend) -> Text #

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (StrictGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (StrictGeneric backend) -> SqlType #

((TypeError (NoUniqueKeysError (StrictGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: StrictGeneric backend -> Unique (StrictGeneric backend) #

((TypeError (MultipleUniqueKeysError (StrictGeneric backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

requireUniquesP :: StrictGeneric backend -> NonEmpty (Unique (StrictGeneric backend)) #

PersistStore backend => PersistEntity (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (StrictGeneric backend) :: Type #

data Key (StrictGeneric backend) :: Type #

data EntityField (StrictGeneric backend) a :: Type #

data Unique (StrictGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (StrictGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

(PersistQuery backend, PersistEntityBackend (StrictGeneric backend) ~ BaseBackend backend) => DeleteCascade (StrictGeneric backend) backend Source # 
Instance details

Defined in PersistentTestModels

Methods

deleteCascade :: MonadIO m => Key (StrictGeneric backend) -> ReaderT backend m () #

data Unique (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (StrictGeneric backend)
data EntityField (StrictGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (StrictGeneric backend) typ where
newtype Key (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (StrictGeneric backend) = StrictKey {}
type PersistEntityBackend (StrictGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (StrictGeneric backend) = backend

data NoPrefix1Generic backend Source #

Constructors

NoPrefix1 

Fields

Instances
PersistStore backend => ToBackendKey backend (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (NoPrefix1Generic backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (NoPrefix1Generic backend) #

Eq (BackendKey backend) => Eq (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Bool #

(/=) :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Bool #

Eq (BackendKey backend) => Eq (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: NoPrefix1Generic backend -> NoPrefix1Generic backend -> Bool #

(/=) :: NoPrefix1Generic backend -> NoPrefix1Generic backend -> Bool #

Ord (BackendKey backend) => Ord (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Ordering #

(<) :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Bool #

(<=) :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Bool #

(>) :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Bool #

(>=) :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Bool #

max :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) #

min :: Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) -> Key (NoPrefix1Generic backend) #

Read (BackendKey backend) => Read (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (NoPrefix1Generic backend) -> ShowS #

show :: Key (NoPrefix1Generic backend) -> String #

showList :: [Key (NoPrefix1Generic backend)] -> ShowS #

Show (BackendKey backend) => Show (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> NoPrefix1Generic backend -> ShowS #

show :: NoPrefix1Generic backend -> String #

showList :: [NoPrefix1Generic backend] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (NoPrefix1Generic backend)) -> SqlType #

PersistStore backend => PersistFieldSql (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (NoPrefix1Generic backend) -> SqlType #

((TypeError (NoUniqueKeysError (NoPrefix1Generic backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: NoPrefix1Generic backend -> Unique (NoPrefix1Generic backend) #

((TypeError (MultipleUniqueKeysError (NoPrefix1Generic backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (NoPrefix1Generic backend) :: Type #

data Key (NoPrefix1Generic backend) :: Type #

data EntityField (NoPrefix1Generic backend) a :: Type #

data Unique (NoPrefix1Generic backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (NoPrefix1Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (NoPrefix1Generic backend)
data EntityField (NoPrefix1Generic backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (NoPrefix1Generic backend) typ where
newtype Key (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (NoPrefix1Generic backend) = NoPrefix1Key {}
type PersistEntityBackend (NoPrefix1Generic backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (NoPrefix1Generic backend) = backend

data NoPrefix2Generic backend Source #

Constructors

NoPrefix2 
Instances
PersistStore backend => ToBackendKey backend (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (NoPrefix2Generic backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (NoPrefix2Generic backend) #

Eq (BackendKey backend) => Eq (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Bool #

(/=) :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Bool #

Eq (BackendKey backend) => Eq (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: NoPrefix2Generic backend -> NoPrefix2Generic backend -> Bool #

(/=) :: NoPrefix2Generic backend -> NoPrefix2Generic backend -> Bool #

Ord (BackendKey backend) => Ord (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Ordering #

(<) :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Bool #

(<=) :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Bool #

(>) :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Bool #

(>=) :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Bool #

max :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) #

min :: Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) -> Key (NoPrefix2Generic backend) #

Read (BackendKey backend) => Read (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (NoPrefix2Generic backend) -> ShowS #

show :: Key (NoPrefix2Generic backend) -> String #

showList :: [Key (NoPrefix2Generic backend)] -> ShowS #

Show (BackendKey backend) => Show (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> NoPrefix2Generic backend -> ShowS #

show :: NoPrefix2Generic backend -> String #

showList :: [NoPrefix2Generic backend] -> ShowS #

ToJSON (BackendKey backend) => ToJSON (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (NoPrefix2Generic backend)) -> SqlType #

PersistStore backend => PersistFieldSql (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (NoPrefix2Generic backend) -> SqlType #

((TypeError (NoUniqueKeysError (NoPrefix2Generic backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

onlyUniqueP :: NoPrefix2Generic backend -> Unique (NoPrefix2Generic backend) #

((TypeError (MultipleUniqueKeysError (NoPrefix2Generic backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (NoPrefix2Generic backend) :: Type #

data Key (NoPrefix2Generic backend) :: Type #

data EntityField (NoPrefix2Generic backend) a :: Type #

data Unique (NoPrefix2Generic backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (NoPrefix2Generic backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (NoPrefix2Generic backend)
data EntityField (NoPrefix2Generic backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (NoPrefix2Generic backend) typ where
newtype Key (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

newtype Key (NoPrefix2Generic backend) = NoPrefix2Key {}
type PersistEntityBackend (NoPrefix2Generic backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (NoPrefix2Generic backend) = backend

data NoPrefixSumGeneric backend Source #

Instances
PersistStore backend => ToBackendKey backend (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

toBackendKey :: Key (NoPrefixSumGeneric backend) -> BackendKey backend #

fromBackendKey :: BackendKey backend -> Key (NoPrefixSumGeneric backend) #

Eq (BackendKey backend) => Eq (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Bool #

(/=) :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Bool #

Eq (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

(==) :: NoPrefixSumGeneric backend -> NoPrefixSumGeneric backend -> Bool #

(/=) :: NoPrefixSumGeneric backend -> NoPrefixSumGeneric backend -> Bool #

Ord (BackendKey backend) => Ord (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

compare :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Ordering #

(<) :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Bool #

(<=) :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Bool #

(>) :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Bool #

(>=) :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Bool #

max :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) #

min :: Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) -> Key (NoPrefixSumGeneric backend) #

Read (BackendKey backend) => Read (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Show (BackendKey backend) => Show (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

showsPrec :: Int -> Key (NoPrefixSumGeneric backend) -> ShowS #

show :: Key (NoPrefixSumGeneric backend) -> String #

showList :: [Key (NoPrefixSumGeneric backend)] -> ShowS #

Show (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

ToJSON (BackendKey backend) => ToJSON (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromJSON (BackendKey backend) => FromJSON (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

ToHttpApiData (BackendKey backend) => ToHttpApiData (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

FromHttpApiData (BackendKey backend) => FromHttpApiData (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PathPiece (BackendKey backend) => PathPiece (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistFieldSql (BackendKey backend) => PersistFieldSql (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (Key (NoPrefixSumGeneric backend)) -> SqlType #

PersistStore backend => PersistFieldSql (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Methods

sqlType :: Proxy (NoPrefixSumGeneric backend) -> SqlType #

((TypeError (NoUniqueKeysError (NoPrefixSumGeneric backend)) :: Constraint), PersistStoreWrite backend) => OnlyOneUniqueKey (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

((TypeError (MultipleUniqueKeysError (NoPrefixSumGeneric backend)) :: Constraint), PersistStoreWrite backend) => AtLeastOneUniqueKey (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistEntity (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

Associated Types

type PersistEntityBackend (NoPrefixSumGeneric backend) :: Type #

data Key (NoPrefixSumGeneric backend) :: Type #

data EntityField (NoPrefixSumGeneric backend) a :: Type #

data Unique (NoPrefixSumGeneric backend) :: Type #

PersistField (BackendKey backend) => PersistField (Key (NoPrefixSumGeneric backend)) Source # 
Instance details

Defined in PersistentTestModels

PersistStore backend => PersistField (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

data Unique (NoPrefixSumGeneric backend)
data EntityField (NoPrefixSumGeneric backend) typ Source # 
Instance details

Defined in PersistentTestModels

data EntityField (NoPrefixSumGeneric backend) typ where
newtype Key (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (NoPrefixSumGeneric backend) Source # 
Instance details

Defined in PersistentTestModels

type PersistEntityBackend (NoPrefixSumGeneric backend) = backend