Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type SqlWriteIO m bk a = (MonadQueryStats m, Monad m, Katip m, Command (CreateTableAs (BackendTableMeta bk)) () bk, Command InsertIntoQuery () bk, Command (CreateViewAs (BackendViewMeta bk)) () bk, Command (CreateMaterializedViewAs (BackendMaterializedViewMeta bk)) () bk, Command RenameTable () bk, Command CopyTable () bk, Command DropTable () bk, Command DropView () bk, Command DeleteFrom () bk, Command UpdateQuery () bk, Backend bk, RenderSql Query bk) #
runSqlWriteIO :: forall m bk r a. (SqlWriteIO m bk a, MonadCatch m, Members '[Embed m, FatalError] r) => BackendConn bk -> Sem (SqlWrite bk ': r) a -> Sem r a #