From 54552fdd38a85e24be6b5387ec656008c334ac74 Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Wed, 9 Feb 2022 14:25:59 +0000 Subject: [PATCH] fix: Use URI DSNs --- cmd/init.go | 2 +- pkg/ui/console/fixtures/config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index e4f572045d711b..8b991eec901d45 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -68,7 +68,7 @@ func Initialize(ctx context.Context, providers []string) error { PolicyDirectory: "./cq/policies", Providers: requiredProviders, Connection: &config.Connection{ - DSN: "host=localhost user=postgres password=pass database=postgres port=5432 sslmode=disable", + DSN: "postgres://postgres:pass@localhost:5432/postgres?sslmode=disable", }, }, "cloudquery") diff --git a/pkg/ui/console/fixtures/config.yaml b/pkg/ui/console/fixtures/config.yaml index 4c61e60bba6322..9634a784f5a8d3 100644 --- a/pkg/ui/console/fixtures/config.yaml +++ b/pkg/ui/console/fixtures/config.yaml @@ -1,5 +1,5 @@ cloudquery { connection { - dsn = "host=localhost user=postgres password=pass database=postgres port=5432 sslmode=disable" + dsn = "postgres://postgres:pass@localhost:5432/postgres?sslmode=disable" } }