gini-storage-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Storage

Synopsis

Documentation

runCacheStorage :: HasCacheStorage env => ReaderT SqlBackend (RIO env) a -> RIO env a #

runDataStorage :: HasDataStorage env => ReaderT SqlBackend (RIO env) a -> RIO env a #

withStorageConfig #

Arguments

:: HasLogFunc env 
=> StorageNodeType 
-> FilePath

Data storage directory

-> FilePath

Cache storage directory

-> (StorageConfig -> RIO env a) 
-> RIO env a 

Create a new StorageConfig with the given settings.