Skip to content

Commit

Permalink
add more content
Browse files Browse the repository at this point in the history
  • Loading branch information
remvn committed Sep 27, 2024
1 parent 618c7cc commit dc29bb8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ write raw SQL:

#### Named argument & collect rows:

* You can use *named arguments* (@id, @name, @description...) as placeholder
instead of positional placeholder ($1, $2, $3...)
* Collect rows to array of struct using helper function instead of scanning
* **Named arguments** (@id, @name, @description...) as placeholder instead of
positional placeholder ($1, $2, $3...):
[pgx.NamedArgs](https://pkg.go.dev/github.com/jackc/pgx/v5#NamedArgs)
* **Collect rows to array of struct** using helper function instead of scanning
manually:
[pgx.RowToStructByName](https://pkg.go.dev/github.com/jackc/pgx/v5#RowToStructByName)

Expand Down

0 comments on commit dc29bb8

Please sign in to comment.