Safe Haskell | None |
---|---|
Language | Haskell2010 |
Schema for fast but less reliable cache data
Documentation
Peer | |
|
Instances
PersistEntity Peer # | |
Defined in Gini.Storage.Cache.Schema keyToValues :: Key Peer -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Peer) persistIdField :: EntityField Peer (Key Peer) entityDef :: Monad m => m Peer -> EntityDef persistFieldDef :: EntityField Peer typ -> FieldDef toPersistFields :: Peer -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Peer persistUniqueKeys :: Peer -> [Unique Peer] persistUniqueToFieldNames :: Unique Peer -> [(HaskellName, DBName)] persistUniqueToValues :: Unique Peer -> [PersistValue] fieldLens :: EntityField Peer field -> forall (f :: * -> *). Functor f => (field -> f field) -> Entity Peer -> f (Entity Peer) | |
PersistField Peer # | |
Defined in Gini.Storage.Cache.Schema toPersistValue :: Peer -> PersistValue fromPersistValue :: PersistValue -> Either Text Peer | |
PersistFieldSql Peer # | |
Defined in Gini.Storage.Cache.Schema | |
ToBackendKey SqlBackend Peer # | |
Defined in Gini.Storage.Cache.Schema toBackendKey :: Key Peer -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Peer | |
Eq (Key Peer) # | |
Ord (Key Peer) # | |
Defined in Gini.Storage.Cache.Schema | |
Read (Key Peer) # | |
Show (Key Peer) # | |
PathPiece (Key Peer) # | |
Defined in Gini.Storage.Cache.Schema fromPathPiece :: Text -> Maybe (Key Peer) # toPathPiece :: Key Peer -> Text # | |
PersistField (Key Peer) # | |
Defined in Gini.Storage.Cache.Schema toPersistValue :: Key Peer -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Peer) | |
PersistFieldSql (Key Peer) # | |
Defined in Gini.Storage.Cache.Schema | |
FromJSON (Key Peer) # | |
Defined in Gini.Storage.Cache.Schema parseJSON :: Value -> Parser (Key Peer) parseJSONList :: Value -> Parser [Key Peer] | |
ToJSON (Key Peer) # | |
Defined in Gini.Storage.Cache.Schema toEncoding :: Key Peer -> Encoding toJSONList :: [Key Peer] -> Value toEncodingList :: [Key Peer] -> Encoding | |
FromHttpApiData (Key Peer) # | |
Defined in Gini.Storage.Cache.Schema parseUrlPiece :: Text -> Either Text (Key Peer) parseHeader :: ByteString -> Either Text (Key Peer) parseQueryParam :: Text -> Either Text (Key Peer) | |
ToHttpApiData (Key Peer) # | |
Defined in Gini.Storage.Cache.Schema toUrlPiece :: Key Peer -> Text toEncodedUrlPiece :: Key Peer -> Builder toHeader :: Key Peer -> ByteString toQueryParam :: Key Peer -> Text | |
data EntityField Peer typ # | |
Defined in Gini.Storage.Cache.Schema data EntityField Peer typ where
| |
data Key Peer # | |
Defined in Gini.Storage.Cache.Schema | |
type PersistEntityBackend Peer # | |
Defined in Gini.Storage.Cache.Schema type PersistEntityBackend Peer = SqlBackend | |
data Unique Peer # | |
Defined in Gini.Storage.Cache.Schema |
migrateCache :: Migration #