napkin-0.5.12
Safe HaskellNone
LanguageHaskell2010

Napkin.Run.Effects.Languages.SqlWrite

Documentation

data Cascade #

Constructors

Cascade 
Restrict 

Instances

Instances details
Eq Cascade # 
Instance details

Defined in Napkin.Run.Effects.Languages.SqlWrite

Methods

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

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

Show Cascade # 
Instance details

Defined in Napkin.Run.Effects.Languages.SqlWrite

data SqlWrite b m a where #

Instances

Instances details
(Show (BackendTableMeta b), Show (BackendViewMeta b), Show (BackendMaterializedViewMeta b)) => ToDumpItem (SqlWrite b :: (Type -> Type) -> Type -> Type) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram

Methods

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

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

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

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

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

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

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

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

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

insertIntoQuery :: forall b r. MemberWithError (SqlWrite b) r => 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 () #