napkin-0.5.10
Safe HaskellNone
LanguageHaskell2010

Napkin.Types.Transformation.NonCteRename

Synopsis

Documentation

renameNonCteTables :: (Ref Table -> Ref Table) -> Query -> Query #

renameNonCteTables traverses deeply query and applies given name-changing function to each table's name but only if the table has been used in a FROM statement as a source table and not overlapped by local Cte tables.