Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- type QueryTransformer = [QueryTransformerUnit]
- data QueryTransformerUnit
- = TableRenamer (Ref Table -> Ref Table)
- | FunctionRenamer (Ref Function -> Ref Function)
- | QueryRewriter (Query -> Query)
- qt_refs :: Getter QueryTransformer (Ref Table -> Ref Table)
- isTableRenamer :: QueryTransformerUnit -> Maybe (Ref Table -> Ref Table)
- qt_spec :: Getter QueryTransformer (SpecTableName -> Ref Table)
- qt_func :: Getter QueryTransformer (Ref Function -> Ref Function)
- qt_query :: Getter QueryTransformer (Query -> Query)
- qt_update_query :: Getter QueryTransformer (UpdateQuery -> UpdateQuery)
- qt_data :: Data a => Getter QueryTransformer (a -> a)
- modifyFunctions :: Data b => (Ref Function -> Ref Function) -> b -> b
- class FunctionTransformer a where
- class TableRenamer a where
- renameTableRef :: (Ref Table -> Ref Table) -> a -> a
- class FunRenamer a where
Documentation
type QueryTransformer = [QueryTransformerUnit] #
data QueryTransformerUnit #
TableRenamer (Ref Table -> Ref Table) | |
FunctionRenamer (Ref Function -> Ref Function) | |
QueryRewriter (Query -> Query) |
isTableRenamer :: QueryTransformerUnit -> Maybe (Ref Table -> Ref Table) #
qt_spec :: Getter QueryTransformer (SpecTableName -> Ref Table) #
In general this should be used for renaming SpecTableName.
qt_data :: Data a => Getter QueryTransformer (a -> a) #
class FunctionTransformer a where #
Instances
class TableRenamer a where #
Instances
TableRenamer CteBody # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer ExternFun # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer From # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer OrderPart # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer Query # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer Relation # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer SExp # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer WindowFun # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer WithClauses # | |
Defined in Napkin.Types.QueryTransformer renameTableRef :: (Ref Table -> Ref Table) -> WithClauses -> WithClauses # | |
TableRenamer Statement # | |
Defined in Napkin.Types.QueryTransformer | |
TableRenamer (Alias SExp) # | |
TableRenamer (Alias Table) # | |
TableRenamer (Selected Query) # | |
TableRenamer (Selected Relation) # | |
TableRenamer (Selected Table) # | |
TableRenamer (Ref Table) # | |
class FunRenamer a where #