napkin-0.5.11
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Napkin.Run.Redshift

Description

 
Synopsis

Redshift Re-exports

data RedshiftT (m :: Type -> Type) a #

The Redshift monad transformer that all the redshift API operations run in. This monad ensures that all tunnels get a unique port on localhost.

Instances

Instances details
MonadTrans RedshiftT 
Instance details

Defined in Aws.Redshift.Monad

Methods

lift :: Monad m => m a -> RedshiftT m a #

Monad m => Monad (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

(>>=) :: RedshiftT m a -> (a -> RedshiftT m b) -> RedshiftT m b #

(>>) :: RedshiftT m a -> RedshiftT m b -> RedshiftT m b #

return :: a -> RedshiftT m a #

Functor m => Functor (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

fmap :: (a -> b) -> RedshiftT m a -> RedshiftT m b #

(<$) :: a -> RedshiftT m b -> RedshiftT m a #

MonadFix m => MonadFix (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

mfix :: (a -> RedshiftT m a) -> RedshiftT m a #

MonadFail m => MonadFail (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

fail :: String -> RedshiftT m a #

Monad m => Applicative (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

pure :: a -> RedshiftT m a #

(<*>) :: RedshiftT m (a -> b) -> RedshiftT m a -> RedshiftT m b #

liftA2 :: (a -> b -> c) -> RedshiftT m a -> RedshiftT m b -> RedshiftT m c #

(*>) :: RedshiftT m a -> RedshiftT m b -> RedshiftT m b #

(<*) :: RedshiftT m a -> RedshiftT m b -> RedshiftT m a #

MonadIO m => MonadIO (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

liftIO :: IO a -> RedshiftT m a #

MonadThrow m => MonadThrow (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

throwM :: Exception e => e -> RedshiftT m a #

MonadCatch m => MonadCatch (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

catch :: Exception e => RedshiftT m a -> (e -> RedshiftT m a) -> RedshiftT m a #

MonadMask m => MonadMask (RedshiftT m) 
Instance details

Defined in Aws.Redshift.Monad

Methods

mask :: ((forall a. RedshiftT m a -> RedshiftT m a) -> RedshiftT m b) -> RedshiftT m b #

uninterruptibleMask :: ((forall a. RedshiftT m a -> RedshiftT m a) -> RedshiftT m b) -> RedshiftT m b #

generalBracket :: RedshiftT m a -> (a -> ExitCase b -> RedshiftT m c) -> (a -> RedshiftT m b) -> RedshiftT m (b, c) #

MFunctor RedshiftT 
Instance details

Defined in Aws.Redshift.Monad

Methods

hoist :: forall m n (b :: k). Monad m => (forall a. m a -> n a) -> RedshiftT m b -> RedshiftT n b #

connectRedshift :: forall (m :: Type -> Type). MonadIO m => RedshiftDB -> Int -> NominalDiffTime -> Int -> RedshiftT m (Pool Connection) #

Establish a postgresql-simple connection to a RedshiftDB.

runRedshift :: MonadIO m => RedshiftState -> RedshiftT m a -> m a #

Runs any DB action in IO.

The only way to unwrap RedshiftT, as we need to carefully manage SSH tunnels and database connections.

defRS :: Configuration -> RedshiftState #

A default RedshiftState that cleans up and is not verbose. If you store your keys in ~/.aws-keys you can use baseConfiguration for the configuration parameter

redNick :: String -> IO RedshiftDB #

Retrieves a RedshiftDB for the specified DB nickname.

Orphan instances

Backend Redshift # 
Instance details

Associated Types

data BackendConn Redshift #

HasPostgresConn Redshift # 
Instance details

RunBackendConn Redshift # 
Instance details

Command Grant Int64 Redshift # 
Instance details

Command CheckTableExists Bool Redshift # 
Instance details

Command DeleteFrom Int64 Redshift # 
Instance details

Command InsertIntoQuery Int64 Redshift # 
Instance details

Command DropTable Int64 Redshift # 
Instance details

Command DropView Int64 Redshift # 
Instance details

Command CreateViewAs Int64 Redshift # 
Instance details

Command CopyTable Int64 Redshift # 
Instance details

Command RenameTable Int64 Redshift # 
Instance details

Command GetRelationSchema (Fields Field) Redshift # 
Instance details

Eq (DbBackendOptions Redshift) # 
Instance details

Show (DbBackendOptions Redshift) # 
Instance details

Generic (DbBackendOptions Redshift) # 
Instance details

Associated Types

type Rep (DbBackendOptions Redshift) :: Type -> Type #

ToJSON (DbBackendOptions Redshift) # 
Instance details

FromJSON (DbBackendOptions Redshift) # 
Instance details

Default (DbBackendOptions Redshift) # 
Instance details

Command (CreateTableAs ()) Int64 Redshift # 
Instance details

Command (CreateTableAs TableMeta) Int64 Redshift # 
Instance details