Hoogle Search

Within LTS Haskell 24.26 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. withPostgresqlConnWithVersion :: (MonadUnliftIO m, MonadLoggerIO m) => (Connection -> IO (Maybe Double)) -> ConnectionString -> (SqlBackend -> m a) -> m a

    persistent-postgresql Database.Persist.Postgresql

    Same as withPostgresqlConn, but takes a callback for obtaining the server version (to work around an Amazon Redshift bug).

  2. withPostgresqlPool :: (MonadLoggerIO m, MonadUnliftIO m) => ConnectionString -> Int -> (Pool SqlBackend -> m a) -> m a

    persistent-postgresql Database.Persist.Postgresql

    Create a PostgreSQL connection pool and run the given action. The pool is properly released after the action finishes using it. Note that you should not use the given ConnectionPool outside the action since it may already have been released. The provided action should use runSqlConn and *not* runReaderT because the former brackets the database action with transaction begin/commit.

  3. withPostgresqlPoolModified :: (MonadUnliftIO m, MonadLoggerIO m) => (Connection -> IO ()) -> ConnectionString -> Int -> (Pool SqlBackend -> m t) -> m t

    persistent-postgresql Database.Persist.Postgresql

    Same as withPostgresqlPool, but with the createPostgresqlPoolModified feature.

  4. withPostgresqlPoolModifiedWithVersion :: (MonadUnliftIO m, MonadLoggerIO m) => (Connection -> IO (Maybe Double)) -> (Connection -> IO ()) -> ConnectionString -> Int -> (Pool SqlBackend -> m t) -> m t

    persistent-postgresql Database.Persist.Postgresql

    Same as withPostgresqlPool, but with the createPostgresqlPoolModifiedWithVersion feature.

  5. withPostgresqlPoolWithConf :: (MonadUnliftIO m, MonadLoggerIO m) => PostgresConf -> PostgresConfHooks -> (Pool SqlBackend -> m a) -> m a

    persistent-postgresql Database.Persist.Postgresql

    Same as withPostgresqlPool, but can be configured with PostgresConf and PostgresConfHooks.

  6. withPostgresqlPoolWithVersion :: (MonadUnliftIO m, MonadLoggerIO m) => (Connection -> IO (Maybe Double)) -> ConnectionString -> Int -> (Pool SqlBackend -> m a) -> m a

    persistent-postgresql Database.Persist.Postgresql

    Same as withPostgresPool, but takes a callback for obtaining the server version (to work around an Amazon Redshift bug).

  7. driverPostgreSQL :: IConnection conn => Driver conn

    relational-query-HDBC Database.HDBC.Schema.PostgreSQL

    Driver implementation

  8. defaultPostgresContainerOptions :: PostgresContainerOptions

    sandwich-contexts Test.Sandwich.Contexts.PostgreSQL

    No documentation available.

  9. defaultPostgresNixOptions :: PostgresNixOptions

    sandwich-contexts Test.Sandwich.Contexts.PostgreSQL

    No documentation available.

  10. introducePostgresUnixSocketViaNix :: forall context (m :: Type -> Type) . (HasBaseContext context, HasNixContext context, MonadUnliftIO m, MonadMask m) => PostgresNixOptions -> SpecFree (LabelValue "postgres" PostgresContext :> context) m () -> SpecFree context m ()

    sandwich-contexts Test.Sandwich.Contexts.PostgreSQL

    Same as introducePostgresViaNix, but the postgresAddress of the PostgresContext will be a Unix socket.

Page 11 of many | Previous | Next