(ctx context.Context, name string)
| 102 | ` |
| 103 | |
| 104 | func (q *Queries) CreateAuthor(ctx context.Context, name string) (Author, error) { |
| 105 | row := q.db.QueryRow(ctx, createAuthor, name) |
| 106 | var i Author |
| 107 | err := row.Scan(&i.AuthorID, &i.Name) |
| 108 | return i, err |
| 109 | } |
| 110 | |
| 111 | const createBook = `-- name: CreateBook :one |
| 112 | INSERT INTO books ( |