Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type Transaction m = SqlPersistT (ReaderT DataSource m) Source #
data DataSourceConfig Source #
data DataSourceProvider Source #
dataSource :: LoggerConfig -> DataSourceConfig -> [DataSourceProvider] -> IO DataSource Source #
type DataSource = (DataSourceProvider, ConnectionPool) Source #
runTrans :: MonadUnliftIO m => DataSource -> Transaction m a -> m a Source #
query :: FromPersistValue a => Text -> [PersistValue] -> Transaction IO [a] Source #
selectValue :: PersistField a => Text -> Transaction IO [a] Source #