Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- 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
- data RenderedSql = forall a backend.RenderSql a backend => RenderedSql backend a
- newtype Unshow = Unshow Text
- debugSql' :: forall b. (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 #
forall a backend.RenderSql a backend => RenderedSql backend a |
Workaround for HLS eval plugin (using show) not handling multiline output well