cscli config show: print host/port/user/dbname when driver=pgx (fix #1866) (#1870)

This commit is contained in:
mmetc 2022-11-17 12:07:37 +01:00 committed by GitHub
parent 3beb84bcfe
commit 99513f64fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,7 +409,7 @@ func NewConfigCmd() *cobra.Command {
switch csConfig.DbConfig.Type {
case "sqlite":
fmt.Printf(" - Path : %s\n", csConfig.DbConfig.DbPath)
case "mysql", "postgresql", "postgres":
default:
fmt.Printf(" - Host : %s\n", csConfig.DbConfig.Host)
fmt.Printf(" - Port : %d\n", csConfig.DbConfig.Port)
fmt.Printf(" - User : %s\n", csConfig.DbConfig.User)