Skip to content

Commit 9f8e612

Browse files
committed
implement iterator
1 parent df9413c commit 9f8e612

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1063
-8
lines changed

examples/authors/mysql/query.sql

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ WHERE id = ? LIMIT 1;
66
SELECT * FROM authors
77
ORDER BY name;
88

9+
/* name: IterAuthors :iter */
10+
SELECT * FROM authors
11+
ORDER BY name;
12+
913
/* name: CreateAuthor :execresult */
1014
INSERT INTO authors (
1115
name, bio

examples/authors/mysql/query.sql.go

+54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/authors/postgresql/query.sql

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ WHERE id = $1 LIMIT 1;
66
SELECT * FROM authors
77
ORDER BY name;
88

9+
-- name: IterAuthors :iter
10+
SELECT * FROM authors
11+
ORDER BY name;
12+
913
-- name: CreateAuthor :one
1014
INSERT INTO authors (
1115
name, bio

examples/authors/postgresql/query.sql.go

+53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/authors/sqlite/query.sql

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ WHERE id = ? LIMIT 1;
66
SELECT * FROM authors
77
ORDER BY name;
88

9+
/* name: IterAuthors :iter */
10+
SELECT * FROM authors
11+
ORDER BY name;
12+
913
/* name: CreateAuthor :execresult */
1014
INSERT INTO authors (
1115
name, bio

examples/authors/sqlite/query.sql.go

+54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/booktest/mysql/query.sql

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ WHERE book_id = ?;
1414
SELECT * FROM books
1515
WHERE title = ? AND yr = ?;
1616

17+
/* name: IterBooksByTitleYear :iter */
18+
SELECT * FROM books
19+
WHERE title = ? AND yr = ?;
20+
1721
/* name: BooksByTags :many */
1822
SELECT
1923
book_id,

examples/booktest/mysql/query.sql.go

+68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/booktest/postgresql/query.sql

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ WHERE book_id = $1;
1414
SELECT * FROM books
1515
WHERE title = $1 AND year = $2;
1616

17+
-- name: IterBooksByTitleYear :iter
18+
SELECT * FROM books
19+
WHERE title = $1 AND year = $2;
20+
1721
-- name: BooksByTags :many
1822
SELECT
1923
book_id,

0 commit comments

Comments
 (0)