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

Napkin.Types.Postgres

Description

 
Synopsis

Documentation

data Postgres #

Constructors

Postgres 

Instances

Instances details
Eq Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Data Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Postgres -> c Postgres #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Postgres #

toConstr :: Postgres -> Constr #

dataTypeOf :: Postgres -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Postgres) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Postgres) #

gmapT :: (forall b. Data b => b -> b) -> Postgres -> Postgres #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Postgres -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Postgres -> r #

gmapQ :: (forall d. Data d => d -> u) -> Postgres -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Postgres -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Postgres -> m Postgres #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Postgres -> m Postgres #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Postgres -> m Postgres #

Ord Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Show Postgres # 
Instance details

Defined in Napkin.Types.Postgres

ReifiesBackend Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Backend Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

data BackendConn Postgres #

ParseSQL Postgres # 
Instance details

Defined in Napkin.Parse.Postgres

HasPostgresConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

RunBackendEffect Postgres # 
Instance details

Defined in Napkin.Run.Effects.Interpreters.Backend.Postgres

Methods

runBackendEffectReal :: forall (r :: [(Type -> Type) -> Type -> Type]) a. (Members Core r, Member (Embed IO) r) => BackendConn Postgres -> Sem (BackendSpecificEffect Postgres ': r) a -> Sem r a #

runBackendEffectFake :: forall (r :: [(Type -> Type) -> Type -> Type]) a. (Members Core r, Member (Embed IO) r) => Sem (BackendSpecificEffect Postgres ': r) a -> Sem r a #

RunBackendConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

CommandDescr Grant Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr DeleteFrom Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr InsertIntoQuery Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr DropTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr DropView Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr CreateViewAs Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr RenameTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql String Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> String -> Doc #

RenderSql Query Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Query -> Doc #

RenderSql From Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> From -> Doc #

RenderSql Relation Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Relation -> Doc #

RenderSql SExp Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> SExp -> Doc #

RenderSql Grant Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Grant -> Doc #

RenderSql Actor Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Actor -> Doc #

RenderSql Object Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Object -> Doc #

RenderSql Privilege Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Privilege -> Doc #

RenderSql DeleteFrom Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql InsertIntoQuery Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql DropTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> DropTable -> Doc #

RenderSql DropView Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> DropView -> Doc #

RenderSql CreateViewAs Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql RenameTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql SetTableSchema Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Command Grant Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CheckTableExists Bool Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DeleteFrom Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command InsertIntoQuery Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropView Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CreateViewAs Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CopyTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command RenameTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetRelationSchema (Fields Field) Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Eq (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Show (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Generic (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

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

ToJSON (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

FromJSON (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Default (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

HasCreateTableAs Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Associated Types

type BackendTableMeta Postgres #

ReplaceReference Postgres #

Reference replacement

Instance details

Defined in Napkin.Render.Postgres

CommandDescr (CreateTableAs ()) Postgres #

Command descriptions

Instance details

Defined in Napkin.Render.Postgres

RenderSql a Postgres => RenderSql (Alias a) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Alias a -> Doc #

RenderSql (CreateTableAs ()) Postgres #

Commands

Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> CreateTableAs () -> Doc #

ToDbBackend Postgres # 
Instance details

Defined in Napkin.Backends.Types

Command (CreateTableAs ()) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

ToJSON (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

FromJSON (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

RenderSql (Ref t) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Ref t -> Doc #

data BackendSpecificEffect Postgres m a # 
Instance details

Defined in Napkin.Run.Effects.Languages.Backend.Postgres

data BackendSpecificEffect Postgres m a where
data BackendConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

newtype DbBackendOptions Postgres # 
Instance details

Defined in Napkin.Run.Postgres

type Rep (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

type Rep (DbBackendOptions Postgres) = D1 ('MetaData "DbBackendOptions" "Napkin.Run.Postgres" "napkin-0.5.10-C0Hygrce3goLKcQ6g1wIUX" 'True) (C1 ('MetaCons "PostgresOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "_postgresOptions_connectionPool") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))
type BackendTableMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

data SetTableSchema #

In Postgres it's not possible to RENAME and SET SCHEMA in a single query

Constructors

SetTableSchema 

Instances

Instances details
Eq SetTableSchema # 
Instance details

Defined in Napkin.Types.Postgres

Data SetTableSchema # 
Instance details

Defined in Napkin.Types.Postgres

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetTableSchema -> c SetTableSchema #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetTableSchema #

toConstr :: SetTableSchema -> Constr #

dataTypeOf :: SetTableSchema -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SetTableSchema) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetTableSchema) #

gmapT :: (forall b. Data b => b -> b) -> SetTableSchema -> SetTableSchema #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetTableSchema -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetTableSchema -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetTableSchema -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetTableSchema -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetTableSchema -> m SetTableSchema #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetTableSchema -> m SetTableSchema #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetTableSchema -> m SetTableSchema #

Show SetTableSchema # 
Instance details

Defined in Napkin.Types.Postgres

RenderSql SetTableSchema Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql SetTableSchema Postgres # 
Instance details

Defined in Napkin.Render.Postgres