tsenart / nap

A Go sql.DB wrapper for master-slave topologies
http://godoc.org/github.com/tsenart/pan
MIT License
190 stars 40 forks source link

Add SetConnMaxLifetime #2

Closed habibrosyad closed 8 years ago

habibrosyad commented 8 years ago

As in go doc, SetConnMaxLifetime sets the maximum amount of time a connection may be reused. Expired connections may be closed lazily before reuse. If d <= 0, connections are reused forever.

tsenart commented 8 years ago

Thanks!