PostgreSQL: Read postgresDSUsePGX from config (#112170)

* PostgreSQL: Read `postgresDSUsePGX` from config

* Update plugins_test
This commit is contained in:
Zoltán Bedi
2025-10-10 15:55:55 +02:00
committed by GitHub
parent f33e6e47d5
commit 5e8267fcf8
6 changed files with 15 additions and 15 deletions
@@ -15,7 +15,7 @@ func main() {
logger := backend.NewLoggerWith()
// TODO: get rid of setting.NewCfg() once PostgresDSUsePGX is removed
cfg := setting.NewCfg()
if err := datasource.Manage("grafana-postgresql-datasource", postgres.NewInstanceSettings(logger, true, cfg.DataPath), datasource.ManageOpts{}); err != nil {
if err := datasource.Manage("grafana-postgresql-datasource", postgres.NewInstanceSettings(logger, cfg.DataPath), datasource.ManageOpts{}); err != nil {
log.DefaultLogger.Error(err.Error())
os.Exit(1)
}