napkin-backend-postgres-redshift-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Types.Postgres

Synopsis

Documentation

data 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 #

HasPostgresConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Backend Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Methods

backendConnectionString :: BackendConn Postgres -> ConnectionString #

backendExecute :: (MonadNapkin Postgres m, RenderSql command Postgres) => BackendConn Postgres -> command -> m () #

backendQuery :: (MonadNapkin Postgres m, RenderSql q Postgres) => BackendConn Postgres -> q -> m [Map Text Value] #

backendCheckTableExists :: MonadNapkin Postgres m => BackendConn Postgres -> Ref Table -> m Bool #

backendGetTableKind :: MonadNapkin Postgres m => BackendConn Postgres -> Ref Table -> m TableKind #

backendGetRelationSchema :: MonadNapkin Postgres m => BackendConn Postgres -> Ref Table -> Relation -> m [BackendSchemaField Postgres] #

backendGetAnnotations :: MonadNapkin Postgres m => BackendConn Postgres -> Ref Table -> m TableAnnotations #

backendAnnotate :: MonadNapkin Postgres m => BackendConn Postgres -> Ref Table -> Annotation -> m () #

backendCreateAs :: (command ~ CreateRelation Postgres, RenderSql command Postgres, MonadNapkin Postgres m) => BackendConn Postgres -> command -> m () #

backendCreate :: (command ~ CreateTableSchema Postgres, RenderSql command Postgres, MonadNapkin Postgres m) => BackendConn Postgres -> command -> m () #

backendCopyTable :: (MonadNapkin Postgres m, RenderSql DeleteRows Postgres, RenderSql InsertInto Postgres, RenderSql (CreateRelation Postgres) Postgres, Default (BackendMeta 'KindTable Postgres)) => BackendConn Postgres -> Ref Table -> Ref Table -> TableWriteStrategy -> m () #

backendDrop :: MonadNapkin Postgres m => BackendConn Postgres -> DropRelation -> m () #

backendInsertInto :: (command ~ InsertInto, RenderSql command Postgres, MonadNapkin Postgres m) => BackendConn Postgres -> command -> m () #

backendRename :: MonadNapkin Postgres m => BackendConn Postgres -> RenameRelation -> m () #

backendListTables :: MonadNapkin Postgres m => BackendConn Postgres -> ListTables -> m (Set ListedTable) #

backendNormalize :: MonadNapkin Postgres m => BackendConn Postgres -> NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) #

RunBackendEffect Postgres # 
Instance details

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

RunBackendConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

BackendName Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Methods

backendName :: Text #

NapkinParserDialect Postgres # 
Instance details

Defined in Napkin.Types.Postgres

BackendOperators Postgres # 
Instance details

Defined in Napkin.Revert.Postgres

CSVImport Postgres # 
Instance details

Defined in Napkin.Run.Postgres

HasBackendSchemaField 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 #

RenderSql CreateIndex Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql SetTableSchema Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql AnnotateTableOrView Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql DropRelation Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql RenameRelation Postgres # 
Instance details

Defined in Napkin.Render.Postgres

SimpleTypeName Postgres 'TyBigInt # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyBlob # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyBool # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyChar # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyDate # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyDatetime # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyDecimal # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyDouble # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyInteger # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyReal # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TySmallInt # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyTimestamp # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

SimpleTypeName Postgres 'TyVarChar # 
Instance details

Defined in Napkin.Revert.Postgres

Methods

simpleName :: String #

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 #

RenderSql (CreateRelation Postgres) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

FromJSON (YamlBackendMaterializedViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta.Postgres

FromJSON (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta.Postgres

FromJSON (YamlBackendViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta.Postgres

FromJSON (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Default (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-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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

Eq (DbBackendOptions Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

MaybeDefault (YamlBackendMaterializedViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta.Postgres

MaybeDefault (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta.Postgres

MaybeDefault (YamlBackendViewMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types.BackendMeta.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-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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

FromRow (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

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

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

newtype DbBackendOptions Postgres # 
Instance details

Defined in Napkin.Run.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-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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

Default TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

Methods

def :: TableMeta #

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-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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

Eq TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

type Rep TableMeta # 
Instance details

Defined in Napkin.Types.Postgres

type Rep TableMeta = D1 ('MetaData "TableMeta" "Napkin.Types.Postgres" "napkin-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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

Default 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-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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

Eq MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

type Rep MaterializedViewMeta # 
Instance details

Defined in Napkin.Types.Postgres

type Rep MaterializedViewMeta = D1 ('MetaData "MaterializedViewMeta" "Napkin.Types.Postgres" "napkin-backend-postgres-redshift-2.0.0-J3UFNsryji7KyuggPsq12S" '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