napkin-0.5.12
Safe HaskellNone
LanguageHaskell2010

Napkin.Parse.SimpleSqlParser.Native

Synopsis

Documentation

rewriteCollectDepsNapkin :: forall a. Data a => Maybe (Ref Table -> Ref Table) -> Set (Ref Table) -> a -> (Set (Ref Table), a) #

fixQuotes :: forall b a. (Data a, ToDbBackend b) => a -> a #

On renaming phase we don't know what quoting our dialect uses. We apply ~ as quotes and need to replace them with appropriate ones them as we render the expression (then we already know target backend).