Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
wroge committed Dec 24, 2024
1 parent 1138d83 commit e2f5a9d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ type Insert struct {
var insertBooks = sqlt.Stmt[[]Insert](
sqlt.Parse(`
INSERT INTO books (id, title) VALUES
{{ range $i, $v := . }}
{{ if $i }}, {{ end }}
({{ $v.ID }}, {{ $v.Title }})
{{ end }}
RETURNING id;
{{ range $i, $v := . }}
{{ if $i }}, {{ end }}
({{ $v.ID }}, {{ $v.Title }})
{{ end }};
`),
)

Expand Down

0 comments on commit e2f5a9d

Please sign in to comment.