persistent-test-2.0.3.0: Tests for Persistent
TransactionLevelTest
data Wombat Source #
Constructors
Fields
Defined in TransactionLevelTest
Methods
(==) :: Wombat -> Wombat -> Bool #
(/=) :: Wombat -> Wombat -> Bool #
compare :: Wombat -> Wombat -> Ordering #
(<) :: Wombat -> Wombat -> Bool #
(<=) :: Wombat -> Wombat -> Bool #
(>) :: Wombat -> Wombat -> Bool #
(>=) :: Wombat -> Wombat -> Bool #
max :: Wombat -> Wombat -> Wombat #
min :: Wombat -> Wombat -> Wombat #
showsPrec :: Int -> Wombat -> ShowS #
show :: Wombat -> String #
showList :: [Wombat] -> ShowS #
sqlType :: Proxy Wombat -> SqlType #
onlyUniqueP :: Wombat -> Unique Wombat #
requireUniquesP :: Wombat -> NonEmpty (Unique Wombat) #
Associated Types
type PersistEntityBackend Wombat :: Type #
data Key Wombat :: Type #
data EntityField Wombat a :: Type #
data Unique Wombat :: Type #
keyToValues :: Key Wombat -> [PersistValue] #
keyFromValues :: [PersistValue] -> Either Text (Key Wombat) #
persistIdField :: EntityField Wombat (Key Wombat) #
entityDef :: Monad m => m Wombat -> EntityDef #
persistFieldDef :: EntityField Wombat typ -> FieldDef #
toPersistFields :: Wombat -> [SomePersistField] #
fromPersistValues :: [PersistValue] -> Either Text Wombat #
persistUniqueKeys :: Wombat -> [Unique Wombat] #
persistUniqueToFieldNames :: Unique Wombat -> [(HaskellName, DBName)] #
persistUniqueToValues :: Unique Wombat -> [PersistValue] #
fieldLens :: EntityField Wombat field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Wombat -> f (Entity Wombat) #
toPersistValue :: Wombat -> PersistValue #
fromPersistValue :: PersistValue -> Either Text Wombat #
(==) :: Key Wombat -> Key Wombat -> Bool #
(/=) :: Key Wombat -> Key Wombat -> Bool #
compare :: Key Wombat -> Key Wombat -> Ordering #
(<) :: Key Wombat -> Key Wombat -> Bool #
(<=) :: Key Wombat -> Key Wombat -> Bool #
(>) :: Key Wombat -> Key Wombat -> Bool #
(>=) :: Key Wombat -> Key Wombat -> Bool #
max :: Key Wombat -> Key Wombat -> Key Wombat #
min :: Key Wombat -> Key Wombat -> Key Wombat #
readsPrec :: Int -> ReadS (Key Wombat) #
readList :: ReadS [Key Wombat] #
readPrec :: ReadPrec (Key Wombat) #
readListPrec :: ReadPrec [Key Wombat] #
showsPrec :: Int -> Key Wombat -> ShowS #
show :: Key Wombat -> String #
showList :: [Key Wombat] -> ShowS #
toJSON :: Key Wombat -> Value #
toEncoding :: Key Wombat -> Encoding #
toJSONList :: [Key Wombat] -> Value #
toEncodingList :: [Key Wombat] -> Encoding #
parseJSON :: Value -> Parser (Key Wombat) #
parseJSONList :: Value -> Parser [Key Wombat] #
toUrlPiece :: Key Wombat -> Text #
toEncodedUrlPiece :: Key Wombat -> Builder #
toHeader :: Key Wombat -> ByteString #
toQueryParam :: Key Wombat -> Text #
parseUrlPiece :: Text -> Either Text (Key Wombat) #
parseHeader :: ByteString -> Either Text (Key Wombat) #
parseQueryParam :: Text -> Either Text (Key Wombat) #
fromPathPiece :: Text -> Maybe (Key Wombat) #
toPathPiece :: Key Wombat -> Text #
sqlType :: Proxy (Key Wombat) -> SqlType #
toPersistValue :: Key Wombat -> PersistValue #
fromPersistValue :: PersistValue -> Either Text (Key Wombat) #
type WombatId = Key Wombat Source #
migration :: Migration Source #
specsWith :: (MonadIO m, MonadFail m) => RunDb SqlBackend m -> Spec Source #