(ctx context.Context, authorID int32)
| 179 | ` |
| 180 | |
| 181 | func (q *Queries) GetAuthor(ctx context.Context, authorID int32) (Author, error) { |
| 182 | row := q.db.QueryRow(ctx, getAuthor, authorID) |
| 183 | var i Author |
| 184 | err := row.Scan(&i.AuthorID, &i.Name) |
| 185 | return i, err |
| 186 | } |
| 187 | |
| 188 | const getBook = `-- name: GetBook :one |
| 189 | SELECT book_id, author_id, isbn, book_type, title, year, available, tags FROM books |