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. createPostgresqlPoolModifiedWithVersion :: (MonadUnliftIO m, MonadLoggerIO m) => (Connection -> IO (Maybe Double)) -> (Connection -> IO ()) -> ConnectionString -> Int -> m (Pool SqlBackend)

    persistent-postgresql Database.Persist.Postgresql

    Same as other similarly-named functions in this module, but takes callbacks for obtaining the server version (to work around an Amazon Redshift bug) and connection-specific tweaking (to change the schema).

  2. createPostgresqlPoolTailored :: (MonadUnliftIO m, MonadLoggerIO m) => ((Connection -> IO ()) -> (Connection -> IO (NonEmpty Word)) -> ((Connection -> SqlBackend) -> Connection -> SqlBackend) -> ConnectionString -> LogFunc -> IO SqlBackend) -> (Connection -> IO (Maybe Double)) -> (Connection -> IO ()) -> ConnectionString -> Int -> m (Pool SqlBackend)

    persistent-postgresql Database.Persist.Postgresql

    Same as createPostgresqlPoolModifiedWithVersion, but takes a custom connection-creation function. The only time you should reach for this function is if you need to write custom logic for creating a connection to the database.

  3. createPostgresqlPoolWithConf :: (MonadUnliftIO m, MonadLoggerIO m) => PostgresConf -> PostgresConfHooks -> m (Pool SqlBackend)

    persistent-postgresql Database.Persist.Postgresql

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

  4. createRawPostgresqlPool :: (MonadUnliftIO m, MonadLoggerIO m) => ConnectionString -> Int -> m (Pool (RawPostgresql SqlBackend))

    persistent-postgresql Database.Persist.Postgresql

    Create a PostgreSQL connection pool which also exposes the raw connection. The raw counterpart to createPostgresqlPool.

  5. createRawPostgresqlPoolModified :: (MonadUnliftIO m, MonadLoggerIO m) => (Connection -> IO ()) -> ConnectionString -> Int -> m (Pool (RawPostgresql SqlBackend))

    persistent-postgresql Database.Persist.Postgresql

    The raw counterpart to createPostgresqlPoolModified.

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

    persistent-postgresql Database.Persist.Postgresql

    The raw counterpart to createPostgresqlPoolModifiedWithVersion.

  7. createRawPostgresqlPoolWithConf :: (MonadUnliftIO m, MonadLoggerIO m) => PostgresConf -> PostgresConfHooks -> m (Pool (RawPostgresql SqlBackend))

    persistent-postgresql Database.Persist.Postgresql

    The raw counterpart to createPostgresqlPoolWithConf.

  8. defaultPostgresConfHooks :: PostgresConfHooks

    persistent-postgresql Database.Persist.Postgresql

    Default settings for PostgresConfHooks. See the individual fields of PostgresConfHooks for the default values.

  9. rawPostgresqlConnection :: RawPostgresql backend -> Connection

    persistent-postgresql Database.Persist.Postgresql

    The underlying Connection

  10. withPostgresqlConn :: (MonadUnliftIO m, MonadLoggerIO m) => ConnectionString -> (SqlBackend -> m a) -> m a

    persistent-postgresql Database.Persist.Postgresql

    Same as withPostgresqlPool, but instead of opening a pool of connections, only one connection is opened. The provided action should use runSqlConn and *not* runReaderT because the former brackets the database action with transaction begin/commit.

Page 10 of many | Previous | Next