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

Napkin.Run.Postgres

Synopsis

Postgres Re-exports

data family BackendSchemaField (bk :: k) #

Instances

Instances details
Show (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Show (BackendSchemaField Redshift) # 
Instance details

Defined in Napkin.Run.Redshift

Eq (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Eq (BackendSchemaField Redshift) # 
Instance details

Defined in Napkin.Run.Redshift

FromRow (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

FromRow (BackendSchemaField Redshift) # 
Instance details

Defined in Napkin.Run.Redshift

data BackendSchemaField Postgres # 
Instance details

Defined in Napkin.Run.Postgres

data BackendSchemaField Redshift # 
Instance details

Defined in Napkin.Run.Redshift

data family BackendConn b #

Instances

Instances details
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))))
data BackendConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

data BackendConn Redshift # 
Instance details

Defined in Napkin.Run.Redshift

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))))

Orphan instances

HasPostgresConn Postgres # 
Instance details

Backend Postgres # 
Instance details

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

RunBackendConn Postgres # 
Instance details

CSVImport Postgres # 
Instance details

HasBackendSchemaField Postgres # 
Instance details

HasBackendQueryStats Postgres # 
Instance details

Associated Types

data BackendQueryStats Postgres 
Instance details

Defined in Napkin.Run.Postgres

FromJSON (DbBackendOptions Postgres) # 
Instance details

Default (DbBackendOptions Postgres) # 
Instance details

Generic (BackendConn Postgres) # 
Instance details

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

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

Eq (DbBackendOptions Postgres) # 
Instance details

FromJSON (BackendQueryStats Postgres) # 
Instance details

ToJSON (BackendQueryStats Postgres) # 
Instance details

Monoid (BackendQueryStats Postgres) # 
Instance details

Semigroup (BackendQueryStats Postgres) # 
Instance details

Generic (BackendQueryStats Postgres) # 
Instance details

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

Show (BackendQueryStats Postgres) # 
Instance details

Eq (BackendSchemaField Postgres) # 
Instance details

Eq (BackendQueryStats Postgres) # 
Instance details

FromRow (BackendSchemaField Postgres) # 
Instance details