-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathquery.sql.go
More file actions
38 lines (30 loc) · 780 Bytes
/
query.sql.go
File metadata and controls
38 lines (30 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
// source: query.sql
package querytest
import (
"context"
)
const updateSet = `-- name: UpdateSet :exec
UPDATE foo SET name = ? WHERE slug = ?
`
type UpdateSetParams struct {
Name string
Slug string
}
func (q *Queries) UpdateSet(ctx context.Context, arg UpdateSetParams) error {
_, err := q.db.ExecContext(ctx, updateSet, arg.Name, arg.Slug)
return err
}
const updateSetQuoted = `-- name: UpdateSetQuoted :exec
UPDATE "foo" SET "name" = ? WHERE "slug" = ?
`
type UpdateSetQuotedParams struct {
Name string
Slug string
}
func (q *Queries) UpdateSetQuoted(ctx context.Context, arg UpdateSetQuotedParams) error {
_, err := q.db.ExecContext(ctx, updateSetQuoted, arg.Name, arg.Slug)
return err
}