fbraem / sql-smith

An SQL query builder with zero dependencies and a fluent interface
MIT License
1 stars 1 forks source link

Use with encode/databases #2

Open trollfot opened 1 year ago

trollfot commented 1 year ago

Hello, First of all, thank you very much for this very nice package. Very readable code that i would very much like to use. In my project, I generate queries to use with the encode/databases package for async access to several sql backends. I tried to create an engine that would generate databases like query, that use a :query_arg style notation. It seems that parameters are not aware of their own names, so I'm running into problems. Am I missing something ?

https://www.encode.io/databases/database_queries/ for references

Thank you very much.

fbraem commented 1 year ago

Hi, Named parameters are indeed not supported. Latitude, the origin of this query builder, doesn't support them either: https://github.com/shadowhand/latitude/issues/131 I'm not sure how easy it will be to add this functionality.