napkin-0.5.14
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Spec.QueryTransformer

Synopsis

Documentation

namespaceXanagedTables :: forall b. (Bool -> Bool) -> (Ref Table -> Ref Table) -> Specs b -> Specs b #

namespaceManagedTables :: forall b. (Ref Table -> Ref Table) -> Specs b -> Specs b #

Rename all napkin-managed tables in the `Specs b`.

namespaceUnmanagedTables :: forall b. (Ref Table -> Ref Table) -> Specs b -> Specs b #

Rename all unmanaged tables in the `Specs b`.

namespaceSomeTables :: forall b. (Ref Table -> Bool) -> (Ref Table -> Ref Table) -> Specs b -> Specs b #

Rename some tables in the `Specs b`.

namespaceAllTables :: forall b. (Ref Table -> Ref Table) -> Specs b -> Specs b #

Apply a renamer to all tables in the `Specs b` (managed or unmanaged).

namespaceFunctions :: forall b. (Ref Function -> Ref Function) -> Specs b -> Specs b #

prependQueryRewriter :: forall b. (Query -> Query) -> Specs b -> Specs b #