PostgresSigil.Explain (postgres_sigil v0.4.0)
Utility for explaining queries. Rather than calling this directly you should use the explain_to_file! functions in Postgres / Ecto.
Link to this section Summary
Functions
Surround the query in an explain call which also jsonifies the output, ready to be pasted into analysis tools like https://explain.dalibo.com/ This module uses the same JSON library as Postgrex is configured to use.
Link to this section Functions
Link to this function
explain(sql, opts, query)
@spec explain(PostgresSigil.Sql.t(), Keyword.t(), (PostgresSigil.Sql.t() -> %{})) :: PostgresSigil.Sql.t()
Surround the query in an explain call which also jsonifies the output, ready to be pasted into analysis tools like https://explain.dalibo.com/ This module uses the same JSON library as Postgrex is configured to use.