update sqlc gen
This commit is contained in:
parent
908aac5ae9
commit
b752297075
@ -3556,6 +3556,15 @@ func (q *Queries) SoftDeleteResultByID(ctx context.Context, id int64) error {
|
||||
return err
|
||||
}
|
||||
|
||||
const softDeleteTgAccount = `-- name: SoftDeleteTgAccount :exec
|
||||
UPDATE tgAccounts SET Deleted = true WHERE id = $1
|
||||
`
|
||||
|
||||
func (q *Queries) SoftDeleteTgAccount(ctx context.Context, id int64) error {
|
||||
_, err := q.db.ExecContext(ctx, softDeleteTgAccount, id)
|
||||
return err
|
||||
}
|
||||
|
||||
const templateCopy = `-- name: TemplateCopy :one
|
||||
WITH copied_quiz AS (
|
||||
INSERT INTO quiz (accountid, name,fingerprinting,repeatable,note_prevented,mail_notifications,unique_answers,super,group_id, description, config, status,limit_answers,due_to,time_of_passing,pausable,version,version_comment, parent_ids)
|
||||
@ -3753,6 +3762,20 @@ func (q *Queries) UpdatePrivilegeAmount(ctx context.Context, arg UpdatePrivilege
|
||||
return err
|
||||
}
|
||||
|
||||
const updateStatusTg = `-- name: UpdateStatusTg :exec
|
||||
UPDATE tgAccounts SET Status = $1 WHERE id = $2
|
||||
`
|
||||
|
||||
type UpdateStatusTgParams struct {
|
||||
Status interface{} `db:"status" json:"status"`
|
||||
ID int64 `db:"id" json:"id"`
|
||||
}
|
||||
|
||||
func (q *Queries) UpdateStatusTg(ctx context.Context, arg UpdateStatusTgParams) error {
|
||||
_, err := q.db.ExecContext(ctx, updateStatusTg, arg.Status, arg.ID)
|
||||
return err
|
||||
}
|
||||
|
||||
const updateSteps = `-- name: UpdateSteps :exec
|
||||
UPDATE steps AS s
|
||||
SET name = (update_data ->> 'Name')::varchar(512),
|
||||
|
Loading…
Reference in New Issue
Block a user