grafana / sqlds

A package that assists writing SQL-driven datasources
Apache License 2.0
20 stars 12 forks source link

Avoid to remove connections when disposing #54

Closed andresmgot closed 2 years ago

andresmgot commented 2 years ago

The method Dispose is only called when creating or updating a data source (not really what can be inferred by its name). Since it was deleting all the connections, when adding a second data source for the same plugin, it was deleting the first connection causing the error described at https://github.com/grafana/redshift-datasource/issues/98.