jmoiron / modl

golang database modelling library
MIT License
479 stars 48 forks source link

Transactions are missing SelectOne #8

Closed tobz closed 10 years ago

tobz commented 10 years ago

This exists in gorp and seems pretty important since there's no other way to cleanly get a single record in a transaction if you need to query by something other than PK.

jmoiron commented 10 years ago

Hrm, I don't like the fact that Get means something else here than it does on sqlx, but I suppose that's a product of behavior upstream. It's too late to change that, so I'll implement SelectOne instead.