napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Types.Postgres

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

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

RenderSql DropView Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> DropView -> ME 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 -> ME Doc #

RenderSql Grant Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Grant -> ME Doc #

RenderSql Object Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Object -> ME Doc #

RenderSql Privilege Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql ExternFun Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql From Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> From -> ME Doc #

RenderSql Name Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Name -> ME Doc #

RenderSql Query Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Query -> ME Doc #

RenderSql Relation Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> Relation -> ME Doc #

RenderSql SExp Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> SExp -> ME 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 -> ME Doc #

HasBackendSchemaField Postgres # 
Instance details

Defined in Napkin.Run.Postgres

CSVImport Postgres # 
Instance details

Defined in Napkin.Run.Postgres

HasBackendQueryStats Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

data BackendQueryStats Postgres 
Instance details

Defined in Napkin.Run.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 InsertIntoTable () 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

ToDumpItem Postgres PostgresExtra # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. PostgresExtra (Sem r) x -> DumpItem 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) 
Instance details

Defined in Napkin.Run.Postgres

type Rep (BackendConn Postgres) = D1 ('MetaData "BackendConn" "Napkin.Run.Postgres" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" '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))))
Generic (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

type Rep (DbBackendOptions Postgres) 
Instance details

Defined in Napkin.Run.Postgres

type Rep (DbBackendOptions Postgres) = D1 ('MetaData "DbBackendOptions" "Napkin.Run.Postgres" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "PostgresOptions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))
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 () -> ME Doc #

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

Defined in Napkin.Render.Postgres

Methods

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

Command (CreateMaterializedView MaterializedViewMeta) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateTable TableMeta) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateTableDDL 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) 
Instance details

Defined in Napkin.Run.Postgres

type Rep (BackendQueryStats Postgres) = D1 ('MetaData "BackendQueryStats" "Napkin.Run.Postgres" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "BackendQueryStats" 'PrefixI 'False) (U1 :: 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 -> ME 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-1.0.0-5YkWAC9Wc776PT0LDghaFb" '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-1.0.0-5YkWAC9Wc776PT0LDghaFb" '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-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "BackendQueryStats" 'PrefixI 'False) (U1 :: Type -> Type))

newtype TableMeta #

Constructors

TableMeta 

Fields

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 
Instance details

Defined in Napkin.Types.Postgres

type Rep TableMeta = D1 ('MetaData "TableMeta" "Napkin.Types.Postgres" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "TableMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "indexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Indexes))))
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

Command (CreateTableDDL 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-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "TableMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "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 
Instance details

Defined in Napkin.Types.Postgres

type Rep MaterializedViewMeta = D1 ('MetaData "MaterializedViewMeta" "Napkin.Types.Postgres" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "MaterializedViewMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "timescale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TimescaleViewMeta)) :*: S1 ('MetaSel ('Just "indexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Indexes))))
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-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "MaterializedViewMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "timescale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TimescaleViewMeta)) :*: S1 ('MetaSel ('Just "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 

Fields

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