Yesql v1.0.0 Yesql

defmodule Query do
  use Yesql, driver: Postgrex, conn: MyApp.ConnectionPool

  Yesql.defquery("some/where/select_users_by_country.sql")
end

Query.users_by_country(country_code: "gbr")
# => {:ok, [%{name: "Louis", country_code: "gbr"}]}

Supported drivers

Link to this section Summary

Link to this section Functions

Link to this macro

defquery(file_path, opts \\ [])

(macro)