update sqlc gen
This commit is contained in:
parent
8bca2a49aa
commit
16ea424441
@ -1,6 +1,6 @@
|
|||||||
// Code generated by sqlc. DO NOT EDIT.
|
// Code generated by sqlc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// sqlc v1.25.0
|
// sqlc v1.26.0
|
||||||
|
|
||||||
package sqlcgen
|
package sqlcgen
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by sqlc. DO NOT EDIT.
|
// Code generated by sqlc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// sqlc v1.25.0
|
// sqlc v1.26.0
|
||||||
|
|
||||||
package sqlcgen
|
package sqlcgen
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by sqlc. DO NOT EDIT.
|
// Code generated by sqlc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// sqlc v1.25.0
|
// sqlc v1.26.0
|
||||||
// source: queries.sql
|
// source: queries.sql
|
||||||
|
|
||||||
package sqlcgen
|
package sqlcgen
|
||||||
@ -2793,7 +2793,7 @@ func (q *Queries) GettingAmoUsersTrueResults(ctx context.Context) ([]GettingAmoU
|
|||||||
return items, nil
|
return items, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
const insertAnswers = `-- name: InsertAnswers :exec
|
const insertAnswers = `-- name: InsertAnswers :one
|
||||||
INSERT INTO answer(
|
INSERT INTO answer(
|
||||||
content,
|
content,
|
||||||
quiz_id,
|
quiz_id,
|
||||||
@ -2810,6 +2810,7 @@ INSERT INTO answer(
|
|||||||
start,
|
start,
|
||||||
utm
|
utm
|
||||||
) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14)
|
) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14)
|
||||||
|
RETURNING id, content, quiz_id, question_id, fingerprint, session, created_at, result, new, deleted, email, device_type, device, os, browser, ip, start, utm
|
||||||
`
|
`
|
||||||
|
|
||||||
type InsertAnswersParams struct {
|
type InsertAnswersParams struct {
|
||||||
@ -2829,8 +2830,8 @@ type InsertAnswersParams struct {
|
|||||||
Utm json.RawMessage `db:"utm" json:"utm"`
|
Utm json.RawMessage `db:"utm" json:"utm"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (q *Queries) InsertAnswers(ctx context.Context, arg InsertAnswersParams) error {
|
func (q *Queries) InsertAnswers(ctx context.Context, arg InsertAnswersParams) (Answer, error) {
|
||||||
_, err := q.db.ExecContext(ctx, insertAnswers,
|
row := q.db.QueryRowContext(ctx, insertAnswers,
|
||||||
arg.Content,
|
arg.Content,
|
||||||
arg.QuizID,
|
arg.QuizID,
|
||||||
arg.QuestionID,
|
arg.QuestionID,
|
||||||
@ -2846,7 +2847,28 @@ func (q *Queries) InsertAnswers(ctx context.Context, arg InsertAnswersParams) er
|
|||||||
arg.Start,
|
arg.Start,
|
||||||
arg.Utm,
|
arg.Utm,
|
||||||
)
|
)
|
||||||
return err
|
var i Answer
|
||||||
|
err := row.Scan(
|
||||||
|
&i.ID,
|
||||||
|
&i.Content,
|
||||||
|
&i.QuizID,
|
||||||
|
&i.QuestionID,
|
||||||
|
&i.Fingerprint,
|
||||||
|
&i.Session,
|
||||||
|
&i.CreatedAt,
|
||||||
|
&i.Result,
|
||||||
|
&i.New,
|
||||||
|
&i.Deleted,
|
||||||
|
&i.Email,
|
||||||
|
&i.DeviceType,
|
||||||
|
&i.Device,
|
||||||
|
&i.Os,
|
||||||
|
&i.Browser,
|
||||||
|
&i.Ip,
|
||||||
|
&i.Start,
|
||||||
|
&i.Utm,
|
||||||
|
)
|
||||||
|
return i, err
|
||||||
}
|
}
|
||||||
|
|
||||||
const insertPrivilege = `-- name: InsertPrivilege :exec
|
const insertPrivilege = `-- name: InsertPrivilege :exec
|
||||||
|
Loading…
Reference in New Issue
Block a user