Copyright | (c) Uni Magdeburg 2017 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Eugen Kuksa <kuksa@iks.cs.ovgu.de> |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Persistence.Schema
Description
Documentation
Instances
Show Hets Source # | |
PersistEntity Hets Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Hets data Key Hets data EntityField Hets :: Type -> Type data Unique Hets Methods keyToValues :: Key Hets -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Hets) persistIdField :: EntityField Hets (Key Hets) entityDef :: Monad m => m Hets -> EntityDef persistFieldDef :: EntityField Hets typ -> FieldDef toPersistFields :: Hets -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Hets persistUniqueKeys :: Hets -> [Unique Hets] persistUniqueToFieldNames :: Unique Hets -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Hets -> [PersistValue] fieldLens :: EntityField Hets field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Hets -> f (Entity Hets) | |
PersistField Hets Source # | |
Defined in Persistence.Schema | |
(TypeError (MultipleUniqueKeysError Hets) :: Constraint) => AtLeastOneUniqueKey Hets Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Hets -> NonEmpty (Unique Hets) | |
(TypeError (NoUniqueKeysError Hets) :: Constraint) => OnlyOneUniqueKey Hets Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Hets -> Unique Hets | |
PersistFieldSql Hets Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Hets ~ BaseBackend backend) => DeleteCascade Hets backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Hets -> ReaderT backend m () | |
Eq (Key Hets) Source # | |
Ord (Key Hets) Source # | |
Defined in Persistence.Schema | |
Read (Key Hets) Source # | |
Defined in Persistence.Schema | |
Show (Key Hets) Source # | |
FromJSON (Key Hets) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Hets) Source # | |
Defined in Persistence.Schema Methods toEncoding :: Key Hets -> Encoding toJSONList :: [Key Hets] -> Value toEncodingList :: [Key Hets] -> Encoding | |
PersistField (Key Hets) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Hets -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Hets) | |
PersistFieldSql (Key Hets) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Hets) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Hets) parseHeader :: ByteString -> Either Text (Key Hets) parseQueryParam :: Text -> Either Text (Key Hets) | |
PathPiece (Key Hets) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Hets) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Hets -> Text toEncodedUrlPiece :: Key Hets -> Builder toHeader :: Key Hets -> ByteString toQueryParam :: Key Hets -> Text | |
data EntityField Hets typ Source # | |
newtype Key Hets Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Hets Source # | |
Defined in Persistence.Schema type PersistEntityBackend Hets = SqlBackend | |
data Unique Hets Source # | |
Defined in Persistence.Schema data Unique Hets |
Constructors
Language | |
Fields
|
Instances
Show Language Source # | |
PersistEntity Language Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Language data Key Language data EntityField Language :: Type -> Type data Unique Language Methods keyToValues :: Key Language -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Language) persistIdField :: EntityField Language (Key Language) entityDef :: Monad m => m Language -> EntityDef persistFieldDef :: EntityField Language typ -> FieldDef toPersistFields :: Language -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Language persistUniqueKeys :: Language -> [Unique Language] persistUniqueToFieldNames :: Unique Language -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Language -> [PersistValue] fieldLens :: EntityField Language field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Language -> f (Entity Language) | |
PersistField Language Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Language -> PersistValue fromPersistValue :: PersistValue -> Either Text Language | |
AtLeastOneUniqueKey Language Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Language -> NonEmpty (Unique Language) | |
OnlyOneUniqueKey Language Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Language -> Unique Language | |
PersistFieldSql Language Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Language ~ BaseBackend backend) => DeleteCascade Language backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Language -> ReaderT backend m () | |
ToBackendKey SqlBackend Language Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Language -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Language | |
Eq (Key Language) Source # | |
Ord (Key Language) Source # | |
Defined in Persistence.Schema | |
Read (Key Language) Source # | |
Defined in Persistence.Schema | |
Show (Key Language) Source # | |
Show (Unique Language) Source # | |
FromJSON (Key Language) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Language) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Language -> Value toEncoding :: Key Language -> Encoding toJSONList :: [Key Language] -> Value toEncodingList :: [Key Language] -> Encoding | |
PersistField (Key Language) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Language -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Language) | |
PersistFieldSql (Key Language) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Language) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Language) parseHeader :: ByteString -> Either Text (Key Language) parseQueryParam :: Text -> Either Text (Key Language) | |
PathPiece (Key Language) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Language) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Language -> Text toEncodedUrlPiece :: Key Language -> Builder toHeader :: Key Language -> ByteString toQueryParam :: Key Language -> Text | |
data EntityField Language typ Source # | |
Defined in Persistence.Schema data EntityField Language typ
| |
newtype Key Language Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Language Source # | |
Defined in Persistence.Schema type PersistEntityBackend Language = SqlBackend | |
data Unique Language Source # | |
Defined in Persistence.Schema |
type LanguageId = Key Language Source #
Constructors
Logic | |
Fields
|
Instances
Show Logic Source # | |
PersistEntity Logic Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Logic data Key Logic data EntityField Logic :: Type -> Type data Unique Logic Methods keyToValues :: Key Logic -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Logic) persistIdField :: EntityField Logic (Key Logic) entityDef :: Monad m => m Logic -> EntityDef persistFieldDef :: EntityField Logic typ -> FieldDef toPersistFields :: Logic -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Logic persistUniqueKeys :: Logic -> [Unique Logic] persistUniqueToFieldNames :: Unique Logic -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Logic -> [PersistValue] fieldLens :: EntityField Logic field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Logic -> f (Entity Logic) | |
PersistField Logic Source # | |
Defined in Persistence.Schema | |
AtLeastOneUniqueKey Logic Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Logic -> NonEmpty (Unique Logic) | |
OnlyOneUniqueKey Logic Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Logic -> Unique Logic | |
PersistFieldSql Logic Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Logic ~ BaseBackend backend) => DeleteCascade Logic backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Logic -> ReaderT backend m () | |
ToBackendKey SqlBackend Logic Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Logic -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Logic | |
Eq (Key Logic) Source # | |
Ord (Key Logic) Source # | |
Defined in Persistence.Schema | |
Read (Key Logic) Source # | |
Defined in Persistence.Schema | |
Show (Key Logic) Source # | |
Show (Unique Logic) Source # | |
FromJSON (Key Logic) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Logic) Source # | |
Defined in Persistence.Schema Methods toEncoding :: Key Logic -> Encoding toJSONList :: [Key Logic] -> Value toEncodingList :: [Key Logic] -> Encoding | |
PersistField (Key Logic) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Logic -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Logic) | |
PersistFieldSql (Key Logic) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Logic) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Logic) parseHeader :: ByteString -> Either Text (Key Logic) parseQueryParam :: Text -> Either Text (Key Logic) | |
PathPiece (Key Logic) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Logic) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Logic -> Text toEncodedUrlPiece :: Key Logic -> Builder toHeader :: Key Logic -> ByteString toQueryParam :: Key Logic -> Text | |
data EntityField Logic typ Source # | |
Defined in Persistence.Schema | |
newtype Key Logic Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Logic Source # | |
Defined in Persistence.Schema type PersistEntityBackend Logic = SqlBackend | |
data Unique Logic Source # | |
Defined in Persistence.Schema |
data LanguageMapping Source #
Constructors
LanguageMapping | |
Fields
|
Instances
type LanguageMappingId = Key LanguageMapping Source #
data LogicMapping Source #
Constructors
LogicMapping | |
Fields
|
Instances
Show LogicMapping Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> LogicMapping -> ShowS show :: LogicMapping -> String showList :: [LogicMapping] -> ShowS | |
PersistEntity LogicMapping Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend LogicMapping data Key LogicMapping data EntityField LogicMapping :: Type -> Type data Unique LogicMapping Methods keyToValues :: Key LogicMapping -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key LogicMapping) persistIdField :: EntityField LogicMapping (Key LogicMapping) entityDef :: Monad m => m LogicMapping -> EntityDef persistFieldDef :: EntityField LogicMapping typ -> FieldDef toPersistFields :: LogicMapping -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text LogicMapping persistUniqueKeys :: LogicMapping -> [Unique LogicMapping] persistUniqueToFieldNames :: Unique LogicMapping -> [(HaskellName, DBName)] persistUniqueToValues :: Unique LogicMapping -> [PersistValue] fieldLens :: EntityField LogicMapping field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity LogicMapping -> f (Entity LogicMapping) | |
PersistField LogicMapping Source # | |
Defined in Persistence.Schema Methods toPersistValue :: LogicMapping -> PersistValue fromPersistValue :: PersistValue -> Either Text LogicMapping | |
AtLeastOneUniqueKey LogicMapping Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: LogicMapping -> NonEmpty (Unique LogicMapping) | |
OnlyOneUniqueKey LogicMapping Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: LogicMapping -> Unique LogicMapping | |
PersistFieldSql LogicMapping Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy LogicMapping -> SqlType | |
(PersistQuery backend, PersistEntityBackend LogicMapping ~ BaseBackend backend) => DeleteCascade LogicMapping backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key LogicMapping -> ReaderT backend m () | |
ToBackendKey SqlBackend LogicMapping Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key LogicMapping -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key LogicMapping | |
Eq (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods (==) :: Key LogicMapping -> Key LogicMapping -> Bool (/=) :: Key LogicMapping -> Key LogicMapping -> Bool | |
Ord (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods compare :: Key LogicMapping -> Key LogicMapping -> Ordering (<) :: Key LogicMapping -> Key LogicMapping -> Bool (<=) :: Key LogicMapping -> Key LogicMapping -> Bool (>) :: Key LogicMapping -> Key LogicMapping -> Bool (>=) :: Key LogicMapping -> Key LogicMapping -> Bool max :: Key LogicMapping -> Key LogicMapping -> Key LogicMapping min :: Key LogicMapping -> Key LogicMapping -> Key LogicMapping | |
Read (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key LogicMapping) readList :: ReadS [Key LogicMapping] readPrec :: ReadPrec (Key LogicMapping) readListPrec :: ReadPrec [Key LogicMapping] | |
Show (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key LogicMapping -> ShowS show :: Key LogicMapping -> String showList :: [Key LogicMapping] -> ShowS | |
Show (Unique LogicMapping) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Unique LogicMapping -> ShowS show :: Unique LogicMapping -> String showList :: [Unique LogicMapping] -> ShowS | |
FromJSON (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key LogicMapping) parseJSONList :: Value -> Parser [Key LogicMapping] | |
ToJSON (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key LogicMapping -> Value toEncoding :: Key LogicMapping -> Encoding toJSONList :: [Key LogicMapping] -> Value toEncodingList :: [Key LogicMapping] -> Encoding | |
PersistField (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key LogicMapping -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key LogicMapping) | |
PersistFieldSql (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key LogicMapping) -> SqlType | |
FromHttpApiData (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key LogicMapping) parseHeader :: ByteString -> Either Text (Key LogicMapping) parseQueryParam :: Text -> Either Text (Key LogicMapping) | |
PathPiece (Key LogicMapping) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key LogicMapping) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key LogicMapping -> Text toEncodedUrlPiece :: Key LogicMapping -> Builder toHeader :: Key LogicMapping -> ByteString toQueryParam :: Key LogicMapping -> Text | |
data EntityField LogicMapping typ Source # | |
Defined in Persistence.Schema data EntityField LogicMapping typ
| |
newtype Key LogicMapping Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend LogicMapping Source # | |
Defined in Persistence.Schema type PersistEntityBackend LogicMapping = SqlBackend | |
data Unique LogicMapping Source # | |
Defined in Persistence.Schema |
type LogicMappingId = Key LogicMapping Source #
data LogicInclusion Source #
Constructors
LogicInclusion | |
Fields
|
Instances
type LogicInclusionId = Key LogicInclusion Source #
data LogicTranslation Source #
Constructors
LogicTranslation | |
Fields
|
Instances
type LogicTranslationId = Key LogicTranslation Source #
data LogicTranslationStep Source #
Constructors
LogicTranslationStep | |
Fields
|
Instances
type LogicTranslationStepId = Key LogicTranslationStep Source #
data Serialization Source #
Constructors
Serialization | |
Fields
|
Instances
Show Serialization Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Serialization -> ShowS show :: Serialization -> String showList :: [Serialization] -> ShowS | |
PersistEntity Serialization Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Serialization data Key Serialization data EntityField Serialization :: Type -> Type data Unique Serialization Methods keyToValues :: Key Serialization -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Serialization) persistIdField :: EntityField Serialization (Key Serialization) entityDef :: Monad m => m Serialization -> EntityDef persistFieldDef :: EntityField Serialization typ -> FieldDef toPersistFields :: Serialization -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Serialization persistUniqueKeys :: Serialization -> [Unique Serialization] persistUniqueToFieldNames :: Unique Serialization -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Serialization -> [PersistValue] fieldLens :: EntityField Serialization field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Serialization -> f (Entity Serialization) | |
PersistField Serialization Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Serialization -> PersistValue fromPersistValue :: PersistValue -> Either Text Serialization | |
AtLeastOneUniqueKey Serialization Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Serialization -> NonEmpty (Unique Serialization) | |
OnlyOneUniqueKey Serialization Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Serialization -> Unique Serialization | |
PersistFieldSql Serialization Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy Serialization -> SqlType | |
(PersistQuery backend, PersistEntityBackend Serialization ~ BaseBackend backend) => DeleteCascade Serialization backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Serialization -> ReaderT backend m () | |
ToBackendKey SqlBackend Serialization Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Serialization -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Serialization | |
Eq (Key Serialization) Source # | |
Defined in Persistence.Schema Methods (==) :: Key Serialization -> Key Serialization -> Bool (/=) :: Key Serialization -> Key Serialization -> Bool | |
Ord (Key Serialization) Source # | |
Defined in Persistence.Schema Methods compare :: Key Serialization -> Key Serialization -> Ordering (<) :: Key Serialization -> Key Serialization -> Bool (<=) :: Key Serialization -> Key Serialization -> Bool (>) :: Key Serialization -> Key Serialization -> Bool (>=) :: Key Serialization -> Key Serialization -> Bool max :: Key Serialization -> Key Serialization -> Key Serialization min :: Key Serialization -> Key Serialization -> Key Serialization | |
Read (Key Serialization) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key Serialization) readList :: ReadS [Key Serialization] readPrec :: ReadPrec (Key Serialization) readListPrec :: ReadPrec [Key Serialization] | |
Show (Key Serialization) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key Serialization -> ShowS show :: Key Serialization -> String showList :: [Key Serialization] -> ShowS | |
Show (Unique Serialization) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Unique Serialization -> ShowS show :: Unique Serialization -> String showList :: [Unique Serialization] -> ShowS | |
FromJSON (Key Serialization) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key Serialization) parseJSONList :: Value -> Parser [Key Serialization] | |
ToJSON (Key Serialization) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Serialization -> Value toEncoding :: Key Serialization -> Encoding toJSONList :: [Key Serialization] -> Value toEncodingList :: [Key Serialization] -> Encoding | |
PersistField (Key Serialization) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Serialization -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Serialization) | |
PersistFieldSql (Key Serialization) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key Serialization) -> SqlType | |
FromHttpApiData (Key Serialization) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Serialization) parseHeader :: ByteString -> Either Text (Key Serialization) parseQueryParam :: Text -> Either Text (Key Serialization) | |
PathPiece (Key Serialization) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Serialization) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Serialization -> Text toEncodedUrlPiece :: Key Serialization -> Builder toHeader :: Key Serialization -> ByteString toQueryParam :: Key Serialization -> Text | |
data EntityField Serialization typ Source # | |
Defined in Persistence.Schema data EntityField Serialization typ
| |
newtype Key Serialization Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Serialization Source # | |
Defined in Persistence.Schema type PersistEntityBackend Serialization = SqlBackend | |
data Unique Serialization Source # | |
Defined in Persistence.Schema |
type SerializationId = Key Serialization Source #
Constructors
Signature | |
Fields
|
Instances
PersistEntity Signature Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Signature data Key Signature data EntityField Signature :: Type -> Type data Unique Signature Methods keyToValues :: Key Signature -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Signature) persistIdField :: EntityField Signature (Key Signature) entityDef :: Monad m => m Signature -> EntityDef persistFieldDef :: EntityField Signature typ -> FieldDef toPersistFields :: Signature -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Signature persistUniqueKeys :: Signature -> [Unique Signature] persistUniqueToFieldNames :: Unique Signature -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Signature -> [PersistValue] fieldLens :: EntityField Signature field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Signature -> f (Entity Signature) | |
PersistField Signature Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Signature -> PersistValue fromPersistValue :: PersistValue -> Either Text Signature | |
(TypeError (MultipleUniqueKeysError Signature) :: Constraint) => AtLeastOneUniqueKey Signature Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Signature -> NonEmpty (Unique Signature) | |
(TypeError (NoUniqueKeysError Signature) :: Constraint) => OnlyOneUniqueKey Signature Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Signature -> Unique Signature | |
PersistFieldSql Signature Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Signature ~ BaseBackend backend) => DeleteCascade Signature backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Signature -> ReaderT backend m () | |
ToBackendKey SqlBackend Signature Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Signature -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Signature | |
Eq (Key Signature) Source # | |
Ord (Key Signature) Source # | |
Defined in Persistence.Schema | |
Read (Key Signature) Source # | |
Defined in Persistence.Schema | |
Show (Key Signature) Source # | |
FromJSON (Key Signature) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Signature) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Signature -> Value toEncoding :: Key Signature -> Encoding toJSONList :: [Key Signature] -> Value toEncodingList :: [Key Signature] -> Encoding | |
PersistField (Key Signature) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Signature -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Signature) | |
PersistFieldSql (Key Signature) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Signature) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Signature) parseHeader :: ByteString -> Either Text (Key Signature) parseQueryParam :: Text -> Either Text (Key Signature) | |
PathPiece (Key Signature) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Signature) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Signature -> Text toEncodedUrlPiece :: Key Signature -> Builder toHeader :: Key Signature -> ByteString toQueryParam :: Key Signature -> Text | |
data EntityField Signature typ Source # | |
Defined in Persistence.Schema data EntityField Signature typ
| |
newtype Key Signature Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Signature Source # | |
Defined in Persistence.Schema type PersistEntityBackend Signature = SqlBackend | |
data Unique Signature Source # | |
Defined in Persistence.Schema data Unique Signature |
type SignatureId = Key Signature Source #
data SignatureMorphism Source #
Constructors
SignatureMorphism | |
Fields
|
Instances
type SignatureMorphismId = Key SignatureMorphism Source #
data ConservativityStatus Source #
Constructors
ConservativityStatus | |
Fields
|
Instances
type ConservativityStatusId = Key ConservativityStatus Source #
data OrganizationalUnit Source #
Constructors
OrganizationalUnit | |
Fields
|
Instances
type OrganizationalUnitId = Key OrganizationalUnit Source #
data Repository Source #
Constructors
Repository | |
Fields
|
Instances
Show Repository Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Repository -> ShowS show :: Repository -> String showList :: [Repository] -> ShowS | |
PersistEntity Repository Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Repository data Key Repository data EntityField Repository :: Type -> Type data Unique Repository Methods keyToValues :: Key Repository -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Repository) persistIdField :: EntityField Repository (Key Repository) entityDef :: Monad m => m Repository -> EntityDef persistFieldDef :: EntityField Repository typ -> FieldDef toPersistFields :: Repository -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Repository persistUniqueKeys :: Repository -> [Unique Repository] persistUniqueToFieldNames :: Unique Repository -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Repository -> [PersistValue] fieldLens :: EntityField Repository field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Repository -> f (Entity Repository) | |
PersistField Repository Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Repository -> PersistValue fromPersistValue :: PersistValue -> Either Text Repository | |
(TypeError (MultipleUniqueKeysError Repository) :: Constraint) => AtLeastOneUniqueKey Repository Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Repository -> NonEmpty (Unique Repository) | |
(TypeError (NoUniqueKeysError Repository) :: Constraint) => OnlyOneUniqueKey Repository Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Repository -> Unique Repository | |
PersistFieldSql Repository Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy Repository -> SqlType | |
(PersistQuery backend, PersistEntityBackend Repository ~ BaseBackend backend) => DeleteCascade Repository backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Repository -> ReaderT backend m () | |
ToBackendKey SqlBackend Repository Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Repository -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Repository | |
Eq (Key Repository) Source # | |
Defined in Persistence.Schema Methods (==) :: Key Repository -> Key Repository -> Bool (/=) :: Key Repository -> Key Repository -> Bool | |
Ord (Key Repository) Source # | |
Defined in Persistence.Schema Methods compare :: Key Repository -> Key Repository -> Ordering (<) :: Key Repository -> Key Repository -> Bool (<=) :: Key Repository -> Key Repository -> Bool (>) :: Key Repository -> Key Repository -> Bool (>=) :: Key Repository -> Key Repository -> Bool max :: Key Repository -> Key Repository -> Key Repository min :: Key Repository -> Key Repository -> Key Repository | |
Read (Key Repository) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key Repository) readList :: ReadS [Key Repository] readPrec :: ReadPrec (Key Repository) readListPrec :: ReadPrec [Key Repository] | |
Show (Key Repository) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key Repository -> ShowS show :: Key Repository -> String showList :: [Key Repository] -> ShowS | |
FromJSON (Key Repository) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key Repository) parseJSONList :: Value -> Parser [Key Repository] | |
ToJSON (Key Repository) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Repository -> Value toEncoding :: Key Repository -> Encoding toJSONList :: [Key Repository] -> Value toEncodingList :: [Key Repository] -> Encoding | |
PersistField (Key Repository) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Repository -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Repository) | |
PersistFieldSql (Key Repository) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key Repository) -> SqlType | |
FromHttpApiData (Key Repository) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Repository) parseHeader :: ByteString -> Either Text (Key Repository) parseQueryParam :: Text -> Either Text (Key Repository) | |
PathPiece (Key Repository) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Repository) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Repository -> Text toEncodedUrlPiece :: Key Repository -> Builder toHeader :: Key Repository -> ByteString toQueryParam :: Key Repository -> Text | |
data EntityField Repository typ Source # | |
Defined in Persistence.Schema data EntityField Repository typ
| |
newtype Key Repository Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Repository Source # | |
Defined in Persistence.Schema type PersistEntityBackend Repository = SqlBackend | |
data Unique Repository Source # | |
Defined in Persistence.Schema data Unique Repository |
type RepositoryId = Key Repository Source #
Constructors
Action | |
Fields
|
Instances
Show Action Source # | |
PersistEntity Action Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Action data Key Action data EntityField Action :: Type -> Type data Unique Action Methods keyToValues :: Key Action -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Action) persistIdField :: EntityField Action (Key Action) entityDef :: Monad m => m Action -> EntityDef persistFieldDef :: EntityField Action typ -> FieldDef toPersistFields :: Action -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Action persistUniqueKeys :: Action -> [Unique Action] persistUniqueToFieldNames :: Unique Action -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Action -> [PersistValue] fieldLens :: EntityField Action field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Action -> f (Entity Action) | |
PersistField Action Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Action -> PersistValue fromPersistValue :: PersistValue -> Either Text Action | |
(TypeError (MultipleUniqueKeysError Action) :: Constraint) => AtLeastOneUniqueKey Action Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Action -> NonEmpty (Unique Action) | |
(TypeError (NoUniqueKeysError Action) :: Constraint) => OnlyOneUniqueKey Action Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Action -> Unique Action | |
PersistFieldSql Action Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Action ~ BaseBackend backend) => DeleteCascade Action backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Action -> ReaderT backend m () | |
ToBackendKey SqlBackend Action Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Action -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Action | |
Eq (Key Action) Source # | |
Ord (Key Action) Source # | |
Read (Key Action) Source # | |
Defined in Persistence.Schema | |
Show (Key Action) Source # | |
FromJSON (Key Action) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Action) Source # | |
Defined in Persistence.Schema Methods toEncoding :: Key Action -> Encoding toJSONList :: [Key Action] -> Value toEncodingList :: [Key Action] -> Encoding | |
PersistField (Key Action) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Action -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Action) | |
PersistFieldSql (Key Action) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Action) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Action) parseHeader :: ByteString -> Either Text (Key Action) parseQueryParam :: Text -> Either Text (Key Action) | |
PathPiece (Key Action) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Action) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Action -> Text toEncodedUrlPiece :: Key Action -> Builder toHeader :: Key Action -> ByteString toQueryParam :: Key Action -> Text | |
data EntityField Action typ Source # | |
Defined in Persistence.Schema data EntityField Action typ
| |
newtype Key Action Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Action Source # | |
Defined in Persistence.Schema type PersistEntityBackend Action = SqlBackend | |
data Unique Action Source # | |
Defined in Persistence.Schema data Unique Action |
data FileVersion Source #
Constructors
FileVersion | |
Fields
|
Instances
Show FileVersion Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> FileVersion -> ShowS show :: FileVersion -> String showList :: [FileVersion] -> ShowS | |
PersistEntity FileVersion Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend FileVersion data Key FileVersion data EntityField FileVersion :: Type -> Type data Unique FileVersion Methods keyToValues :: Key FileVersion -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key FileVersion) persistIdField :: EntityField FileVersion (Key FileVersion) entityDef :: Monad m => m FileVersion -> EntityDef persistFieldDef :: EntityField FileVersion typ -> FieldDef toPersistFields :: FileVersion -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text FileVersion persistUniqueKeys :: FileVersion -> [Unique FileVersion] persistUniqueToFieldNames :: Unique FileVersion -> [(HaskellName, DBName)] persistUniqueToValues :: Unique FileVersion -> [PersistValue] fieldLens :: EntityField FileVersion field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity FileVersion -> f (Entity FileVersion) | |
PersistField FileVersion Source # | |
Defined in Persistence.Schema Methods toPersistValue :: FileVersion -> PersistValue fromPersistValue :: PersistValue -> Either Text FileVersion | |
(TypeError (MultipleUniqueKeysError FileVersion) :: Constraint) => AtLeastOneUniqueKey FileVersion Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: FileVersion -> NonEmpty (Unique FileVersion) | |
(TypeError (NoUniqueKeysError FileVersion) :: Constraint) => OnlyOneUniqueKey FileVersion Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: FileVersion -> Unique FileVersion | |
PersistFieldSql FileVersion Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy FileVersion -> SqlType | |
(PersistQuery backend, PersistEntityBackend FileVersion ~ BaseBackend backend) => DeleteCascade FileVersion backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key FileVersion -> ReaderT backend m () | |
ToBackendKey SqlBackend FileVersion Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key FileVersion -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key FileVersion | |
Eq (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods (==) :: Key FileVersion -> Key FileVersion -> Bool (/=) :: Key FileVersion -> Key FileVersion -> Bool | |
Ord (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods compare :: Key FileVersion -> Key FileVersion -> Ordering (<) :: Key FileVersion -> Key FileVersion -> Bool (<=) :: Key FileVersion -> Key FileVersion -> Bool (>) :: Key FileVersion -> Key FileVersion -> Bool (>=) :: Key FileVersion -> Key FileVersion -> Bool max :: Key FileVersion -> Key FileVersion -> Key FileVersion min :: Key FileVersion -> Key FileVersion -> Key FileVersion | |
Read (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key FileVersion) readList :: ReadS [Key FileVersion] readPrec :: ReadPrec (Key FileVersion) readListPrec :: ReadPrec [Key FileVersion] | |
Show (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key FileVersion -> ShowS show :: Key FileVersion -> String showList :: [Key FileVersion] -> ShowS | |
FromJSON (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key FileVersion) parseJSONList :: Value -> Parser [Key FileVersion] | |
ToJSON (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key FileVersion -> Value toEncoding :: Key FileVersion -> Encoding toJSONList :: [Key FileVersion] -> Value toEncodingList :: [Key FileVersion] -> Encoding | |
PersistField (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key FileVersion -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key FileVersion) | |
PersistFieldSql (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key FileVersion) -> SqlType | |
FromHttpApiData (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key FileVersion) parseHeader :: ByteString -> Either Text (Key FileVersion) parseQueryParam :: Text -> Either Text (Key FileVersion) | |
PathPiece (Key FileVersion) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key FileVersion) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key FileVersion -> Text toEncodedUrlPiece :: Key FileVersion -> Builder toHeader :: Key FileVersion -> ByteString toQueryParam :: Key FileVersion -> Text | |
data EntityField FileVersion typ Source # | |
Defined in Persistence.Schema data EntityField FileVersion typ
| |
newtype Key FileVersion Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend FileVersion Source # | |
Defined in Persistence.Schema type PersistEntityBackend FileVersion = SqlBackend | |
data Unique FileVersion Source # | |
Defined in Persistence.Schema data Unique FileVersion |
type FileVersionId = Key FileVersion Source #
data FileVersionParent Source #
Constructors
FileVersionParent | |
Fields
|
Instances
Show FileVersionParent Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> FileVersionParent -> ShowS show :: FileVersionParent -> String showList :: [FileVersionParent] -> ShowS | |
PersistEntity FileVersionParent Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend FileVersionParent data Key FileVersionParent data EntityField FileVersionParent :: Type -> Type data Unique FileVersionParent Methods keyToValues :: Key FileVersionParent -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key FileVersionParent) persistIdField :: EntityField FileVersionParent (Key FileVersionParent) entityDef :: Monad m => m FileVersionParent -> EntityDef persistFieldDef :: EntityField FileVersionParent typ -> FieldDef toPersistFields :: FileVersionParent -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text FileVersionParent persistUniqueKeys :: FileVersionParent -> [Unique FileVersionParent] persistUniqueToFieldNames :: Unique FileVersionParent -> [(HaskellName, DBName)] persistUniqueToValues :: Unique FileVersionParent -> [PersistValue] fieldLens :: EntityField FileVersionParent field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity FileVersionParent -> f (Entity FileVersionParent) | |
PersistField FileVersionParent Source # | |
Defined in Persistence.Schema Methods toPersistValue :: FileVersionParent -> PersistValue fromPersistValue :: PersistValue -> Either Text FileVersionParent | |
(TypeError (MultipleUniqueKeysError FileVersionParent) :: Constraint) => AtLeastOneUniqueKey FileVersionParent Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: FileVersionParent -> NonEmpty (Unique FileVersionParent) | |
(TypeError (NoUniqueKeysError FileVersionParent) :: Constraint) => OnlyOneUniqueKey FileVersionParent Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: FileVersionParent -> Unique FileVersionParent | |
PersistFieldSql FileVersionParent Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy FileVersionParent -> SqlType | |
(PersistQuery backend, PersistEntityBackend FileVersionParent ~ BaseBackend backend) => DeleteCascade FileVersionParent backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key FileVersionParent -> ReaderT backend m () | |
Eq (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Methods (==) :: Key FileVersionParent -> Key FileVersionParent -> Bool (/=) :: Key FileVersionParent -> Key FileVersionParent -> Bool | |
Ord (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Methods compare :: Key FileVersionParent -> Key FileVersionParent -> Ordering (<) :: Key FileVersionParent -> Key FileVersionParent -> Bool (<=) :: Key FileVersionParent -> Key FileVersionParent -> Bool (>) :: Key FileVersionParent -> Key FileVersionParent -> Bool (>=) :: Key FileVersionParent -> Key FileVersionParent -> Bool max :: Key FileVersionParent -> Key FileVersionParent -> Key FileVersionParent min :: Key FileVersionParent -> Key FileVersionParent -> Key FileVersionParent | |
Read (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key FileVersionParent) readList :: ReadS [Key FileVersionParent] readPrec :: ReadPrec (Key FileVersionParent) readListPrec :: ReadPrec [Key FileVersionParent] | |
Show (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key FileVersionParent -> ShowS show :: Key FileVersionParent -> String showList :: [Key FileVersionParent] -> ShowS | |
Generic (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Associated Types type Rep (Key FileVersionParent) :: Type -> Type Methods from :: Key FileVersionParent -> Rep (Key FileVersionParent) x to :: Rep (Key FileVersionParent) x -> Key FileVersionParent | |
FromJSON (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key FileVersionParent) parseJSONList :: Value -> Parser [Key FileVersionParent] | |
ToJSON (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key FileVersionParent -> Value toEncoding :: Key FileVersionParent -> Encoding toJSONList :: [Key FileVersionParent] -> Value toEncodingList :: [Key FileVersionParent] -> Encoding | |
PersistField (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key FileVersionParent -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key FileVersionParent) | |
PersistFieldSql (Key FileVersionParent) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key FileVersionParent) -> SqlType | |
data EntityField FileVersionParent typ Source # | |
Defined in Persistence.Schema data EntityField FileVersionParent typ
| |
data Key FileVersionParent Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend FileVersionParent Source # | |
Defined in Persistence.Schema type PersistEntityBackend FileVersionParent = SqlBackend | |
data Unique FileVersionParent Source # | |
Defined in Persistence.Schema data Unique FileVersionParent | |
type Rep (Key FileVersionParent) Source # | |
Defined in Persistence.Schema type Rep (Key FileVersionParent) = D1 ('MetaData "Key" "Persistence.Schema" "main" 'False) (C1 ('MetaCons "FileVersionParentKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "fileVersionParentKeylastChangedFileVersionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileVersionId) :*: S1 ('MetaSel ('Just "fileVersionParentKeyqueriedSha") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))) |
type FileVersionParentId = Key FileVersionParent Source #
Constructors
LocIdBase | |
Fields
|
Instances
Show LocIdBase Source # | |
PersistEntity LocIdBase Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend LocIdBase data Key LocIdBase data EntityField LocIdBase :: Type -> Type data Unique LocIdBase Methods keyToValues :: Key LocIdBase -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key LocIdBase) persistIdField :: EntityField LocIdBase (Key LocIdBase) entityDef :: Monad m => m LocIdBase -> EntityDef persistFieldDef :: EntityField LocIdBase typ -> FieldDef toPersistFields :: LocIdBase -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text LocIdBase persistUniqueKeys :: LocIdBase -> [Unique LocIdBase] persistUniqueToFieldNames :: Unique LocIdBase -> [(HaskellName, DBName)] persistUniqueToValues :: Unique LocIdBase -> [PersistValue] fieldLens :: EntityField LocIdBase field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity LocIdBase -> f (Entity LocIdBase) | |
PersistField LocIdBase Source # | |
Defined in Persistence.Schema Methods toPersistValue :: LocIdBase -> PersistValue fromPersistValue :: PersistValue -> Either Text LocIdBase | |
AtLeastOneUniqueKey LocIdBase Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: LocIdBase -> NonEmpty (Unique LocIdBase) | |
OnlyOneUniqueKey LocIdBase Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: LocIdBase -> Unique LocIdBase | |
PersistFieldSql LocIdBase Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend LocIdBase ~ BaseBackend backend) => DeleteCascade LocIdBase backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key LocIdBase -> ReaderT backend m () | |
ToBackendKey SqlBackend LocIdBase Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key LocIdBase -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key LocIdBase | |
Eq (Key LocIdBase) Source # | |
Ord (Key LocIdBase) Source # | |
Defined in Persistence.Schema | |
Read (Key LocIdBase) Source # | |
Defined in Persistence.Schema | |
Show (Key LocIdBase) Source # | |
Show (Unique LocIdBase) Source # | |
FromJSON (Key LocIdBase) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key LocIdBase) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key LocIdBase -> Value toEncoding :: Key LocIdBase -> Encoding toJSONList :: [Key LocIdBase] -> Value toEncodingList :: [Key LocIdBase] -> Encoding | |
PersistField (Key LocIdBase) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key LocIdBase -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key LocIdBase) | |
PersistFieldSql (Key LocIdBase) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key LocIdBase) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key LocIdBase) parseHeader :: ByteString -> Either Text (Key LocIdBase) parseQueryParam :: Text -> Either Text (Key LocIdBase) | |
PathPiece (Key LocIdBase) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key LocIdBase) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key LocIdBase -> Text toEncodedUrlPiece :: Key LocIdBase -> Builder toHeader :: Key LocIdBase -> ByteString toQueryParam :: Key LocIdBase -> Text | |
data EntityField LocIdBase typ Source # | |
Defined in Persistence.Schema data EntityField LocIdBase typ
| |
newtype Key LocIdBase Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend LocIdBase Source # | |
Defined in Persistence.Schema type PersistEntityBackend LocIdBase = SqlBackend | |
data Unique LocIdBase Source # | |
Defined in Persistence.Schema |
type LocIdBaseId = Key LocIdBase Source #
Constructors
Document | |
Fields
|
Instances
Show Document Source # | |
PersistEntity Document Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Document data Key Document data EntityField Document :: Type -> Type data Unique Document Methods keyToValues :: Key Document -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Document) persistIdField :: EntityField Document (Key Document) entityDef :: Monad m => m Document -> EntityDef persistFieldDef :: EntityField Document typ -> FieldDef toPersistFields :: Document -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Document persistUniqueKeys :: Document -> [Unique Document] persistUniqueToFieldNames :: Unique Document -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Document -> [PersistValue] fieldLens :: EntityField Document field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Document -> f (Entity Document) | |
PersistField Document Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Document -> PersistValue fromPersistValue :: PersistValue -> Either Text Document | |
(TypeError (MultipleUniqueKeysError Document) :: Constraint) => AtLeastOneUniqueKey Document Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Document -> NonEmpty (Unique Document) | |
(TypeError (NoUniqueKeysError Document) :: Constraint) => OnlyOneUniqueKey Document Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Document -> Unique Document | |
PersistFieldSql Document Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Document ~ BaseBackend backend) => DeleteCascade Document backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Document -> ReaderT backend m () | |
ToBackendKey SqlBackend Document Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Document -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Document | |
Eq (Key Document) Source # | |
Ord (Key Document) Source # | |
Defined in Persistence.Schema | |
Read (Key Document) Source # | |
Defined in Persistence.Schema | |
Show (Key Document) Source # | |
FromJSON (Key Document) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Document) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Document -> Value toEncoding :: Key Document -> Encoding toJSONList :: [Key Document] -> Value toEncodingList :: [Key Document] -> Encoding | |
PersistField (Key Document) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Document -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Document) | |
PersistFieldSql (Key Document) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Document) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Document) parseHeader :: ByteString -> Either Text (Key Document) parseQueryParam :: Text -> Either Text (Key Document) | |
PathPiece (Key Document) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Document) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Document -> Text toEncodedUrlPiece :: Key Document -> Builder toHeader :: Key Document -> ByteString toQueryParam :: Key Document -> Text | |
data EntityField Document typ Source # | |
Defined in Persistence.Schema data EntityField Document typ
| |
newtype Key Document Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Document Source # | |
Defined in Persistence.Schema type PersistEntityBackend Document = SqlBackend | |
data Unique Document Source # | |
Defined in Persistence.Schema data Unique Document |
type DocumentId = Key Document Source #
data DocumentLink Source #
Constructors
DocumentLink | |
Fields
|
Instances
Show DocumentLink Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> DocumentLink -> ShowS show :: DocumentLink -> String showList :: [DocumentLink] -> ShowS | |
PersistEntity DocumentLink Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend DocumentLink data Key DocumentLink data EntityField DocumentLink :: Type -> Type data Unique DocumentLink Methods keyToValues :: Key DocumentLink -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key DocumentLink) persistIdField :: EntityField DocumentLink (Key DocumentLink) entityDef :: Monad m => m DocumentLink -> EntityDef persistFieldDef :: EntityField DocumentLink typ -> FieldDef toPersistFields :: DocumentLink -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text DocumentLink persistUniqueKeys :: DocumentLink -> [Unique DocumentLink] persistUniqueToFieldNames :: Unique DocumentLink -> [(HaskellName, DBName)] persistUniqueToValues :: Unique DocumentLink -> [PersistValue] fieldLens :: EntityField DocumentLink field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity DocumentLink -> f (Entity DocumentLink) | |
PersistField DocumentLink Source # | |
Defined in Persistence.Schema Methods toPersistValue :: DocumentLink -> PersistValue fromPersistValue :: PersistValue -> Either Text DocumentLink | |
(TypeError (MultipleUniqueKeysError DocumentLink) :: Constraint) => AtLeastOneUniqueKey DocumentLink Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: DocumentLink -> NonEmpty (Unique DocumentLink) | |
(TypeError (NoUniqueKeysError DocumentLink) :: Constraint) => OnlyOneUniqueKey DocumentLink Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: DocumentLink -> Unique DocumentLink | |
PersistFieldSql DocumentLink Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy DocumentLink -> SqlType | |
(PersistQuery backend, PersistEntityBackend DocumentLink ~ BaseBackend backend) => DeleteCascade DocumentLink backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key DocumentLink -> ReaderT backend m () | |
ToBackendKey SqlBackend DocumentLink Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key DocumentLink -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key DocumentLink | |
Eq (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods (==) :: Key DocumentLink -> Key DocumentLink -> Bool (/=) :: Key DocumentLink -> Key DocumentLink -> Bool | |
Ord (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods compare :: Key DocumentLink -> Key DocumentLink -> Ordering (<) :: Key DocumentLink -> Key DocumentLink -> Bool (<=) :: Key DocumentLink -> Key DocumentLink -> Bool (>) :: Key DocumentLink -> Key DocumentLink -> Bool (>=) :: Key DocumentLink -> Key DocumentLink -> Bool max :: Key DocumentLink -> Key DocumentLink -> Key DocumentLink min :: Key DocumentLink -> Key DocumentLink -> Key DocumentLink | |
Read (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key DocumentLink) readList :: ReadS [Key DocumentLink] readPrec :: ReadPrec (Key DocumentLink) readListPrec :: ReadPrec [Key DocumentLink] | |
Show (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key DocumentLink -> ShowS show :: Key DocumentLink -> String showList :: [Key DocumentLink] -> ShowS | |
FromJSON (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key DocumentLink) parseJSONList :: Value -> Parser [Key DocumentLink] | |
ToJSON (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key DocumentLink -> Value toEncoding :: Key DocumentLink -> Encoding toJSONList :: [Key DocumentLink] -> Value toEncodingList :: [Key DocumentLink] -> Encoding | |
PersistField (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key DocumentLink -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key DocumentLink) | |
PersistFieldSql (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key DocumentLink) -> SqlType | |
FromHttpApiData (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key DocumentLink) parseHeader :: ByteString -> Either Text (Key DocumentLink) parseQueryParam :: Text -> Either Text (Key DocumentLink) | |
PathPiece (Key DocumentLink) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key DocumentLink) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key DocumentLink -> Text toEncodedUrlPiece :: Key DocumentLink -> Builder toHeader :: Key DocumentLink -> ByteString toQueryParam :: Key DocumentLink -> Text | |
data EntityField DocumentLink typ Source # | |
Defined in Persistence.Schema data EntityField DocumentLink typ
| |
newtype Key DocumentLink Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend DocumentLink Source # | |
Defined in Persistence.Schema type PersistEntityBackend DocumentLink = SqlBackend | |
data Unique DocumentLink Source # | |
Defined in Persistence.Schema data Unique DocumentLink |
type DocumentLinkId = Key DocumentLink Source #
Constructors
FileRange | |
Fields
|
Instances
Show FileRange Source # | |
PersistEntity FileRange Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend FileRange data Key FileRange data EntityField FileRange :: Type -> Type data Unique FileRange Methods keyToValues :: Key FileRange -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key FileRange) persistIdField :: EntityField FileRange (Key FileRange) entityDef :: Monad m => m FileRange -> EntityDef persistFieldDef :: EntityField FileRange typ -> FieldDef toPersistFields :: FileRange -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text FileRange persistUniqueKeys :: FileRange -> [Unique FileRange] persistUniqueToFieldNames :: Unique FileRange -> [(HaskellName, DBName)] persistUniqueToValues :: Unique FileRange -> [PersistValue] fieldLens :: EntityField FileRange field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity FileRange -> f (Entity FileRange) | |
PersistField FileRange Source # | |
Defined in Persistence.Schema Methods toPersistValue :: FileRange -> PersistValue fromPersistValue :: PersistValue -> Either Text FileRange | |
(TypeError (MultipleUniqueKeysError FileRange) :: Constraint) => AtLeastOneUniqueKey FileRange Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: FileRange -> NonEmpty (Unique FileRange) | |
(TypeError (NoUniqueKeysError FileRange) :: Constraint) => OnlyOneUniqueKey FileRange Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: FileRange -> Unique FileRange | |
PersistFieldSql FileRange Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend FileRange ~ BaseBackend backend) => DeleteCascade FileRange backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key FileRange -> ReaderT backend m () | |
ToBackendKey SqlBackend FileRange Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key FileRange -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key FileRange | |
Eq (Key FileRange) Source # | |
Ord (Key FileRange) Source # | |
Defined in Persistence.Schema | |
Read (Key FileRange) Source # | |
Defined in Persistence.Schema | |
Show (Key FileRange) Source # | |
FromJSON (Key FileRange) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key FileRange) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key FileRange -> Value toEncoding :: Key FileRange -> Encoding toJSONList :: [Key FileRange] -> Value toEncodingList :: [Key FileRange] -> Encoding | |
PersistField (Key FileRange) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key FileRange -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key FileRange) | |
PersistFieldSql (Key FileRange) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key FileRange) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key FileRange) parseHeader :: ByteString -> Either Text (Key FileRange) parseQueryParam :: Text -> Either Text (Key FileRange) | |
PathPiece (Key FileRange) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key FileRange) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key FileRange -> Text toEncodedUrlPiece :: Key FileRange -> Builder toHeader :: Key FileRange -> ByteString toQueryParam :: Key FileRange -> Text | |
data EntityField FileRange typ Source # | |
Defined in Persistence.Schema data EntityField FileRange typ
| |
newtype Key FileRange Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend FileRange Source # | |
Defined in Persistence.Schema type PersistEntityBackend FileRange = SqlBackend | |
data Unique FileRange Source # | |
Defined in Persistence.Schema data Unique FileRange |
type FileRangeId = Key FileRange Source #
Constructors
Diagnosis | |
Fields
|
Instances
Show Diagnosis Source # | |
PersistEntity Diagnosis Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Diagnosis data Key Diagnosis data EntityField Diagnosis :: Type -> Type data Unique Diagnosis Methods keyToValues :: Key Diagnosis -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Diagnosis) persistIdField :: EntityField Diagnosis (Key Diagnosis) entityDef :: Monad m => m Diagnosis -> EntityDef persistFieldDef :: EntityField Diagnosis typ -> FieldDef toPersistFields :: Diagnosis -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Diagnosis persistUniqueKeys :: Diagnosis -> [Unique Diagnosis] persistUniqueToFieldNames :: Unique Diagnosis -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Diagnosis -> [PersistValue] fieldLens :: EntityField Diagnosis field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Diagnosis -> f (Entity Diagnosis) | |
PersistField Diagnosis Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Diagnosis -> PersistValue fromPersistValue :: PersistValue -> Either Text Diagnosis | |
(TypeError (MultipleUniqueKeysError Diagnosis) :: Constraint) => AtLeastOneUniqueKey Diagnosis Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Diagnosis -> NonEmpty (Unique Diagnosis) | |
(TypeError (NoUniqueKeysError Diagnosis) :: Constraint) => OnlyOneUniqueKey Diagnosis Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Diagnosis -> Unique Diagnosis | |
PersistFieldSql Diagnosis Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Diagnosis ~ BaseBackend backend) => DeleteCascade Diagnosis backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Diagnosis -> ReaderT backend m () | |
ToBackendKey SqlBackend Diagnosis Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Diagnosis -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Diagnosis | |
Eq (Key Diagnosis) Source # | |
Ord (Key Diagnosis) Source # | |
Defined in Persistence.Schema | |
Read (Key Diagnosis) Source # | |
Defined in Persistence.Schema | |
Show (Key Diagnosis) Source # | |
FromJSON (Key Diagnosis) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Diagnosis) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Diagnosis -> Value toEncoding :: Key Diagnosis -> Encoding toJSONList :: [Key Diagnosis] -> Value toEncodingList :: [Key Diagnosis] -> Encoding | |
PersistField (Key Diagnosis) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Diagnosis -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Diagnosis) | |
PersistFieldSql (Key Diagnosis) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Diagnosis) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Diagnosis) parseHeader :: ByteString -> Either Text (Key Diagnosis) parseQueryParam :: Text -> Either Text (Key Diagnosis) | |
PathPiece (Key Diagnosis) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Diagnosis) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Diagnosis -> Text toEncodedUrlPiece :: Key Diagnosis -> Builder toHeader :: Key Diagnosis -> ByteString toQueryParam :: Key Diagnosis -> Text | |
data EntityField Diagnosis typ Source # | |
Defined in Persistence.Schema data EntityField Diagnosis typ
| |
newtype Key Diagnosis Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Diagnosis Source # | |
Defined in Persistence.Schema type PersistEntityBackend Diagnosis = SqlBackend | |
data Unique Diagnosis Source # | |
Defined in Persistence.Schema data Unique Diagnosis |
type DiagnosisId = Key Diagnosis Source #
Constructors
OMS | |
Fields
|
Instances
Show OMS Source # | |
PersistEntity OMS Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend OMS data Key OMS data EntityField OMS :: Type -> Type data Unique OMS Methods keyToValues :: Key OMS -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key OMS) persistIdField :: EntityField OMS (Key OMS) entityDef :: Monad m => m OMS -> EntityDef persistFieldDef :: EntityField OMS typ -> FieldDef toPersistFields :: OMS -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text OMS persistUniqueKeys :: OMS -> [Unique OMS] persistUniqueToFieldNames :: Unique OMS -> [(HaskellName, DBName)] persistUniqueToValues :: Unique OMS -> [PersistValue] fieldLens :: EntityField OMS field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity OMS -> f (Entity OMS) | |
PersistField OMS Source # | |
Defined in Persistence.Schema | |
(TypeError (MultipleUniqueKeysError OMS) :: Constraint) => AtLeastOneUniqueKey OMS Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: OMS -> NonEmpty (Unique OMS) | |
(TypeError (NoUniqueKeysError OMS) :: Constraint) => OnlyOneUniqueKey OMS Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: OMS -> Unique OMS | |
PersistFieldSql OMS Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend OMS ~ BaseBackend backend) => DeleteCascade OMS backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key OMS -> ReaderT backend m () | |
ToBackendKey SqlBackend OMS Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key OMS -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key OMS | |
Eq (Key OMS) Source # | |
Ord (Key OMS) Source # | |
Read (Key OMS) Source # | |
Defined in Persistence.Schema | |
Show (Key OMS) Source # | |
FromJSON (Key OMS) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key OMS) Source # | |
Defined in Persistence.Schema Methods toEncoding :: Key OMS -> Encoding toJSONList :: [Key OMS] -> Value toEncodingList :: [Key OMS] -> Encoding | |
PersistField (Key OMS) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key OMS -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key OMS) | |
PersistFieldSql (Key OMS) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key OMS) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key OMS) parseHeader :: ByteString -> Either Text (Key OMS) parseQueryParam :: Text -> Either Text (Key OMS) | |
PathPiece (Key OMS) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key OMS) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key OMS -> Text toEncodedUrlPiece :: Key OMS -> Builder toHeader :: Key OMS -> ByteString toQueryParam :: Key OMS -> Text | |
data EntityField OMS typ Source # | |
Defined in Persistence.Schema data EntityField OMS typ
| |
newtype Key OMS Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend OMS Source # | |
Defined in Persistence.Schema type PersistEntityBackend OMS = SqlBackend | |
data Unique OMS Source # | |
Defined in Persistence.Schema data Unique OMS |
Constructors
Mapping | |
Fields
|
Instances
Show Mapping Source # | |
PersistEntity Mapping Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Mapping data Key Mapping data EntityField Mapping :: Type -> Type data Unique Mapping Methods keyToValues :: Key Mapping -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Mapping) persistIdField :: EntityField Mapping (Key Mapping) entityDef :: Monad m => m Mapping -> EntityDef persistFieldDef :: EntityField Mapping typ -> FieldDef toPersistFields :: Mapping -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Mapping persistUniqueKeys :: Mapping -> [Unique Mapping] persistUniqueToFieldNames :: Unique Mapping -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Mapping -> [PersistValue] fieldLens :: EntityField Mapping field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Mapping -> f (Entity Mapping) | |
PersistField Mapping Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Mapping -> PersistValue fromPersistValue :: PersistValue -> Either Text Mapping | |
(TypeError (MultipleUniqueKeysError Mapping) :: Constraint) => AtLeastOneUniqueKey Mapping Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Mapping -> NonEmpty (Unique Mapping) | |
(TypeError (NoUniqueKeysError Mapping) :: Constraint) => OnlyOneUniqueKey Mapping Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Mapping -> Unique Mapping | |
PersistFieldSql Mapping Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Mapping ~ BaseBackend backend) => DeleteCascade Mapping backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Mapping -> ReaderT backend m () | |
ToBackendKey SqlBackend Mapping Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Mapping -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Mapping | |
Eq (Key Mapping) Source # | |
Ord (Key Mapping) Source # | |
Defined in Persistence.Schema | |
Read (Key Mapping) Source # | |
Defined in Persistence.Schema | |
Show (Key Mapping) Source # | |
FromJSON (Key Mapping) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Mapping) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Mapping -> Value toEncoding :: Key Mapping -> Encoding toJSONList :: [Key Mapping] -> Value toEncodingList :: [Key Mapping] -> Encoding | |
PersistField (Key Mapping) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Mapping -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Mapping) | |
PersistFieldSql (Key Mapping) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Mapping) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Mapping) parseHeader :: ByteString -> Either Text (Key Mapping) parseQueryParam :: Text -> Either Text (Key Mapping) | |
PathPiece (Key Mapping) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Mapping) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Mapping -> Text toEncodedUrlPiece :: Key Mapping -> Builder toHeader :: Key Mapping -> ByteString toQueryParam :: Key Mapping -> Text | |
data EntityField Mapping typ Source # | |
Defined in Persistence.Schema data EntityField Mapping typ
| |
newtype Key Mapping Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Mapping Source # | |
Defined in Persistence.Schema type PersistEntityBackend Mapping = SqlBackend | |
data Unique Mapping Source # | |
Defined in Persistence.Schema data Unique Mapping |
Constructors
Sentence | |
Fields
|
Instances
Show Sentence Source # | |
PersistEntity Sentence Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Sentence data Key Sentence data EntityField Sentence :: Type -> Type data Unique Sentence Methods keyToValues :: Key Sentence -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Sentence) persistIdField :: EntityField Sentence (Key Sentence) entityDef :: Monad m => m Sentence -> EntityDef persistFieldDef :: EntityField Sentence typ -> FieldDef toPersistFields :: Sentence -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Sentence persistUniqueKeys :: Sentence -> [Unique Sentence] persistUniqueToFieldNames :: Unique Sentence -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Sentence -> [PersistValue] fieldLens :: EntityField Sentence field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Sentence -> f (Entity Sentence) | |
PersistField Sentence Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Sentence -> PersistValue fromPersistValue :: PersistValue -> Either Text Sentence | |
(TypeError (MultipleUniqueKeysError Sentence) :: Constraint) => AtLeastOneUniqueKey Sentence Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Sentence -> NonEmpty (Unique Sentence) | |
(TypeError (NoUniqueKeysError Sentence) :: Constraint) => OnlyOneUniqueKey Sentence Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Sentence -> Unique Sentence | |
PersistFieldSql Sentence Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Sentence ~ BaseBackend backend) => DeleteCascade Sentence backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Sentence -> ReaderT backend m () | |
ToBackendKey SqlBackend Sentence Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Sentence -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Sentence | |
Eq (Key Sentence) Source # | |
Ord (Key Sentence) Source # | |
Defined in Persistence.Schema | |
Read (Key Sentence) Source # | |
Defined in Persistence.Schema | |
Show (Key Sentence) Source # | |
FromJSON (Key Sentence) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Sentence) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Sentence -> Value toEncoding :: Key Sentence -> Encoding toJSONList :: [Key Sentence] -> Value toEncodingList :: [Key Sentence] -> Encoding | |
PersistField (Key Sentence) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Sentence -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Sentence) | |
PersistFieldSql (Key Sentence) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Sentence) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Sentence) parseHeader :: ByteString -> Either Text (Key Sentence) parseQueryParam :: Text -> Either Text (Key Sentence) | |
PathPiece (Key Sentence) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Sentence) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Sentence -> Text toEncodedUrlPiece :: Key Sentence -> Builder toHeader :: Key Sentence -> ByteString toQueryParam :: Key Sentence -> Text | |
data EntityField Sentence typ Source # | |
Defined in Persistence.Schema data EntityField Sentence typ
| |
newtype Key Sentence Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Sentence Source # | |
Defined in Persistence.Schema type PersistEntityBackend Sentence = SqlBackend | |
data Unique Sentence Source # | |
Defined in Persistence.Schema data Unique Sentence |
type SentenceId = Key Sentence Source #
Constructors
Axiom | |
Instances
Show Axiom Source # | |
PersistEntity Axiom Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Axiom data Key Axiom data EntityField Axiom :: Type -> Type data Unique Axiom Methods keyToValues :: Key Axiom -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Axiom) persistIdField :: EntityField Axiom (Key Axiom) entityDef :: Monad m => m Axiom -> EntityDef persistFieldDef :: EntityField Axiom typ -> FieldDef toPersistFields :: Axiom -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Axiom persistUniqueKeys :: Axiom -> [Unique Axiom] persistUniqueToFieldNames :: Unique Axiom -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Axiom -> [PersistValue] fieldLens :: EntityField Axiom field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Axiom -> f (Entity Axiom) | |
PersistField Axiom Source # | |
Defined in Persistence.Schema | |
(TypeError (MultipleUniqueKeysError Axiom) :: Constraint) => AtLeastOneUniqueKey Axiom Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Axiom -> NonEmpty (Unique Axiom) | |
(TypeError (NoUniqueKeysError Axiom) :: Constraint) => OnlyOneUniqueKey Axiom Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Axiom -> Unique Axiom | |
PersistFieldSql Axiom Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Axiom ~ BaseBackend backend) => DeleteCascade Axiom backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Axiom -> ReaderT backend m () | |
ToBackendKey SqlBackend Axiom Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Axiom -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Axiom | |
Eq (Key Axiom) Source # | |
Ord (Key Axiom) Source # | |
Defined in Persistence.Schema | |
Read (Key Axiom) Source # | |
Defined in Persistence.Schema | |
Show (Key Axiom) Source # | |
FromJSON (Key Axiom) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Axiom) Source # | |
Defined in Persistence.Schema Methods toEncoding :: Key Axiom -> Encoding toJSONList :: [Key Axiom] -> Value toEncodingList :: [Key Axiom] -> Encoding | |
PersistField (Key Axiom) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Axiom -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Axiom) | |
PersistFieldSql (Key Axiom) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Axiom) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Axiom) parseHeader :: ByteString -> Either Text (Key Axiom) parseQueryParam :: Text -> Either Text (Key Axiom) | |
PathPiece (Key Axiom) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Axiom) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Axiom -> Text toEncodedUrlPiece :: Key Axiom -> Builder toHeader :: Key Axiom -> ByteString toQueryParam :: Key Axiom -> Text | |
data EntityField Axiom typ Source # | |
Defined in Persistence.Schema | |
newtype Key Axiom Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Axiom Source # | |
Defined in Persistence.Schema type PersistEntityBackend Axiom = SqlBackend | |
data Unique Axiom Source # | |
Defined in Persistence.Schema data Unique Axiom |
data Conjecture Source #
Constructors
Conjecture | |
Fields
|
Instances
Show Conjecture Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Conjecture -> ShowS show :: Conjecture -> String showList :: [Conjecture] -> ShowS | |
PersistEntity Conjecture Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Conjecture data Key Conjecture data EntityField Conjecture :: Type -> Type data Unique Conjecture Methods keyToValues :: Key Conjecture -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Conjecture) persistIdField :: EntityField Conjecture (Key Conjecture) entityDef :: Monad m => m Conjecture -> EntityDef persistFieldDef :: EntityField Conjecture typ -> FieldDef toPersistFields :: Conjecture -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Conjecture persistUniqueKeys :: Conjecture -> [Unique Conjecture] persistUniqueToFieldNames :: Unique Conjecture -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Conjecture -> [PersistValue] fieldLens :: EntityField Conjecture field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Conjecture -> f (Entity Conjecture) | |
PersistField Conjecture Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Conjecture -> PersistValue fromPersistValue :: PersistValue -> Either Text Conjecture | |
(TypeError (MultipleUniqueKeysError Conjecture) :: Constraint) => AtLeastOneUniqueKey Conjecture Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Conjecture -> NonEmpty (Unique Conjecture) | |
(TypeError (NoUniqueKeysError Conjecture) :: Constraint) => OnlyOneUniqueKey Conjecture Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Conjecture -> Unique Conjecture | |
PersistFieldSql Conjecture Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy Conjecture -> SqlType | |
(PersistQuery backend, PersistEntityBackend Conjecture ~ BaseBackend backend) => DeleteCascade Conjecture backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Conjecture -> ReaderT backend m () | |
ToBackendKey SqlBackend Conjecture Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Conjecture -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Conjecture | |
Eq (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods (==) :: Key Conjecture -> Key Conjecture -> Bool (/=) :: Key Conjecture -> Key Conjecture -> Bool | |
Ord (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods compare :: Key Conjecture -> Key Conjecture -> Ordering (<) :: Key Conjecture -> Key Conjecture -> Bool (<=) :: Key Conjecture -> Key Conjecture -> Bool (>) :: Key Conjecture -> Key Conjecture -> Bool (>=) :: Key Conjecture -> Key Conjecture -> Bool max :: Key Conjecture -> Key Conjecture -> Key Conjecture min :: Key Conjecture -> Key Conjecture -> Key Conjecture | |
Read (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key Conjecture) readList :: ReadS [Key Conjecture] readPrec :: ReadPrec (Key Conjecture) readListPrec :: ReadPrec [Key Conjecture] | |
Show (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key Conjecture -> ShowS show :: Key Conjecture -> String showList :: [Key Conjecture] -> ShowS | |
FromJSON (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key Conjecture) parseJSONList :: Value -> Parser [Key Conjecture] | |
ToJSON (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Conjecture -> Value toEncoding :: Key Conjecture -> Encoding toJSONList :: [Key Conjecture] -> Value toEncodingList :: [Key Conjecture] -> Encoding | |
PersistField (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Conjecture -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Conjecture) | |
PersistFieldSql (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key Conjecture) -> SqlType | |
FromHttpApiData (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Conjecture) parseHeader :: ByteString -> Either Text (Key Conjecture) parseQueryParam :: Text -> Either Text (Key Conjecture) | |
PathPiece (Key Conjecture) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Conjecture) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Conjecture -> Text toEncodedUrlPiece :: Key Conjecture -> Builder toHeader :: Key Conjecture -> ByteString toQueryParam :: Key Conjecture -> Text | |
data EntityField Conjecture typ Source # | |
Defined in Persistence.Schema data EntityField Conjecture typ
| |
newtype Key Conjecture Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Conjecture Source # | |
Defined in Persistence.Schema type PersistEntityBackend Conjecture = SqlBackend | |
data Unique Conjecture Source # | |
Defined in Persistence.Schema data Unique Conjecture |
type ConjectureId = Key Conjecture Source #
Constructors
Symbol | |
Fields
|
Instances
Show Symbol Source # | |
PersistEntity Symbol Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Symbol data Key Symbol data EntityField Symbol :: Type -> Type data Unique Symbol Methods keyToValues :: Key Symbol -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Symbol) persistIdField :: EntityField Symbol (Key Symbol) entityDef :: Monad m => m Symbol -> EntityDef persistFieldDef :: EntityField Symbol typ -> FieldDef toPersistFields :: Symbol -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Symbol persistUniqueKeys :: Symbol -> [Unique Symbol] persistUniqueToFieldNames :: Unique Symbol -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Symbol -> [PersistValue] fieldLens :: EntityField Symbol field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Symbol -> f (Entity Symbol) | |
PersistField Symbol Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Symbol -> PersistValue fromPersistValue :: PersistValue -> Either Text Symbol | |
(TypeError (MultipleUniqueKeysError Symbol) :: Constraint) => AtLeastOneUniqueKey Symbol Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Symbol -> NonEmpty (Unique Symbol) | |
(TypeError (NoUniqueKeysError Symbol) :: Constraint) => OnlyOneUniqueKey Symbol Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Symbol -> Unique Symbol | |
PersistFieldSql Symbol Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Symbol ~ BaseBackend backend) => DeleteCascade Symbol backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Symbol -> ReaderT backend m () | |
ToBackendKey SqlBackend Symbol Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Symbol -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Symbol | |
Eq (Key Symbol) Source # | |
Ord (Key Symbol) Source # | |
Read (Key Symbol) Source # | |
Defined in Persistence.Schema | |
Show (Key Symbol) Source # | |
FromJSON (Key Symbol) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Symbol) Source # | |
Defined in Persistence.Schema Methods toEncoding :: Key Symbol -> Encoding toJSONList :: [Key Symbol] -> Value toEncodingList :: [Key Symbol] -> Encoding | |
PersistField (Key Symbol) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Symbol -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Symbol) | |
PersistFieldSql (Key Symbol) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Symbol) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Symbol) parseHeader :: ByteString -> Either Text (Key Symbol) parseQueryParam :: Text -> Either Text (Key Symbol) | |
PathPiece (Key Symbol) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Symbol) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Symbol -> Text toEncodedUrlPiece :: Key Symbol -> Builder toHeader :: Key Symbol -> ByteString toQueryParam :: Key Symbol -> Text | |
data EntityField Symbol typ Source # | |
Defined in Persistence.Schema data EntityField Symbol typ
| |
newtype Key Symbol Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Symbol Source # | |
Defined in Persistence.Schema type PersistEntityBackend Symbol = SqlBackend | |
data Unique Symbol Source # | |
Defined in Persistence.Schema data Unique Symbol |
data SymbolMapping Source #
Constructors
SymbolMapping | |
Fields
|
Instances
Show SymbolMapping Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> SymbolMapping -> ShowS show :: SymbolMapping -> String showList :: [SymbolMapping] -> ShowS | |
PersistEntity SymbolMapping Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend SymbolMapping data Key SymbolMapping data EntityField SymbolMapping :: Type -> Type data Unique SymbolMapping Methods keyToValues :: Key SymbolMapping -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key SymbolMapping) persistIdField :: EntityField SymbolMapping (Key SymbolMapping) entityDef :: Monad m => m SymbolMapping -> EntityDef persistFieldDef :: EntityField SymbolMapping typ -> FieldDef toPersistFields :: SymbolMapping -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text SymbolMapping persistUniqueKeys :: SymbolMapping -> [Unique SymbolMapping] persistUniqueToFieldNames :: Unique SymbolMapping -> [(HaskellName, DBName)] persistUniqueToValues :: Unique SymbolMapping -> [PersistValue] fieldLens :: EntityField SymbolMapping field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity SymbolMapping -> f (Entity SymbolMapping) | |
PersistField SymbolMapping Source # | |
Defined in Persistence.Schema Methods toPersistValue :: SymbolMapping -> PersistValue fromPersistValue :: PersistValue -> Either Text SymbolMapping | |
(TypeError (MultipleUniqueKeysError SymbolMapping) :: Constraint) => AtLeastOneUniqueKey SymbolMapping Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: SymbolMapping -> NonEmpty (Unique SymbolMapping) | |
(TypeError (NoUniqueKeysError SymbolMapping) :: Constraint) => OnlyOneUniqueKey SymbolMapping Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: SymbolMapping -> Unique SymbolMapping | |
PersistFieldSql SymbolMapping Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy SymbolMapping -> SqlType | |
(PersistQuery backend, PersistEntityBackend SymbolMapping ~ BaseBackend backend) => DeleteCascade SymbolMapping backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key SymbolMapping -> ReaderT backend m () | |
ToBackendKey SqlBackend SymbolMapping Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key SymbolMapping -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key SymbolMapping | |
Eq (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods (==) :: Key SymbolMapping -> Key SymbolMapping -> Bool (/=) :: Key SymbolMapping -> Key SymbolMapping -> Bool | |
Ord (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods compare :: Key SymbolMapping -> Key SymbolMapping -> Ordering (<) :: Key SymbolMapping -> Key SymbolMapping -> Bool (<=) :: Key SymbolMapping -> Key SymbolMapping -> Bool (>) :: Key SymbolMapping -> Key SymbolMapping -> Bool (>=) :: Key SymbolMapping -> Key SymbolMapping -> Bool max :: Key SymbolMapping -> Key SymbolMapping -> Key SymbolMapping min :: Key SymbolMapping -> Key SymbolMapping -> Key SymbolMapping | |
Read (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key SymbolMapping) readList :: ReadS [Key SymbolMapping] readPrec :: ReadPrec (Key SymbolMapping) readListPrec :: ReadPrec [Key SymbolMapping] | |
Show (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key SymbolMapping -> ShowS show :: Key SymbolMapping -> String showList :: [Key SymbolMapping] -> ShowS | |
FromJSON (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key SymbolMapping) parseJSONList :: Value -> Parser [Key SymbolMapping] | |
ToJSON (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key SymbolMapping -> Value toEncoding :: Key SymbolMapping -> Encoding toJSONList :: [Key SymbolMapping] -> Value toEncodingList :: [Key SymbolMapping] -> Encoding | |
PersistField (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key SymbolMapping -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key SymbolMapping) | |
PersistFieldSql (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key SymbolMapping) -> SqlType | |
FromHttpApiData (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key SymbolMapping) parseHeader :: ByteString -> Either Text (Key SymbolMapping) parseQueryParam :: Text -> Either Text (Key SymbolMapping) | |
PathPiece (Key SymbolMapping) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key SymbolMapping) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key SymbolMapping -> Text toEncodedUrlPiece :: Key SymbolMapping -> Builder toHeader :: Key SymbolMapping -> ByteString toQueryParam :: Key SymbolMapping -> Text | |
data EntityField SymbolMapping typ Source # | |
Defined in Persistence.Schema data EntityField SymbolMapping typ
| |
newtype Key SymbolMapping Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend SymbolMapping Source # | |
Defined in Persistence.Schema type PersistEntityBackend SymbolMapping = SqlBackend | |
data Unique SymbolMapping Source # | |
Defined in Persistence.Schema data Unique SymbolMapping |
type SymbolMappingId = Key SymbolMapping Source #
data SentenceSymbol Source #
Constructors
SentenceSymbol | |
Fields
|
Instances
Show SentenceSymbol Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> SentenceSymbol -> ShowS show :: SentenceSymbol -> String showList :: [SentenceSymbol] -> ShowS | |
PersistEntity SentenceSymbol Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend SentenceSymbol data Key SentenceSymbol data EntityField SentenceSymbol :: Type -> Type data Unique SentenceSymbol Methods keyToValues :: Key SentenceSymbol -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key SentenceSymbol) persistIdField :: EntityField SentenceSymbol (Key SentenceSymbol) entityDef :: Monad m => m SentenceSymbol -> EntityDef persistFieldDef :: EntityField SentenceSymbol typ -> FieldDef toPersistFields :: SentenceSymbol -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text SentenceSymbol persistUniqueKeys :: SentenceSymbol -> [Unique SentenceSymbol] persistUniqueToFieldNames :: Unique SentenceSymbol -> [(HaskellName, DBName)] persistUniqueToValues :: Unique SentenceSymbol -> [PersistValue] fieldLens :: EntityField SentenceSymbol field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity SentenceSymbol -> f (Entity SentenceSymbol) | |
PersistField SentenceSymbol Source # | |
Defined in Persistence.Schema Methods toPersistValue :: SentenceSymbol -> PersistValue fromPersistValue :: PersistValue -> Either Text SentenceSymbol | |
(TypeError (MultipleUniqueKeysError SentenceSymbol) :: Constraint) => AtLeastOneUniqueKey SentenceSymbol Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: SentenceSymbol -> NonEmpty (Unique SentenceSymbol) | |
(TypeError (NoUniqueKeysError SentenceSymbol) :: Constraint) => OnlyOneUniqueKey SentenceSymbol Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: SentenceSymbol -> Unique SentenceSymbol | |
PersistFieldSql SentenceSymbol Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy SentenceSymbol -> SqlType | |
(PersistQuery backend, PersistEntityBackend SentenceSymbol ~ BaseBackend backend) => DeleteCascade SentenceSymbol backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key SentenceSymbol -> ReaderT backend m () | |
Eq (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Methods (==) :: Key SentenceSymbol -> Key SentenceSymbol -> Bool (/=) :: Key SentenceSymbol -> Key SentenceSymbol -> Bool | |
Ord (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Methods compare :: Key SentenceSymbol -> Key SentenceSymbol -> Ordering (<) :: Key SentenceSymbol -> Key SentenceSymbol -> Bool (<=) :: Key SentenceSymbol -> Key SentenceSymbol -> Bool (>) :: Key SentenceSymbol -> Key SentenceSymbol -> Bool (>=) :: Key SentenceSymbol -> Key SentenceSymbol -> Bool max :: Key SentenceSymbol -> Key SentenceSymbol -> Key SentenceSymbol min :: Key SentenceSymbol -> Key SentenceSymbol -> Key SentenceSymbol | |
Read (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key SentenceSymbol) readList :: ReadS [Key SentenceSymbol] readPrec :: ReadPrec (Key SentenceSymbol) readListPrec :: ReadPrec [Key SentenceSymbol] | |
Show (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key SentenceSymbol -> ShowS show :: Key SentenceSymbol -> String showList :: [Key SentenceSymbol] -> ShowS | |
Generic (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Associated Types type Rep (Key SentenceSymbol) :: Type -> Type Methods from :: Key SentenceSymbol -> Rep (Key SentenceSymbol) x to :: Rep (Key SentenceSymbol) x -> Key SentenceSymbol | |
FromJSON (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key SentenceSymbol) parseJSONList :: Value -> Parser [Key SentenceSymbol] | |
ToJSON (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key SentenceSymbol -> Value toEncoding :: Key SentenceSymbol -> Encoding toJSONList :: [Key SentenceSymbol] -> Value toEncodingList :: [Key SentenceSymbol] -> Encoding | |
PersistField (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key SentenceSymbol -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key SentenceSymbol) | |
PersistFieldSql (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key SentenceSymbol) -> SqlType | |
data EntityField SentenceSymbol typ Source # | |
Defined in Persistence.Schema data EntityField SentenceSymbol typ
| |
data Key SentenceSymbol Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend SentenceSymbol Source # | |
Defined in Persistence.Schema type PersistEntityBackend SentenceSymbol = SqlBackend | |
data Unique SentenceSymbol Source # | |
Defined in Persistence.Schema data Unique SentenceSymbol | |
type Rep (Key SentenceSymbol) Source # | |
Defined in Persistence.Schema type Rep (Key SentenceSymbol) = D1 ('MetaData "Key" "Persistence.Schema" "main" 'False) (C1 ('MetaCons "SentenceSymbolKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "sentenceSymbolKeysentenceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LocIdBaseId) :*: S1 ('MetaSel ('Just "sentenceSymbolKeysymbolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LocIdBaseId))) |
type SentenceSymbolId = Key SentenceSymbol Source #
data SignatureSymbol Source #
Constructors
SignatureSymbol | |
Fields
|
Instances
Show SignatureSymbol Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> SignatureSymbol -> ShowS show :: SignatureSymbol -> String showList :: [SignatureSymbol] -> ShowS | |
PersistEntity SignatureSymbol Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend SignatureSymbol data Key SignatureSymbol data EntityField SignatureSymbol :: Type -> Type data Unique SignatureSymbol Methods keyToValues :: Key SignatureSymbol -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key SignatureSymbol) persistIdField :: EntityField SignatureSymbol (Key SignatureSymbol) entityDef :: Monad m => m SignatureSymbol -> EntityDef persistFieldDef :: EntityField SignatureSymbol typ -> FieldDef toPersistFields :: SignatureSymbol -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text SignatureSymbol persistUniqueKeys :: SignatureSymbol -> [Unique SignatureSymbol] persistUniqueToFieldNames :: Unique SignatureSymbol -> [(HaskellName, DBName)] persistUniqueToValues :: Unique SignatureSymbol -> [PersistValue] fieldLens :: EntityField SignatureSymbol field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity SignatureSymbol -> f (Entity SignatureSymbol) | |
PersistField SignatureSymbol Source # | |
Defined in Persistence.Schema Methods toPersistValue :: SignatureSymbol -> PersistValue fromPersistValue :: PersistValue -> Either Text SignatureSymbol | |
(TypeError (MultipleUniqueKeysError SignatureSymbol) :: Constraint) => AtLeastOneUniqueKey SignatureSymbol Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: SignatureSymbol -> NonEmpty (Unique SignatureSymbol) | |
(TypeError (NoUniqueKeysError SignatureSymbol) :: Constraint) => OnlyOneUniqueKey SignatureSymbol Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: SignatureSymbol -> Unique SignatureSymbol | |
PersistFieldSql SignatureSymbol Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy SignatureSymbol -> SqlType | |
(PersistQuery backend, PersistEntityBackend SignatureSymbol ~ BaseBackend backend) => DeleteCascade SignatureSymbol backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key SignatureSymbol -> ReaderT backend m () | |
Eq (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Methods (==) :: Key SignatureSymbol -> Key SignatureSymbol -> Bool (/=) :: Key SignatureSymbol -> Key SignatureSymbol -> Bool | |
Ord (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Methods compare :: Key SignatureSymbol -> Key SignatureSymbol -> Ordering (<) :: Key SignatureSymbol -> Key SignatureSymbol -> Bool (<=) :: Key SignatureSymbol -> Key SignatureSymbol -> Bool (>) :: Key SignatureSymbol -> Key SignatureSymbol -> Bool (>=) :: Key SignatureSymbol -> Key SignatureSymbol -> Bool max :: Key SignatureSymbol -> Key SignatureSymbol -> Key SignatureSymbol min :: Key SignatureSymbol -> Key SignatureSymbol -> Key SignatureSymbol | |
Read (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key SignatureSymbol) readList :: ReadS [Key SignatureSymbol] readPrec :: ReadPrec (Key SignatureSymbol) readListPrec :: ReadPrec [Key SignatureSymbol] | |
Show (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key SignatureSymbol -> ShowS show :: Key SignatureSymbol -> String showList :: [Key SignatureSymbol] -> ShowS | |
Generic (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Associated Types type Rep (Key SignatureSymbol) :: Type -> Type Methods from :: Key SignatureSymbol -> Rep (Key SignatureSymbol) x to :: Rep (Key SignatureSymbol) x -> Key SignatureSymbol | |
FromJSON (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key SignatureSymbol) parseJSONList :: Value -> Parser [Key SignatureSymbol] | |
ToJSON (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key SignatureSymbol -> Value toEncoding :: Key SignatureSymbol -> Encoding toJSONList :: [Key SignatureSymbol] -> Value toEncodingList :: [Key SignatureSymbol] -> Encoding | |
PersistField (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key SignatureSymbol -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key SignatureSymbol) | |
PersistFieldSql (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key SignatureSymbol) -> SqlType | |
data EntityField SignatureSymbol typ Source # | |
Defined in Persistence.Schema data EntityField SignatureSymbol typ
| |
data Key SignatureSymbol Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend SignatureSymbol Source # | |
Defined in Persistence.Schema type PersistEntityBackend SignatureSymbol = SqlBackend | |
data Unique SignatureSymbol Source # | |
Defined in Persistence.Schema data Unique SignatureSymbol | |
type Rep (Key SignatureSymbol) Source # | |
Defined in Persistence.Schema type Rep (Key SignatureSymbol) = D1 ('MetaData "Key" "Persistence.Schema" "main" 'False) (C1 ('MetaCons "SignatureSymbolKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "signatureSymbolKeysignatureId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SignatureId) :*: S1 ('MetaSel ('Just "signatureSymbolKeysymbolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LocIdBaseId))) |
type SignatureSymbolId = Key SignatureSymbol Source #
Constructors
Reasoner | |
Fields
|
Instances
Show Reasoner Source # | |
PersistEntity Reasoner Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend Reasoner data Key Reasoner data EntityField Reasoner :: Type -> Type data Unique Reasoner Methods keyToValues :: Key Reasoner -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Reasoner) persistIdField :: EntityField Reasoner (Key Reasoner) entityDef :: Monad m => m Reasoner -> EntityDef persistFieldDef :: EntityField Reasoner typ -> FieldDef toPersistFields :: Reasoner -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Reasoner persistUniqueKeys :: Reasoner -> [Unique Reasoner] persistUniqueToFieldNames :: Unique Reasoner -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Reasoner -> [PersistValue] fieldLens :: EntityField Reasoner field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Reasoner -> f (Entity Reasoner) | |
PersistField Reasoner Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Reasoner -> PersistValue fromPersistValue :: PersistValue -> Either Text Reasoner | |
AtLeastOneUniqueKey Reasoner Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: Reasoner -> NonEmpty (Unique Reasoner) | |
OnlyOneUniqueKey Reasoner Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: Reasoner -> Unique Reasoner | |
PersistFieldSql Reasoner Source # | |
Defined in Persistence.Schema | |
(PersistQuery backend, PersistEntityBackend Reasoner ~ BaseBackend backend) => DeleteCascade Reasoner backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key Reasoner -> ReaderT backend m () | |
ToBackendKey SqlBackend Reasoner Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key Reasoner -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Reasoner | |
Eq (Key Reasoner) Source # | |
Ord (Key Reasoner) Source # | |
Defined in Persistence.Schema | |
Read (Key Reasoner) Source # | |
Defined in Persistence.Schema | |
Show (Key Reasoner) Source # | |
Show (Unique Reasoner) Source # | |
FromJSON (Key Reasoner) Source # | |
Defined in Persistence.Schema | |
ToJSON (Key Reasoner) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key Reasoner -> Value toEncoding :: Key Reasoner -> Encoding toJSONList :: [Key Reasoner] -> Value toEncodingList :: [Key Reasoner] -> Encoding | |
PersistField (Key Reasoner) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key Reasoner -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Reasoner) | |
PersistFieldSql (Key Reasoner) Source # | |
Defined in Persistence.Schema | |
FromHttpApiData (Key Reasoner) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key Reasoner) parseHeader :: ByteString -> Either Text (Key Reasoner) parseQueryParam :: Text -> Either Text (Key Reasoner) | |
PathPiece (Key Reasoner) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key Reasoner) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key Reasoner -> Text toEncodedUrlPiece :: Key Reasoner -> Builder toHeader :: Key Reasoner -> ByteString toQueryParam :: Key Reasoner -> Text | |
data EntityField Reasoner typ Source # | |
Defined in Persistence.Schema data EntityField Reasoner typ
| |
newtype Key Reasoner Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend Reasoner Source # | |
Defined in Persistence.Schema type PersistEntityBackend Reasoner = SqlBackend | |
data Unique Reasoner Source # | |
Defined in Persistence.Schema |
type ReasonerId = Key Reasoner Source #
data ReasonerConfiguration Source #
Constructors
ReasonerConfiguration | |
Fields
|
Instances
type ReasonerConfigurationId = Key ReasonerConfiguration Source #
data ManualPremiseSelection Source #
Constructors
ManualPremiseSelection | |
Instances
type ManualPremiseSelectionId = Key ManualPremiseSelection Source #
data SinePremiseSelection Source #
Constructors
SinePremiseSelection | |
Fields
|
Instances
type SinePremiseSelectionId = Key SinePremiseSelection Source #
data SineSymbolPremiseTrigger Source #
Constructors
SineSymbolPremiseTrigger | |
Fields
|
Instances
data SineSymbolCommonness Source #
Constructors
SineSymbolCommonness | |
Fields |
Instances
type SineSymbolCommonnessId = Key SineSymbolCommonness Source #
data ReasoningAttempt Source #
Constructors
ReasoningAttempt | |
Fields
|
Instances
type ReasoningAttemptId = Key ReasoningAttempt Source #
data ProofAttempt Source #
Constructors
ProofAttempt | |
Fields
|
Instances
PersistEntity ProofAttempt Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend ProofAttempt data Key ProofAttempt data EntityField ProofAttempt :: Type -> Type data Unique ProofAttempt Methods keyToValues :: Key ProofAttempt -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key ProofAttempt) persistIdField :: EntityField ProofAttempt (Key ProofAttempt) entityDef :: Monad m => m ProofAttempt -> EntityDef persistFieldDef :: EntityField ProofAttempt typ -> FieldDef toPersistFields :: ProofAttempt -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text ProofAttempt persistUniqueKeys :: ProofAttempt -> [Unique ProofAttempt] persistUniqueToFieldNames :: Unique ProofAttempt -> [(HaskellName, DBName)] persistUniqueToValues :: Unique ProofAttempt -> [PersistValue] fieldLens :: EntityField ProofAttempt field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity ProofAttempt -> f (Entity ProofAttempt) | |
PersistField ProofAttempt Source # | |
Defined in Persistence.Schema Methods toPersistValue :: ProofAttempt -> PersistValue fromPersistValue :: PersistValue -> Either Text ProofAttempt | |
(TypeError (MultipleUniqueKeysError ProofAttempt) :: Constraint) => AtLeastOneUniqueKey ProofAttempt Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: ProofAttempt -> NonEmpty (Unique ProofAttempt) | |
(TypeError (NoUniqueKeysError ProofAttempt) :: Constraint) => OnlyOneUniqueKey ProofAttempt Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: ProofAttempt -> Unique ProofAttempt | |
PersistFieldSql ProofAttempt Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy ProofAttempt -> SqlType | |
(PersistQuery backend, PersistEntityBackend ProofAttempt ~ BaseBackend backend) => DeleteCascade ProofAttempt backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key ProofAttempt -> ReaderT backend m () | |
ToBackendKey SqlBackend ProofAttempt Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key ProofAttempt -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key ProofAttempt | |
Eq (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods (==) :: Key ProofAttempt -> Key ProofAttempt -> Bool (/=) :: Key ProofAttempt -> Key ProofAttempt -> Bool | |
Ord (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods compare :: Key ProofAttempt -> Key ProofAttempt -> Ordering (<) :: Key ProofAttempt -> Key ProofAttempt -> Bool (<=) :: Key ProofAttempt -> Key ProofAttempt -> Bool (>) :: Key ProofAttempt -> Key ProofAttempt -> Bool (>=) :: Key ProofAttempt -> Key ProofAttempt -> Bool max :: Key ProofAttempt -> Key ProofAttempt -> Key ProofAttempt min :: Key ProofAttempt -> Key ProofAttempt -> Key ProofAttempt | |
Read (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key ProofAttempt) readList :: ReadS [Key ProofAttempt] readPrec :: ReadPrec (Key ProofAttempt) readListPrec :: ReadPrec [Key ProofAttempt] | |
Show (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key ProofAttempt -> ShowS show :: Key ProofAttempt -> String showList :: [Key ProofAttempt] -> ShowS | |
FromJSON (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key ProofAttempt) parseJSONList :: Value -> Parser [Key ProofAttempt] | |
ToJSON (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key ProofAttempt -> Value toEncoding :: Key ProofAttempt -> Encoding toJSONList :: [Key ProofAttempt] -> Value toEncodingList :: [Key ProofAttempt] -> Encoding | |
PersistField (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key ProofAttempt -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key ProofAttempt) | |
PersistFieldSql (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key ProofAttempt) -> SqlType | |
FromHttpApiData (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key ProofAttempt) parseHeader :: ByteString -> Either Text (Key ProofAttempt) parseQueryParam :: Text -> Either Text (Key ProofAttempt) | |
PathPiece (Key ProofAttempt) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key ProofAttempt) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key ProofAttempt -> Text toEncodedUrlPiece :: Key ProofAttempt -> Builder toHeader :: Key ProofAttempt -> ByteString toQueryParam :: Key ProofAttempt -> Text | |
data EntityField ProofAttempt typ Source # | |
Defined in Persistence.Schema data EntityField ProofAttempt typ
| |
newtype Key ProofAttempt Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend ProofAttempt Source # | |
Defined in Persistence.Schema type PersistEntityBackend ProofAttempt = SqlBackend | |
data Unique ProofAttempt Source # | |
Defined in Persistence.Schema data Unique ProofAttempt |
data PremiseSelection Source #
Constructors
PremiseSelection | |
Fields
|
Instances
data PremiseSelectedSentence Source #
Constructors
PremiseSelectedSentence | |
Fields |
Instances
type PremiseSelectedSentenceId = Key PremiseSelectedSentence Source #
type PremiseSelectionId = Key PremiseSelection Source #
type ProofAttemptId = Key ProofAttempt Source #
data ConsistencyCheckAttempt Source #
Constructors
ConsistencyCheckAttempt | |
Fields
|
Instances
type ConsistencyCheckAttemptId = Key ConsistencyCheckAttempt Source #
data ProofAttemptUsedSentence Source #
Constructors
ProofAttemptUsedSentence | |
Fields |
Instances
data GeneratedAxiom Source #
Constructors
GeneratedAxiom | |
Fields
|
Instances
Show GeneratedAxiom Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> GeneratedAxiom -> ShowS show :: GeneratedAxiom -> String showList :: [GeneratedAxiom] -> ShowS | |
PersistEntity GeneratedAxiom Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend GeneratedAxiom data Key GeneratedAxiom data EntityField GeneratedAxiom :: Type -> Type data Unique GeneratedAxiom Methods keyToValues :: Key GeneratedAxiom -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key GeneratedAxiom) persistIdField :: EntityField GeneratedAxiom (Key GeneratedAxiom) entityDef :: Monad m => m GeneratedAxiom -> EntityDef persistFieldDef :: EntityField GeneratedAxiom typ -> FieldDef toPersistFields :: GeneratedAxiom -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text GeneratedAxiom persistUniqueKeys :: GeneratedAxiom -> [Unique GeneratedAxiom] persistUniqueToFieldNames :: Unique GeneratedAxiom -> [(HaskellName, DBName)] persistUniqueToValues :: Unique GeneratedAxiom -> [PersistValue] fieldLens :: EntityField GeneratedAxiom field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity GeneratedAxiom -> f (Entity GeneratedAxiom) | |
PersistField GeneratedAxiom Source # | |
Defined in Persistence.Schema Methods toPersistValue :: GeneratedAxiom -> PersistValue fromPersistValue :: PersistValue -> Either Text GeneratedAxiom | |
(TypeError (MultipleUniqueKeysError GeneratedAxiom) :: Constraint) => AtLeastOneUniqueKey GeneratedAxiom Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: GeneratedAxiom -> NonEmpty (Unique GeneratedAxiom) | |
(TypeError (NoUniqueKeysError GeneratedAxiom) :: Constraint) => OnlyOneUniqueKey GeneratedAxiom Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: GeneratedAxiom -> Unique GeneratedAxiom | |
PersistFieldSql GeneratedAxiom Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy GeneratedAxiom -> SqlType | |
(PersistQuery backend, PersistEntityBackend GeneratedAxiom ~ BaseBackend backend) => DeleteCascade GeneratedAxiom backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key GeneratedAxiom -> ReaderT backend m () | |
ToBackendKey SqlBackend GeneratedAxiom Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key GeneratedAxiom -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key GeneratedAxiom | |
Eq (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods (==) :: Key GeneratedAxiom -> Key GeneratedAxiom -> Bool (/=) :: Key GeneratedAxiom -> Key GeneratedAxiom -> Bool | |
Ord (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods compare :: Key GeneratedAxiom -> Key GeneratedAxiom -> Ordering (<) :: Key GeneratedAxiom -> Key GeneratedAxiom -> Bool (<=) :: Key GeneratedAxiom -> Key GeneratedAxiom -> Bool (>) :: Key GeneratedAxiom -> Key GeneratedAxiom -> Bool (>=) :: Key GeneratedAxiom -> Key GeneratedAxiom -> Bool max :: Key GeneratedAxiom -> Key GeneratedAxiom -> Key GeneratedAxiom min :: Key GeneratedAxiom -> Key GeneratedAxiom -> Key GeneratedAxiom | |
Read (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key GeneratedAxiom) readList :: ReadS [Key GeneratedAxiom] readPrec :: ReadPrec (Key GeneratedAxiom) readListPrec :: ReadPrec [Key GeneratedAxiom] | |
Show (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key GeneratedAxiom -> ShowS show :: Key GeneratedAxiom -> String showList :: [Key GeneratedAxiom] -> ShowS | |
FromJSON (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key GeneratedAxiom) parseJSONList :: Value -> Parser [Key GeneratedAxiom] | |
ToJSON (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key GeneratedAxiom -> Value toEncoding :: Key GeneratedAxiom -> Encoding toJSONList :: [Key GeneratedAxiom] -> Value toEncodingList :: [Key GeneratedAxiom] -> Encoding | |
PersistField (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key GeneratedAxiom -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key GeneratedAxiom) | |
PersistFieldSql (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key GeneratedAxiom) -> SqlType | |
FromHttpApiData (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key GeneratedAxiom) parseHeader :: ByteString -> Either Text (Key GeneratedAxiom) parseQueryParam :: Text -> Either Text (Key GeneratedAxiom) | |
PathPiece (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key GeneratedAxiom) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key GeneratedAxiom -> Text toEncodedUrlPiece :: Key GeneratedAxiom -> Builder toHeader :: Key GeneratedAxiom -> ByteString toQueryParam :: Key GeneratedAxiom -> Text | |
data EntityField GeneratedAxiom typ Source # | |
Defined in Persistence.Schema data EntityField GeneratedAxiom typ
| |
newtype Key GeneratedAxiom Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend GeneratedAxiom Source # | |
Defined in Persistence.Schema type PersistEntityBackend GeneratedAxiom = SqlBackend | |
data Unique GeneratedAxiom Source # | |
Defined in Persistence.Schema data Unique GeneratedAxiom |
type GeneratedAxiomId = Key GeneratedAxiom Source #
data ReasonerOutput Source #
Constructors
ReasonerOutput | |
Fields
|
Instances
Show ReasonerOutput Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> ReasonerOutput -> ShowS show :: ReasonerOutput -> String showList :: [ReasonerOutput] -> ShowS | |
PersistEntity ReasonerOutput Source # | |
Defined in Persistence.Schema Associated Types type PersistEntityBackend ReasonerOutput data Key ReasonerOutput data EntityField ReasonerOutput :: Type -> Type data Unique ReasonerOutput Methods keyToValues :: Key ReasonerOutput -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key ReasonerOutput) persistIdField :: EntityField ReasonerOutput (Key ReasonerOutput) entityDef :: Monad m => m ReasonerOutput -> EntityDef persistFieldDef :: EntityField ReasonerOutput typ -> FieldDef toPersistFields :: ReasonerOutput -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text ReasonerOutput persistUniqueKeys :: ReasonerOutput -> [Unique ReasonerOutput] persistUniqueToFieldNames :: Unique ReasonerOutput -> [(HaskellName, DBName)] persistUniqueToValues :: Unique ReasonerOutput -> [PersistValue] fieldLens :: EntityField ReasonerOutput field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity ReasonerOutput -> f (Entity ReasonerOutput) | |
PersistField ReasonerOutput Source # | |
Defined in Persistence.Schema Methods toPersistValue :: ReasonerOutput -> PersistValue fromPersistValue :: PersistValue -> Either Text ReasonerOutput | |
(TypeError (MultipleUniqueKeysError ReasonerOutput) :: Constraint) => AtLeastOneUniqueKey ReasonerOutput Source # | |
Defined in Persistence.Schema Methods requireUniquesP :: ReasonerOutput -> NonEmpty (Unique ReasonerOutput) | |
(TypeError (NoUniqueKeysError ReasonerOutput) :: Constraint) => OnlyOneUniqueKey ReasonerOutput Source # | |
Defined in Persistence.Schema Methods onlyUniqueP :: ReasonerOutput -> Unique ReasonerOutput | |
PersistFieldSql ReasonerOutput Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy ReasonerOutput -> SqlType | |
(PersistQuery backend, PersistEntityBackend ReasonerOutput ~ BaseBackend backend) => DeleteCascade ReasonerOutput backend Source # | |
Defined in Persistence.Schema Methods deleteCascade :: forall (m :: Type -> Type). MonadIO m => Key ReasonerOutput -> ReaderT backend m () | |
ToBackendKey SqlBackend ReasonerOutput Source # | |
Defined in Persistence.Schema Methods toBackendKey :: Key ReasonerOutput -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key ReasonerOutput | |
Eq (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods (==) :: Key ReasonerOutput -> Key ReasonerOutput -> Bool (/=) :: Key ReasonerOutput -> Key ReasonerOutput -> Bool | |
Ord (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods compare :: Key ReasonerOutput -> Key ReasonerOutput -> Ordering (<) :: Key ReasonerOutput -> Key ReasonerOutput -> Bool (<=) :: Key ReasonerOutput -> Key ReasonerOutput -> Bool (>) :: Key ReasonerOutput -> Key ReasonerOutput -> Bool (>=) :: Key ReasonerOutput -> Key ReasonerOutput -> Bool max :: Key ReasonerOutput -> Key ReasonerOutput -> Key ReasonerOutput min :: Key ReasonerOutput -> Key ReasonerOutput -> Key ReasonerOutput | |
Read (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods readsPrec :: Int -> ReadS (Key ReasonerOutput) readList :: ReadS [Key ReasonerOutput] readPrec :: ReadPrec (Key ReasonerOutput) readListPrec :: ReadPrec [Key ReasonerOutput] | |
Show (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods showsPrec :: Int -> Key ReasonerOutput -> ShowS show :: Key ReasonerOutput -> String showList :: [Key ReasonerOutput] -> ShowS | |
FromJSON (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods parseJSON :: Value -> Parser (Key ReasonerOutput) parseJSONList :: Value -> Parser [Key ReasonerOutput] | |
ToJSON (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods toJSON :: Key ReasonerOutput -> Value toEncoding :: Key ReasonerOutput -> Encoding toJSONList :: [Key ReasonerOutput] -> Value toEncodingList :: [Key ReasonerOutput] -> Encoding | |
PersistField (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods toPersistValue :: Key ReasonerOutput -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key ReasonerOutput) | |
PersistFieldSql (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods sqlType :: Proxy (Key ReasonerOutput) -> SqlType | |
FromHttpApiData (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods parseUrlPiece :: Text -> Either Text (Key ReasonerOutput) parseHeader :: ByteString -> Either Text (Key ReasonerOutput) parseQueryParam :: Text -> Either Text (Key ReasonerOutput) | |
PathPiece (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema | |
ToHttpApiData (Key ReasonerOutput) Source # | |
Defined in Persistence.Schema Methods toUrlPiece :: Key ReasonerOutput -> Text toEncodedUrlPiece :: Key ReasonerOutput -> Builder toHeader :: Key ReasonerOutput -> ByteString toQueryParam :: Key ReasonerOutput -> Text | |
data EntityField ReasonerOutput typ Source # | |
Defined in Persistence.Schema data EntityField ReasonerOutput typ
| |
newtype Key ReasonerOutput Source # | |
Defined in Persistence.Schema | |
type PersistEntityBackend ReasonerOutput Source # | |
Defined in Persistence.Schema type PersistEntityBackend ReasonerOutput = SqlBackend | |
data Unique ReasonerOutput Source # | |
Defined in Persistence.Schema data Unique ReasonerOutput |
type ReasonerOutputId = Key ReasonerOutput Source #
migrateAll :: Migration Source #