Regenerate sqlc

This commit is contained in:
2021-12-02 10:44:01 +00:00
parent adce350e0c
commit cdc767a497
4 changed files with 13 additions and 22 deletions

View File

@ -24,7 +24,7 @@ type CreateUserParams struct {
}
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error) {
row := q.db.QueryRowContext(ctx, createUser,
row := q.db.QueryRow(ctx, createUser,
arg.ID,
arg.Email,
arg.Name,
@ -46,7 +46,7 @@ WHERE id = $1
`
func (q *Queries) GetUser(ctx context.Context, id uuid.UUID) (User, error) {
row := q.db.QueryRowContext(ctx, getUser, id)
row := q.db.QueryRow(ctx, getUser, id)
var i User
err := row.Scan(
&i.ID,
@ -63,7 +63,7 @@ WHERE email = $1
`
func (q *Queries) GetUserByUsername(ctx context.Context, email string) (User, error) {
row := q.db.QueryRowContext(ctx, getUserByUsername, email)
row := q.db.QueryRow(ctx, getUserByUsername, email)
var i User
err := row.Scan(
&i.ID,