grafana-plugin-sdk-go supports a Dispose() method to be called when a new Instance is to be created. Sqlds does not currently support this. This leaks database connections in some circumstances.
SQLDatasource should support the InstanceDisposer interface and have its Connector close its open database connections when Dispose() is called. I'm working on a PR for this now.
grafana-plugin-sdk-go
supports aDispose()
method to be called when a new Instance is to be created. Sqlds does not currently support this. This leaks database connections in some circumstances.SQLDatasource
should support theInstanceDisposer
interface and have itsConnector
close its open database connections whenDispose()
is called. I'm working on a PR for this now.