endo

Translates SQL to Ecto


License
Apache-2.0

Documentation

Endo

Translates a SQL query to Ecto query syntax.

iex> Endo.translate("SELECT * FROM Users WHERE age > 18")
"from u in User, where: u.age > 18, select: u"

Installation

  1. Add endo to your list of dependencies in mix.exs:

    def deps do
      [{:endo, "~> 0.1.0"}]
    end
  2. Ensure endo is started before your application:

    def application do
      [applications: [:endo]]
    end