Defql: SQL Queries as Elixir Functions
blog.fazibear.me
Defql: SQL Queries as Elixir Functions
1–3 of 3 posts
Re: Defql: SQL Queries as Elixir Functions
#2Isn't the author just creating their own DSL? -- "Do I need a DSL for querying database" Apparently you do, you need defql. /shrug
Re: Defql: SQL Queries as Elixir Functions
#3This isn't SQL as a body, it's an interpolated (and hopefully properly-escaped) string that ends up being SQL. IMO there's a big difference. (Also, Ecto isn't an ORM, by definition.)
I don't yet understand how this helps me.
* Ecto's DSL is thin
* The DSL is Elixir, so the IDE/editor helps me
* SQL embedded in a string is sort-of SQL, but invisible to the IDE
It seems like the worst of both worlds.