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

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 Postgres) 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 Postgres) r, Member (Embed IO) r) => Sem (BackendSpecificEffect Postgres ': r) a -> Sem r a #

RunBackendConn Postgres # 
Instance details

Defined in Napkin.Run.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 RenameTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql CreateIndex 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 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

FromJSON (YamlBackendMaterializedViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

FromJSON (YamlBackendViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

FromJSON (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

Default (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

MaybeDefault (YamlBackendMaterializedViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

MaybeDefault (YamlBackendViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

MaybeDefault (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

ToDbBackend Postgres # 
Instance details

Defined in Napkin.Backends.Types

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

Defined in Napkin.Render.Postgres

Methods

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

RenderSql (CreateMaterializedViewAs MaterializedViewMeta) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql (CreateViewAs ()) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

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

RenderSql (CreateTableAs TableMeta) Postgres #

Commands

Instance details

Defined in Napkin.Render.Postgres

Command (CreateMaterializedViewAs MaterializedViewMeta) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateViewAs ()) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateTableAs TableMeta) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

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
type BackendMaterializedViewMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

type BackendViewMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

type BackendTableMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

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.12-IOJ7B058YIK5gpjD82pDT5" 'True) (C1 ('MetaCons "PostgresOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "_postgresOptions_connectionPool") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))

newtype TableMeta #

Constructors

TableMeta 

Instances

Instances details
Eq TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Show TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Generic TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Associated Types

type Rep TableMeta :: Type -> Type #

FromJSON TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Default TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Methods

def :: TableMeta #

RenderSql (CreateTableAs TableMeta) Postgres #

Commands

Instance details

Defined in Napkin.Render.Postgres

Command (CreateTableAs TableMeta) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

type Rep TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

type Rep TableMeta = D1 ('MetaData "TableMeta" "Napkin.Types.Postgres" "napkin-0.5.12-IOJ7B058YIK5gpjD82pDT5" 'True) (C1 ('MetaCons "TableMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tableMeta_indexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Indexes))))

data MaterializedViewMeta #

Instances

Instances details
Eq MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

Show MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

Generic MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

Associated Types

type Rep MaterializedViewMeta :: Type -> Type #

FromJSON MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

Default MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

RenderSql (CreateMaterializedViewAs MaterializedViewMeta) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Command (CreateMaterializedViewAs MaterializedViewMeta) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

type Rep MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

type Rep MaterializedViewMeta = D1 ('MetaData "MaterializedViewMeta" "Napkin.Types.Postgres" "napkin-0.5.12-IOJ7B058YIK5gpjD82pDT5" 'False) (C1 ('MetaCons "MaterializedViewMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "_materializedViewMeta_timescale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TimescaleViewMeta)) :*: S1 ('MetaSel ('Just "_materializedViewMeta_indexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Indexes))))

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

data CreateIndex #

Constructors

CreateIndex 

Fields

Instances

Instances details
Eq CreateIndex # 
Instance details

Defined in Napkin.Types.Postgres

Show CreateIndex # 
Instance details

Defined in Napkin.Types.Postgres

RenderSql CreateIndex Postgres # 
Instance details

Defined in Napkin.Render.Postgres