persistent-test-2.13.1.3: Tests for Persistent
Safe HaskellNone
LanguageHaskell2010

LargeNumberTest

Documentation

data NumberGeneric backend Source #

Instances

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

Defined in LargeNumberTest

Methods

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

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

SymbolToField "int32" (NumberGeneric backend) Int32 Source # 
Instance details

Defined in LargeNumberTest

SymbolToField "int64" (NumberGeneric backend) Int64 Source # 
Instance details

Defined in LargeNumberTest

SymbolToField "intx" (NumberGeneric backend) Int Source # 
Instance details

Defined in LargeNumberTest

SymbolToField "word32" (NumberGeneric backend) Word32 Source # 
Instance details

Defined in LargeNumberTest

SymbolToField "word64" (NumberGeneric backend) Word64 Source # 
Instance details

Defined in LargeNumberTest

SymbolToField "id" (NumberGeneric backend) (Key (NumberGeneric backend)) Source # 
Instance details

Defined in LargeNumberTest

Methods

symbolToField :: EntityField (NumberGeneric backend) (Key (NumberGeneric backend)) #

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

Defined in LargeNumberTest

Methods

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

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

Eq (NumberGeneric backend) Source # 
Instance details

Defined in LargeNumberTest

Methods

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

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

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

Defined in LargeNumberTest

Methods

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

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

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

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

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

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

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

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

Defined in LargeNumberTest

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

Defined in LargeNumberTest

Methods

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

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

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

Show (NumberGeneric backend) Source # 
Instance details

Defined in LargeNumberTest

Methods

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

show :: NumberGeneric backend -> String #

showList :: [NumberGeneric backend] -> ShowS #

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

Defined in LargeNumberTest

Methods

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

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

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

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

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

Defined in LargeNumberTest

Methods

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

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

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

Defined in LargeNumberTest

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

Defined in LargeNumberTest

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

Defined in LargeNumberTest

Methods

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

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

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

Defined in LargeNumberTest

Methods

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

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

Defined in LargeNumberTest

Methods

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

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

Defined in LargeNumberTest

Methods

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

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

Defined in LargeNumberTest

Methods

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

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

Defined in LargeNumberTest

Associated Types

type PersistEntityBackend (NumberGeneric backend) #

data Key (NumberGeneric backend) #

data EntityField (NumberGeneric backend) :: Type -> Type #

data Unique (NumberGeneric backend) #

PersistStoreWrite backend => SafeToInsert (NumberGeneric backend) Source # 
Instance details

Defined in LargeNumberTest

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

Defined in LargeNumberTest

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

Defined in LargeNumberTest

data Unique (NumberGeneric backend) Source # 
Instance details

Defined in LargeNumberTest

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

Defined in LargeNumberTest

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

Defined in LargeNumberTest

newtype Key (NumberGeneric backend) = NumberKey {}
type PersistEntityBackend (NumberGeneric backend) Source # 
Instance details

Defined in LargeNumberTest

type PersistEntityBackend (NumberGeneric backend) = backend

cleanDB :: Runner backend m => ReaderT backend m () Source #

specsWith :: Runner backend m => RunDb backend m -> Spec Source #