Skip to content

Commit

Permalink
ADD fieldDescriptionsInJSONByte dump.
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Feb 1, 2024
1 parent c4e32ff commit 1fcf518
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/actionruntime/postgresql/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ func fieldsInfo(db *pgx.Conn, tableSchema string, tableNames []string) map[strin

func RetrieveToMap(rows pgx.Rows) ([]map[string]interface{}, error) {
fieldDescriptions := rows.FieldDescriptions()
fieldDescriptionsInJSONByte, _ := json.Marshal(fieldDescriptions)
fmt.Printf("[DUMP] valuePtrs: %s\n", string(fieldDescriptionsInJSONByte))

var columns []string
for _, col := range fieldDescriptions {
columns = append(columns, col.Name)
Expand Down

0 comments on commit 1fcf518

Please sign in to comment.