Came across this link regarding use of Ecto. Elixir ecto connect to an existing DB . Schemas are already created in a database so why declare here? We use stmt like Ecto.Adapters.SQL.query when using odbc/jdbc/odac drivers and are less complicated and straightforward.
So where do give the stmt: Ecto.Adapters.SQL.query(YourRepo, "SELECT $1", [1])?
Is it in web/models/abc.ex?
And how do you get back the results?
Can you pl mention some of benefits you get from Ecto that use of direct SQL does'nt provide?