volatiletech / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6.73k stars 544 forks source link

[Feature Request] Named parameters #346

Closed shousper closed 6 years ago

shousper commented 6 years ago

I was hunting for this feature in the driver, but it doesn't look like that's where everyone feel it should live. So while MySQL is unlikely to gain support soon, PostgreSQL (EDIT: nope) ~has one client playing ball, but the~ main client seems disinterested. I don't know about other drivers, we're stuck on MySQL for the time being.

Are named parameters something sqlboiler would consider implementing?

aarondl commented 6 years ago

Not really no. This is additional complexity that we simply don't need. Also it's not clear to me (as it doesn't seem clear to everyone) where it should live and especially before that decision is made I would not venture to implement anything for fear of having to rip out our implementation for the one that lands in drivers or database/sql which may have different syntax which causes breaking changes etc.

shousper commented 6 years ago

Fair enough 👍