From e32daea735150e0193ad79b30227c0a4a1b1f05a Mon Sep 17 00:00:00 2001 From: Romain Griffiths Date: Thu, 27 Jan 2022 08:58:14 +0100 Subject: [PATCH] debug printfs --- pkg/database/psql.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/database/psql.go b/pkg/database/psql.go index 751cdc2..4688b7e 100644 --- a/pkg/database/psql.go +++ b/pkg/database/psql.go @@ -48,6 +48,7 @@ func getDatabaseParameters(operation Operation) map[string]string { databaseCredentials["PGPORT"] = operation.DSN.Port() databaseCredentials["PGUSER_CREATE"] = "u_" + username databaseCredentials["PGUSER"] = "u_" + username + "@" + operation.DSN.Hostname() + fmt.Printf("%v\n", databaseCredentials) return databaseCredentials } @@ -56,6 +57,7 @@ func getDatabaseParameters(operation Operation) map[string]string { func (c *PsqlConn) CreateDb(operation Operation) OpOutput { val := getPsqlOpQuery(operation) + fmt.Printf("%v\n", val) rows, err := c.c.Query(context.Background(), val) if err != nil { return OpOutput{Result: nil, Err: err}