From 16acc53c1346e9815a78b45c1eb19384d964e2c8 Mon Sep 17 00:00:00 2001 From: Haris Osmanagic Date: Mon, 29 Jul 2024 14:28:07 +0200 Subject: [PATCH] More info about Postgres connection string --- pkg/conduit/entrypoint.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/conduit/entrypoint.go b/pkg/conduit/entrypoint.go index 145162f6d..d4667e114 100644 --- a/pkg/conduit/entrypoint.go +++ b/pkg/conduit/entrypoint.go @@ -79,7 +79,12 @@ func (*Entrypoint) Flags(cfg *Config) *flag.FlagSet { flags.StringVar(&cfg.DB.Type, "db.type", cfg.DB.Type, "database type; accepts badger,postgres,inmemory,sqlite") flags.StringVar(&cfg.DB.Badger.Path, "db.badger.path", cfg.DB.Badger.Path, "path to badger DB") - flags.StringVar(&cfg.DB.Postgres.ConnectionString, "db.postgres.connection-string", cfg.DB.Postgres.ConnectionString, "postgres connection string") + flags.StringVar( + &cfg.DB.Postgres.ConnectionString, + "db.postgres.connection-string", + cfg.DB.Postgres.ConnectionString, + "postgres connection string, may be a database URL or in PostgreSQL keyword/value format", + ) flags.StringVar(&cfg.DB.Postgres.Table, "db.postgres.table", cfg.DB.Postgres.Table, "postgres table in which to store data (will be created if it does not exist)") flags.StringVar(&cfg.DB.SQLite.Path, "db.sqlite.path", cfg.DB.SQLite.Path, "path to sqlite3 DB") flags.StringVar(&cfg.DB.SQLite.Table, "db.sqlite.table", cfg.DB.SQLite.Table, "sqlite3 table in which to store data (will be created if it does not exist)")