napkin-0.5.13
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 #

data family BackendSchemaField bk #

Instances

Instances details
Command GetRelationSchema [BackendSchemaField Sqlite] Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command GetRelationSchema [BackendSchemaField Redshift] Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command GetRelationSchema [BackendSchemaField Postgres] Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetRelationSchema [BackendSchemaField BigQuery] BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Eq (BackendSchemaField Sqlite) # 
Instance details

Defined in Napkin.Run.Sqlite

Eq (BackendSchemaField Redshift) # 
Instance details

Defined in Napkin.Run.Redshift

Eq (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Eq (BackendSchemaField BigQuery) # 
Instance details

Defined in Napkin.Run.BigQuery

Show (BackendSchemaField Sqlite) # 
Instance details

Defined in Napkin.Run.Sqlite

Show (BackendSchemaField Redshift) # 
Instance details

Defined in Napkin.Run.Redshift

Show (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Show (BackendSchemaField BigQuery) # 
Instance details

Defined in Napkin.Run.BigQuery

FromRow (BackendSchemaField Sqlite) # 
Instance details

Defined in Napkin.Run.Sqlite

data BackendSchemaField Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

data BackendSchemaField Redshift # 
Instance details

Defined in Napkin.Run.Redshift

data BackendSchemaField Postgres # 
Instance details

Defined in Napkin.Run.Postgres

data BackendSchemaField BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

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 #

RunBackendConn Redshift # 
Instance details

HasPostgresConn Redshift # 
Instance details

Command UpdateQuery () Redshift # 
Instance details

Command Grant () Redshift # 
Instance details

Command CheckTableExists Bool Redshift # 
Instance details

Command DeleteFrom () Redshift # 
Instance details

Command InsertIntoQuery () Redshift # 
Instance details

Command DropTable () Redshift # 
Instance details

Command DropView () Redshift # 
Instance details

Command CopyTable () Redshift # 
Instance details

Command RenameTable () Redshift # 
Instance details

Command GetRelationSchema [BackendSchemaField Redshift] 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

HasBackendSchemaField Redshift # 
Instance details

Associated Types

data BackendSchemaField Redshift #

Command (CreateMaterializedViewAs ()) () Redshift # 
Instance details

Command (CreateViewAs ()) () Redshift # 
Instance details

Command (CreateTableAs ()) () Redshift # 
Instance details

Command (CreateTableAs TableMeta) () Redshift # 
Instance details

Eq (BackendSchemaField Redshift) # 
Instance details

Show (BackendSchemaField Redshift) # 
Instance details