View Source AyeSQL.Runner.Postgrex (AyeSQL v1.1.2)

This module defines Postgrex default adapter.

Can be used as follows:

defmodule MyQueries do
  use AyeSQL,
    runner: AyeSQL.Runner.Postgrex

  defqueries("query/my_queries.sql")
end

And given a connection to the database, then it can be used with the query options:

iex> MyQueries.get_user([id: id], conn: connection)
{:ok, ...}