Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- renderSql' :: RenderSql a b => b -> a -> String
- renderSqlErr :: RenderSql a b => b -> a -> Either Text String
- renderSqlWith :: RenderSql a b => Style -> b -> a -> String
- renderSqlCollapsed :: RenderSql a b => b -> a -> String
- styleCollapsed :: Style
- class RenderSql a backend where
- data RenderedSql = RenderSql a backend => RenderedSql backend a
- newtype Unshow = Unshow Text
- debugSql' :: (RenderSql Query b, ReifiesBackend b) => Query -> Unshow
Documentation
renderSql' :: RenderSql a b => b -> a -> String #
renderSqlWith :: RenderSql a b => Style -> b -> a -> String #
renderSqlCollapsed :: RenderSql a b => b -> a -> String #
styleCollapsed :: Style #
class RenderSql a backend where #
If one day we support multiple backends, one option would be for this typeclass to take a (Proxy backend) argument to dispatch on the right backend.
Instances
data RenderedSql #
RenderSql a backend => RenderedSql backend a |
Workaround for HLS eval plugin (using show) not handling multiline output well