Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
$ go version
go version go1.15.1 linux/amd64
This is a interface extension proposal for database/sql.DB struct.
I want to inspect state of DB instance configuration set via
func (db *DB) SetConnMaxIdleTime(d time.Duration)
func (db *DB) SetConnMaxLifetime(d time.Duration)
func (db *DB) SetMaxIdleConns(n int)
func (db *DB) SetMaxOpenConns(n int)
Methods returning current values, i.e
func (db *DB) ConnMaxIdleTime() time.Duration
func (db *DB) ConnMaxLifetime() time.Duration
func (db *DB) MaxIdleConns() int
func (db *DB) MaxOpenConns() int
or additional fields in DBStats struct, currently there's just MaxOpenConnections.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests