(ctx context.Context)
| 44 | } |
| 45 | |
| 46 | func (q *Queries) Join(ctx context.Context) (JoinRow, error) { |
| 47 | row := q.db.QueryRowContext(ctx, join) |
| 48 | var i JoinRow |
| 49 | err := row.Scan( |
| 50 | &i.User.ID, |
| 51 | &i.User.Name, |
| 52 | &i.User.Age, |
| 53 | &i.Post.ID, |
| 54 | &i.Post.UserID, |
| 55 | ) |
| 56 | return i, err |
| 57 | } |
| 58 | |
| 59 | const only = `-- name: Only :one |
| 60 | SELECT users.id, users.name, users.age FROM users |