Re:I Want Off Mr. Golang's Wild Ride
by anonymoushn on Friday February 28, 2020 @07:10PM
(#22447616)
One company asked me to write a wrapper around database/sql that adds a connection pool. This is pretty easy until you want to implement any function that returns Row, which you just can't, because you can't make one of those. Amazing.
[ Parent
| on HN ]
Take care, you may be wrapping your connection pool around a built-in connection pool. Furthermore, some dbs might not like log-lived connections.
Re:I Want Off Mr. Golang's Wild Ride
by anonymoushn on Wednesday March 04, 2020 @01:21AM
(#22481608)
Sorry, my original reply was unclear. The connections would be to different replicas, and it was just a hiring task rather than something one would actually use in production.