napkin-0.5.14
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Run.Effects.Languages.SqlWrite

Documentation

data Cascade #

Constructors

Cascade 
Restrict 

Instances

Instances details
Show Cascade # 
Instance details

Defined in Napkin.Run.Effects.Languages.SqlWrite

Eq Cascade # 
Instance details

Defined in Napkin.Run.Effects.Languages.SqlWrite

Methods

(==) :: Cascade -> Cascade -> Bool #

(/=) :: Cascade -> Cascade -> Bool #

data SqlWrite b m a where #

Instances

Instances details
(Show (BackendTableMeta b), Show (BackendViewMeta b), Show (BackendMaterializedViewMeta b), IsRenderable Query b, IsRenderable SExp b, IsRenderable UpdateQuery b, Default (BackendTableMeta b), Default (BackendViewMeta b), MaybeDefault (YamlBackendMaterializedViewMeta b), Eq (BackendTableMeta b), Eq (BackendViewMeta b), Eq (YamlBackendMaterializedViewMeta b)) => ToDumpItem (b :: Type) (SqlWrite b :: (Type -> Type) -> Type -> Type) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram

Methods

toDumpItem :: forall (r :: EffectRow) (x :: k1). SqlWrite b (Sem r) x -> DumpItem b #

(Show (BackendTableMeta bk), Show (BackendViewMeta bk), Show (BackendMaterializedViewMeta bk)) => GShow (SqlWrite bk a :: Type -> Type) # 
Instance details

Defined in Napkin.Run.Effects.Languages.SqlWrite

Methods

gshowsPrec :: forall (a0 :: k). Int -> SqlWrite bk a a0 -> ShowS #

(Show (BackendTableMeta bk), Show (BackendViewMeta bk), Show (BackendMaterializedViewMeta bk)) => Show (SqlWrite bk a b) # 
Instance details

Defined in Napkin.Run.Effects.Languages.SqlWrite

Methods

showsPrec :: Int -> SqlWrite bk a b -> ShowS #

show :: SqlWrite bk a b -> String #

showList :: [SqlWrite bk a b] -> ShowS #

(Eq (BackendTableMeta bk), Eq (BackendViewMeta bk), Eq (BackendMaterializedViewMeta bk)) => Eq (SqlWrite bk a b) # 
Instance details

Defined in Napkin.Run.Effects.Languages.SqlWrite

Methods

(==) :: SqlWrite bk a b -> SqlWrite bk a b -> Bool #

(/=) :: SqlWrite bk a b -> SqlWrite bk a b -> Bool #

deleteFrom :: forall b r. Member (SqlWrite b) r => Ref Table -> SExp -> Sem r () #

dropMaterializedView :: forall b r. Member (SqlWrite b) r => Ref Table -> MissingBehavior -> Cascade -> Sem r () #

dropView :: forall b r. Member (SqlWrite b) r => Ref Table -> MissingBehavior -> Cascade -> Sem r () #

dropTable :: forall b r. Member (SqlWrite b) r => Ref Table -> MissingBehavior -> Cascade -> Sem r () #

copyTable :: forall b r. Member (SqlWrite b) r => Ref Table -> Ref Table -> TableWriteStrategy -> Sem r () #

renameTable :: forall b r. Member (SqlWrite b) r => Ref Table -> Ref Table -> Sem r () #

updateTable :: forall b r. Member (SqlWrite b) r => UpdateQuery -> Sem r () #

csvStreamInto :: forall b r. Member (SqlWrite b) r => CSVSettings -> Ref Table -> FilePath -> CSVHeader -> Chunks -> CsvSchema -> Sem r () #

insertIntoQuery :: forall b r. Member (SqlWrite b) r => Ref Table -> Query -> Sem r () #

createViewAsWithMeta :: forall b r. Member (SqlWrite b) r => BackendViewMeta b -> Ref Table -> Query -> Sem r () #

createTableAsWithMeta :: forall b r. Member (SqlWrite b) r => BackendTableMeta b -> Ref Table -> Query -> Sem r () #

createTableAs :: forall b r. (Member (SqlWrite b) r, Default (BackendTableMeta b)) => Ref Table -> Query -> Sem r () #

createViewAs :: forall b r. (Member (SqlWrite b) r, Default (BackendViewMeta b)) => Ref Table -> Query -> Sem r () #

createEmptyTable :: forall b r. (Member (SqlWrite b) r, Default (BackendTableMeta b)) => Ref Table -> CsvSchema -> Sem r () #