Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data StorageConfig = StorageConfig {}
- class HasStorageConfig env where
- newtype CacheStorage = CacheStorage {
- cacheStoragePool :: Pool SqlBackend
- class HasCacheStorage env where
- data DataStorage = DataStorage {
- dataStoragePool :: !(Pool SqlBackend)
- dataStorageNodeType :: !StorageNodeType
- class HasDataStorage env where
- data StorageNodeType
- data StorageException
- = StorageExceptionOpenFailure !FilePath !SqliteException
- | StorageExceptionMigrationFailure !FilePath !SqliteException
- data Amount
Documentation
data StorageConfig #
Configuration value used by the entire gini-storage package.
Instances
HasDataStorage StorageConfig # | |
Defined in Gini.Storage.Types.Internal | |
HasCacheStorage StorageConfig # | |
class HasStorageConfig env where #
An environment which contains a StorageConfig
.
:: Lens' env StorageConfig | Lens to get or set the |
newtype CacheStorage #
CacheStorage | |
|
Instances
HasCacheStorage CacheStorage # | |
class HasCacheStorage env where #
cacheStorageG :: SimpleGetter env CacheStorage #
Instances
HasCacheStorage CacheStorage # | |
HasCacheStorage StorageConfig # | |
data DataStorage #
DataStorage | |
|
Instances
HasDataStorage DataStorage # | |
Defined in Gini.Storage.Types.Internal |
class HasDataStorage env where #
dataStorageG :: SimpleGetter env DataStorage #
Instances
HasDataStorage DataStorage # | |
Defined in Gini.Storage.Types.Internal | |
HasDataStorage StorageConfig # | |
Defined in Gini.Storage.Types.Internal |
data StorageNodeType #
Instances
Eq StorageNodeType # | |
Defined in Gini.Storage.Types.Internal (==) :: StorageNodeType -> StorageNodeType -> Bool # (/=) :: StorageNodeType -> StorageNodeType -> Bool # | |
Show StorageNodeType # | |
Defined in Gini.Storage.Types.Internal showsPrec :: Int -> StorageNodeType -> ShowS # show :: StorageNodeType -> String # showList :: [StorageNodeType] -> ShowS # |
data StorageException #
Things that can go wrong in gini-storage.
Note: Many other exception types may be thrown from underlying libraries. Does not attempt to wrap these underlying exceptions.
StorageExceptionOpenFailure !FilePath !SqliteException | |
StorageExceptionMigrationFailure !FilePath !SqliteException |
Instances
Show StorageException # | |
Defined in Gini.Storage.Types showsPrec :: Int -> StorageException -> ShowS # show :: StorageException -> String # showList :: [StorageException] -> ShowS # | |
Exception StorageException # | |
Defined in Gini.Storage.Types | |
Display StorageException # | |
Defined in Gini.Storage.Types display :: StorageException -> Utf8Builder textDisplay :: StorageException -> Text |