| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Gini.Storage.Types
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.
Constructors
| StorageConfig | |
Instances
| HasDataStorage StorageConfig # | |
Defined in Gini.Storage.Types.Internal Methods | |
| HasCacheStorage StorageConfig # | |
Defined in Gini.Storage.Types.Internal Methods | |
class HasStorageConfig env where #
An environment which contains a StorageConfig.
Minimal complete definition
newtype CacheStorage #
Constructors
| CacheStorage | |
Fields
| |
Instances
| HasCacheStorage CacheStorage # | |
Defined in Gini.Storage.Types.Internal Methods | |
class HasCacheStorage env where #
Minimal complete definition
Methods
cacheStorageG :: SimpleGetter env CacheStorage #
Instances
| HasCacheStorage CacheStorage # | |
Defined in Gini.Storage.Types.Internal Methods | |
| HasCacheStorage StorageConfig # | |
Defined in Gini.Storage.Types.Internal Methods | |
data DataStorage #
Constructors
| DataStorage | |
Fields
| |
Instances
| HasDataStorage DataStorage # | |
Defined in Gini.Storage.Types.Internal Methods | |
class HasDataStorage env where #
Minimal complete definition
Methods
dataStorageG :: SimpleGetter env DataStorage #
Instances
| HasDataStorage DataStorage # | |
Defined in Gini.Storage.Types.Internal Methods | |
| HasDataStorage StorageConfig # | |
Defined in Gini.Storage.Types.Internal Methods | |
data StorageNodeType #
Instances
| Eq StorageNodeType # | |
Defined in Gini.Storage.Types.Internal Methods (==) :: StorageNodeType -> StorageNodeType -> Bool # (/=) :: StorageNodeType -> StorageNodeType -> Bool # | |
| Show StorageNodeType # | |
Defined in Gini.Storage.Types.Internal Methods 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.
Constructors
| StorageExceptionOpenFailure !FilePath !SqliteException | |
| StorageExceptionMigrationFailure !FilePath !SqliteException |
Instances
| Show StorageException # | |
Defined in Gini.Storage.Types Methods showsPrec :: Int -> StorageException -> ShowS # show :: StorageException -> String # showList :: [StorageException] -> ShowS # | |
| Exception StorageException # | |
Defined in Gini.Storage.Types Methods toException :: StorageException -> SomeException # | |
| Display StorageException # | |
Defined in Gini.Storage.Types | |
