Excessibility.Dialect behaviour (Excessibility v0.19.0)

Copy Markdown View Source

Seam isolating the few genuinely dialect-specific SQL behaviors so a new database dialect is a drop-in module + one config line, not a core refactor. Only Postgres ships today (the Ecto reference adapter).

Summary

Functions

Resolve the configured dialect module (default Postgres).

Callbacks

explain_sql(t)

@callback explain_sql(String.t()) :: String.t()

normalize_extras(t)

@callback normalize_extras(String.t()) :: String.t()

parse_plan(term)

@callback parse_plan(term()) :: map() | nil

Functions

resolve()

Resolve the configured dialect module (default Postgres).