Skip to content
This repository has been archived by the owner on May 8, 2022. It is now read-only.

Commit

Permalink
debug printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
wid committed Jan 27, 2022
1 parent 9a07e00 commit e32daea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/database/psql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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}
Expand Down

0 comments on commit e32daea

Please sign in to comment.