Postgrex-backed query inferrer for Squirrelix inference.
Summary
Functions
Opens a Postgrex connection after a synchronous probe so connection failures and timeouts become structured Squirrelix errors.
Functions
@spec connect(Squirrelix.ConnectionOptions.t()) :: {:ok, pid()} | {:error, struct()}
Opens a Postgrex connection after a synchronous probe so connection failures and timeouts become structured Squirrelix errors.
@spec infer(Postgrex.conn(), Squirrelix.Query.t()) :: {:ok, keyword()} | {:error, struct()}
@spec inferrer(Postgrex.conn()) :: Squirrelix.Inference.inferrer()