refactor(store): sqlc override uuid→google/uuid.UUID (убирает pgtype boilerplate)

This commit is contained in:
2026-07-03 14:20:03 +07:00
parent 34bc49ee8c
commit 635b05361f
8 changed files with 65 additions and 62 deletions
+4 -4
View File
@@ -8,7 +8,7 @@ package db
import (
"context"
"github.com/jackc/pgx/v5/pgtype"
"github.com/google/uuid"
)
const createCheckRun = `-- name: CreateCheckRun :one
@@ -18,9 +18,9 @@ RETURNING id, domain_id, result, created_at
`
type CreateCheckRunParams struct {
ID pgtype.UUID `json:"id"`
DomainID pgtype.UUID `json:"domain_id"`
Result []byte `json:"result"`
ID uuid.UUID `json:"id"`
DomainID uuid.UUID `json:"domain_id"`
Result []byte `json:"result"`
}
func (q *Queries) CreateCheckRun(ctx context.Context, arg CreateCheckRunParams) (CheckRun, error) {