Conduit.Features.Account.DB
Contents
data User Source #
Constructors
Fields
Defined in Conduit.Features.Account.DB
Associated Types
type PersistEntityBackend User #
data Key User #
data EntityField User :: Type -> Type #
data Unique User #
Methods
keyToValues :: Key User -> [PersistValue] #
keyFromValues :: [PersistValue] -> Either Text (Key User) #
persistIdField :: EntityField User (Key User) #
entityDef :: proxy User -> EntityDef #
persistFieldDef :: EntityField User typ -> FieldDef #
toPersistFields :: User -> [PersistValue] #
fromPersistValues :: [PersistValue] -> Either Text User #
tabulateEntityA :: Applicative f => (forall a. EntityField User a -> f a) -> f (Entity User) #
persistUniqueKeys :: User -> [Unique User] #
persistUniqueToFieldNames :: Unique User -> NonEmpty (FieldNameHS, FieldNameDB) #
persistUniqueToValues :: Unique User -> [PersistValue] #
fieldLens :: EntityField User field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity User -> f (Entity User) #
keyFromRecordM :: Maybe (User -> Key User) #
toPersistValue :: User -> PersistValue #
fromPersistValue :: PersistValue -> Either Text User #
requireUniquesP :: User -> NonEmpty (Unique User) #
onlyUniqueP :: User -> Unique User #
sqlType :: Proxy User -> SqlType #
toBackendKey :: Key User -> BackendKey SqlBackend #
fromBackendKey :: BackendKey SqlBackend -> Key User #
sqlKey2ID :: Key User -> UserID Source #
id2sqlKey :: UserID -> Key User Source #
Defined in Conduit.Features.Articles.DB
symbolToField :: EntityField Article UserId #
symbolToField :: EntityField Comment UserId #
symbolToField :: EntityField User Text #
symbolToField :: EntityField Follow UserId #
symbolToField :: EntityField Favorite UserId #
symbolToField :: EntityField User (Maybe Text) #
symbolToField :: EntityField User (Key User) #
parseJSON :: Value -> Parser (Key User) #
parseJSONList :: Value -> Parser [Key User] #
omittedField :: Maybe (Key User) #
toJSON :: Key User -> Value #
toEncoding :: Key User -> Encoding #
toJSONList :: [Key User] -> Value #
toEncodingList :: [Key User] -> Encoding #
omitField :: Key User -> Bool #
readsPrec :: Int -> ReadS (Key User) #
readList :: ReadS [Key User] #
readPrec :: ReadPrec (Key User) #
readListPrec :: ReadPrec [Key User] #
showsPrec :: Int -> Key User -> ShowS #
show :: Key User -> String #
showList :: [Key User] -> ShowS #
(==) :: Key User -> Key User -> Bool #
(/=) :: Key User -> Key User -> Bool #
compare :: Key User -> Key User -> Ordering #
(<) :: Key User -> Key User -> Bool #
(<=) :: Key User -> Key User -> Bool #
(>) :: Key User -> Key User -> Bool #
(>=) :: Key User -> Key User -> Bool #
max :: Key User -> Key User -> Key User #
min :: Key User -> Key User -> Key User #
parseUrlPiece :: Text -> Either Text (Key User) #
parseHeader :: ByteString -> Either Text (Key User) #
parseQueryParam :: Text -> Either Text (Key User) #
toUrlPiece :: Key User -> Text #
toEncodedUrlPiece :: Key User -> Builder #
toHeader :: Key User -> ByteString #
toQueryParam :: Key User -> Text #
toEncodedQueryParam :: Key User -> Builder #
fromPathPiece :: Text -> Maybe (Key User) #
toPathPiece :: Key User -> Text #
toPersistValue :: Key User -> PersistValue #
fromPersistValue :: PersistValue -> Either Text (Key User) #
sqlType :: Proxy (Key User) -> SqlType #
type UserId = Key User Source #
data Follow Source #
type PersistEntityBackend Follow #
data Key Follow #
data EntityField Follow :: Type -> Type #
data Unique Follow #
keyToValues :: Key Follow -> [PersistValue] #
keyFromValues :: [PersistValue] -> Either Text (Key Follow) #
persistIdField :: EntityField Follow (Key Follow) #
entityDef :: proxy Follow -> EntityDef #
persistFieldDef :: EntityField Follow typ -> FieldDef #
toPersistFields :: Follow -> [PersistValue] #
fromPersistValues :: [PersistValue] -> Either Text Follow #
tabulateEntityA :: Applicative f => (forall a. EntityField Follow a -> f a) -> f (Entity Follow) #
persistUniqueKeys :: Follow -> [Unique Follow] #
persistUniqueToFieldNames :: Unique Follow -> NonEmpty (FieldNameHS, FieldNameDB) #
persistUniqueToValues :: Unique Follow -> [PersistValue] #
fieldLens :: EntityField Follow field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Follow -> f (Entity Follow) #
keyFromRecordM :: Maybe (Follow -> Key Follow) #
toPersistValue :: Follow -> PersistValue #
fromPersistValue :: PersistValue -> Either Text Follow #
requireUniquesP :: Follow -> NonEmpty (Unique Follow) #
onlyUniqueP :: Follow -> Unique Follow #
sqlType :: Proxy Follow -> SqlType #
symbolToField :: EntityField Follow (Key Follow) #
parseJSON :: Value -> Parser (Key Follow) #
parseJSONList :: Value -> Parser [Key Follow] #
omittedField :: Maybe (Key Follow) #
toJSON :: Key Follow -> Value #
toEncoding :: Key Follow -> Encoding #
toJSONList :: [Key Follow] -> Value #
toEncodingList :: [Key Follow] -> Encoding #
omitField :: Key Follow -> Bool #
type Rep (Key Follow) :: Type -> Type #
from :: Key Follow -> Rep (Key Follow) x #
to :: Rep (Key Follow) x -> Key Follow #
readsPrec :: Int -> ReadS (Key Follow) #
readList :: ReadS [Key Follow] #
readPrec :: ReadPrec (Key Follow) #
readListPrec :: ReadPrec [Key Follow] #
showsPrec :: Int -> Key Follow -> ShowS #
show :: Key Follow -> String #
showList :: [Key Follow] -> ShowS #
(==) :: Key Follow -> Key Follow -> Bool #
(/=) :: Key Follow -> Key Follow -> Bool #
compare :: Key Follow -> Key Follow -> Ordering #
(<) :: Key Follow -> Key Follow -> Bool #
(<=) :: Key Follow -> Key Follow -> Bool #
(>) :: Key Follow -> Key Follow -> Bool #
(>=) :: Key Follow -> Key Follow -> Bool #
max :: Key Follow -> Key Follow -> Key Follow #
min :: Key Follow -> Key Follow -> Key Follow #
toPersistValue :: Key Follow -> PersistValue #
fromPersistValue :: PersistValue -> Either Text (Key Follow) #
sqlType :: Proxy (Key Follow) -> SqlType #
type FollowId = Key Follow Source #
migrateAccountTables :: Migration Source #
entityDefListFormigrateAccountTables :: [EntityDef] Source #
mkProfile :: Entity User -> Value Bool -> UserProfile Source #