Thanks for your reply, very interesting, I didn't know about the `sqlx.ExtContext` interface yet! I will do a deeper dive into your project later, I'm hoping to find more inspiration.
Wow, I find this quite interesting, however, there are probably some real downsides to this? Maybe someone else can highlight some of those.
An issue I can think of is for instance: consider a system where each time a new request comes in a new transaction is started. That situation would result in having a new `DBImpl struct` for each request. It seems that that last "but you probably only have one of these DB objects" doesn't hold. How would you tackle that issue?
Ervaringwijzer | Frontend/Backend Engineers | Rotterdam, The Netherlands | Up to €50k+ p.a. depending on experience | FULLTIME, PARTTIME, INTERNS | ONSITE / HYBRID
Ervaringwijzer is a fast-growing SaaS startup with an accessible solution for collecting feedback from users and customers. The software is used as a stand-alone product, but it is also integrated into other systems to act on ongoing processes.
We have open positions for all levels of experience:
Why not map escape to caps lock with QMK or VIA? If you cannot miss your caps lock, place that behind a layer. There are quite some options to tackle this as long as you can flash a custom keymap.