ecto_sql
ecto_sql copied to clipboard
allow passing `%Tds.Parameter` structs as params for named parameter usage in `query`
Currently, one cannot pass a list of Tds.Parameter structs to query. They must be basic values/structs. When one has a large handwritten SQL query, it is nice to use named parameters, e.g. @StartTime. This change allows including these structs as parameters.
I didn't see any tests around parameters but happy to add some.
Can you please add tests to test/ecto/adapters/tds_test.exs?
Pardon my delay. I made prepare_params public as I couldn't see a public interface to unit test that part of the code with.
@josevalim 👋
:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: