* Pool for efficient reuse of connections. Usage: pool := client.NewPool(log.Debugf, 100, 400, 5, `127.0.0.1:3306`, `username`, `userpwd`, `dbname`) ... conn, _ := pool.GetConn(ctx) defer pool.PutConn(conn) conn.Execute/conn.Begin/etc... */
| 54 | } |
| 55 | |
| 56 | Connection struct { |
| 57 | conn *Conn |
| 58 | lastUseAt Timestamp |
| 59 | } |
| 60 | ) |
| 61 | |
| 62 | var ( |
nothing calls this directly
no outgoing calls
no test coverage detected