Postgrex-backed query inferrer.
Supported public API
inferrer/1— build a query-source inferrer forSquirrelix.generate/3/check/3from an openPostgrex.conn()
Other functions in this module are internal and may change without notice. Connection resolution for Mix tasks is documented in the Configuration guide; do not call Mix-oriented helpers from application code.
Summary
Functions
Returns an inferrer function for Squirrelix.generate/3 / check/3.
Functions
@spec inferrer(Postgrex.conn()) :: Squirrelix.Inference.inferrer()
Returns an inferrer function for Squirrelix.generate/3 / check/3.
The returned function takes a Squirrelix.Query and returns
{:ok, [params: ..., returns: ...]} or {:error, structured_error}.