We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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? Sign in to your account
The interceptor lack callbacks for:
Driver.OpenConnector(name string) (driver.Connector, error)
Connector.Connect(context.Context) (driver.Conn, error)
Conn.Close() error
I propose to add the following callbacks:
OpenConnector(connector driver.DriverContext, name string) (driver.Connector, error)
Connect(ctx context.Context, connector driver.Connector, name string) (driver.Conn, error)
ConnClose(conn driver.Conn) error
Use case: tracking connection leaks (missing call to conn.Close)
conn.Close
The text was updated successfully, but these errors were encountered:
thanks for finding these holes in the interceptor. i'd be happy to take a PR for this!
Sorry, something went wrong.
No branches or pull requests
The interceptor lack callbacks for:
Driver.OpenConnector(name string) (driver.Connector, error)
Connector.Connect(context.Context) (driver.Conn, error)
Conn.Close() error
I propose to add the following callbacks:
OpenConnector(connector driver.DriverContext, name string) (driver.Connector, error)
Connect(ctx context.Context, connector driver.Connector, name string) (driver.Conn, error)
ConnClose(conn driver.Conn) error
Use case: tracking connection leaks (missing call to
conn.Close
)The text was updated successfully, but these errors were encountered: