AyeSQL v0.5.0 AyeSQL.Runner.Postgrex View Source

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], run?: true, conn: connection)
{:ok, ...}