Files
mtusi2026lab7/internal/db/attachment_replays.sql.go
T
sxdees 2f2047909f
Skeleton contracts / contracts (pull_request) Blocked by required conditions
ЛР7 на 4: HTTPS, mTLS, OpenBao AppRole и ротация leaf.
Smoke/security/grade4/persistence/failover пройдены; REPORT и DEFENSE.
2026-12-02 23:08:27 +03:00

48 lines
846 B
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
// source: attachment_replays.sql
package db
import (
"context"
"github.com/google/uuid"
)
const createAttachmentReplay = `-- name: CreateAttachmentReplay :exec
INSERT INTO attachment_replays (
attachment_id,
attempt,
previous_error_code,
operator,
reason
) VALUES (
$1,
$2,
$3,
$4,
$5
)
`
type CreateAttachmentReplayParams struct {
AttachmentID uuid.UUID
Attempt int
PreviousErrorCode *string
Operator string
Reason string
}
func (q *Queries) CreateAttachmentReplay(ctx context.Context, arg CreateAttachmentReplayParams) error {
_, err := q.db.Exec(ctx, createAttachmentReplay,
arg.AttachmentID,
arg.Attempt,
arg.PreviousErrorCode,
arg.Operator,
arg.Reason,
)
return err
}