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 #
data Key Wombat #
data EntityField Wombat :: Type -> Type #
data Unique Wombat #
keyToValues :: Key Wombat -> [PersistValue] #
keyFromValues :: [PersistValue] -> Either Text (Key Wombat) #
persistIdField :: EntityField Wombat (Key Wombat) #
entityDef :: proxy Wombat -> EntityDef #
persistFieldDef :: EntityField Wombat typ -> FieldDef #
toPersistFields :: Wombat -> [SomePersistField] #
fromPersistValues :: [PersistValue] -> Either Text Wombat #
persistUniqueKeys :: Wombat -> [Unique Wombat] #
persistUniqueToFieldNames :: Unique Wombat -> [(FieldNameHS, FieldNameDB)] #
persistUniqueToValues :: Unique Wombat -> [PersistValue] #
fieldLens :: EntityField Wombat field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Wombat -> f (Entity Wombat) #
keyFromRecordM :: Maybe (Wombat -> Key Wombat) #
toPersistValue :: Wombat -> PersistValue #
fromPersistValue :: PersistValue -> Either Text Wombat #
symbolToField :: EntityField Wombat Text #
(==) :: 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 #