Difference between revisions of "Pgx"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "https://pkg.go.dev/github.com/jackc/pgx#section-readme")
 
 
(4 intermediate revisions by the same user not shown)
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://github.com/henvic/pgxtutorial
 +
 +
https://henvic.dev/posts/go-postgres/
 +
 +
https://dev.to/kushagra_mehta/postgresql-with-go-in-2021-3dfg
 +
 +
https://stackoverflow.com/questions/56718043/how-to-convert-sqlx-query-results-to-an-array-of-structs
 +
```
 +
for rows.Next() {
 +
    s := CustomData{}
 +
    if err := rows.Scan(&s); err != nil {
 +
        return err
 +
    }
 +
    fmt.Println(s)
 +
}
 +
```

Latest revision as of 00:28, 23 March 2022