napkin-0.5.14
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Types.Postgres

Description

 
Synopsis

Documentation

data Postgres #

Constructors

Postgres 

Instances

Instances details
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 #

Show Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Eq Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Ord Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Backend Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

data BackendConn Postgres #

RunBackendEffect Postgres # 
Instance details

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

HasPostgresConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

ReifiesBackend Postgres # 
Instance details

Defined in Napkin.Types.Postgres

RunBackendConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

ToDbBackend Postgres # 
Instance details

Defined in Napkin.Backends.Types

TardisCompat Postgres # 
Instance details

Defined in Napkin.Experimental.Tardis

RenderSql AnnotateTableOrView Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql ArrayStructExp Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql DeleteFrom 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 InsertIntoQuery Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql RenameTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql Actor Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Actor -> Doc #

RenderSql Grant Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Grant -> 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 ExternFun Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> ExternFun -> Doc #

RenderSql From Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> From -> Doc #

RenderSql Name Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Name -> Doc #

RenderSql Query Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Query -> 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 CreateIndex Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql SetTableSchema Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql String Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> String -> Doc #

HasBackendSchemaField Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

data BackendSchemaField Postgres #

CSVImport Postgres # 
Instance details

Defined in Napkin.Run.Postgres

HasBackendQueryStats Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

data BackendQueryStats Postgres #

SqlConcat Postgres # 
Instance details

Defined in Napkin.Untyped.Ops.Portable.Postgres

Methods

concat :: [SExp] -> SExp #

Command AEDA TableDiagnostics Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command AnnotateCommand () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CheckTableExists Bool Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CopyTable () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DeleteFrom () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropTable () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropView () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetTableKind TableKind Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command InsertIntoQuery () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command ReadAnnotationCommand TableAnnotations Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command RenameTable () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command Grant () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command UpdateQuery () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetRelationSchema [BackendSchemaField Postgres] Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command ListTables (Set ListedTable) Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command NormalizeTableNames (Map (Ref Table) NormalizedTable) Postgres # 
Instance details

Defined in Napkin.Run.Postgres

FromJSON (YamlBackendMaterializedViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

FromJSON (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

FromJSON (YamlBackendViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

FromJSON (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Generic (BackendConn Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

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

Generic (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

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

Show (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Default (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Eq (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

MaybeDefault (YamlBackendMaterializedViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

MaybeDefault (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

MaybeDefault (YamlBackendViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta

RenderSql (CreateMaterializedView MaterializedViewMeta) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql (CreateTable TableMeta) Postgres #

Commands

Instance details

Defined in Napkin.Render.Postgres

RenderSql (CreateView ()) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

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

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

Defined in Napkin.Render.Postgres

Methods

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

Command (CreateMaterializedView MaterializedViewMeta) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateTable TableMeta) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateView ()) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

FromJSON (BackendQueryStats Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

ToJSON (BackendQueryStats Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Monoid (BackendQueryStats Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Semigroup (BackendQueryStats Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Generic (BackendQueryStats Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

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

Show (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Show (BackendQueryStats Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Eq (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Eq (BackendQueryStats 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 BackendConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

data BackendSpecificEffect Postgres m a # 
Instance details

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

newtype DbBackendOptions Postgres # 
Instance details

Defined in Napkin.Run.Postgres

type BackendMaterializedViewMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

type BackendTableMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

type BackendViewMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

data BackendSchemaField Postgres # 
Instance details

Defined in Napkin.Run.Postgres

data BackendQueryStats Postgres # 
Instance details

Defined in Napkin.Run.Postgres

type Rep (BackendConn Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

type Rep (BackendConn Postgres) = D1 ('MetaData "BackendConn" "Napkin.Run.Postgres" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'False) (C1 ('MetaCons "PostgresConn" 'PrefixI 'True) (S1 ('MetaSel ('Just "getConnectionString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConnectionString) :*: S1 ('MetaSel ('Just "getPostgresConn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Pool Connection))))
type Rep (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

type Rep (DbBackendOptions Postgres) = D1 ('MetaData "DbBackendOptions" "Napkin.Run.Postgres" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'True) (C1 ('MetaCons "PostgresOptions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))
type Rep (BackendQueryStats Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

type Rep (BackendQueryStats Postgres) = D1 ('MetaData "BackendQueryStats" "Napkin.Run.Postgres" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'False) (C1 ('MetaCons "BackendQueryStats" 'PrefixI 'False) (U1 :: Type -> Type))

newtype TableMeta #

Constructors

TableMeta 

Instances

Instances details
FromJSON TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Generic TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Associated Types

type Rep TableMeta :: Type -> Type #

Show TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Default TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Methods

def :: TableMeta #

Eq TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

RenderSql (CreateTable TableMeta) Postgres #

Commands

Instance details

Defined in Napkin.Render.Postgres

Command (CreateTable TableMeta) () 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.14-JrXUGmKUOt9J0meJSj0Kh4" 'True) (C1 ('MetaCons "TableMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tableMeta_indexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Indexes))))

data MaterializedViewMeta #

Instances

Instances details
FromJSON MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

Generic MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

Associated Types

type Rep MaterializedViewMeta :: Type -> Type #

Show MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

Default MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

Eq MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

RenderSql (CreateMaterializedView MaterializedViewMeta) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Command (CreateMaterializedView MaterializedViewMeta) () 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.14-JrXUGmKUOt9J0meJSj0Kh4" '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
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

Eq SetTableSchema # 
Instance details

Defined in Napkin.Types.Postgres

RenderSql SetTableSchema Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql SetTableSchema Redshift # 
Instance details

Defined in Napkin.Render.Redshift

data CreateIndex #

Constructors

CreateIndex 

Fields

Instances

Instances details
Show CreateIndex # 
Instance details

Defined in Napkin.Types.Postgres

Eq CreateIndex # 
Instance details

Defined in Napkin.Types.Postgres

RenderSql CreateIndex Postgres # 
Instance details

Defined in Napkin.Render.Postgres