Difference between revisions of "Pgx"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
https://pkg.go.dev/github.com/jackc/pgx#section-readme | https://pkg.go.dev/github.com/jackc/pgx#section-readme | ||
+ | |||
+ | https://henvic.dev/posts/go-postgres/ | ||
https://stackoverflow.com/questions/56718043/how-to-convert-sqlx-query-results-to-an-array-of-structs | https://stackoverflow.com/questions/56718043/how-to-convert-sqlx-query-results-to-an-array-of-structs |
Revision as of 23:47, 22 March 2022
https://pkg.go.dev/github.com/jackc/pgx#section-readme
https://henvic.dev/posts/go-postgres/
for rows.Next() { s := CustomData{} if err := rows.Scan(&s); err != nil { return err } fmt.Println(s) }