56 lines
960 B
Go
56 lines
960 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
// source: outbox.sql
|
|
|
|
package sqlc
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
const insertOutboxEvent = `-- name: InsertOutboxEvent :exec
|
|
INSERT INTO outbox_events (
|
|
event_id,
|
|
event_type,
|
|
schema_version,
|
|
aggregate_type,
|
|
aggregate_id,
|
|
aggregate_version,
|
|
payload
|
|
) VALUES (
|
|
$1,
|
|
$2,
|
|
$3,
|
|
$4,
|
|
$5,
|
|
$6,
|
|
$7
|
|
)
|
|
`
|
|
|
|
type InsertOutboxEventParams struct {
|
|
EventID pgtype.UUID
|
|
EventType string
|
|
SchemaVersion int32
|
|
AggregateType string
|
|
AggregateID pgtype.UUID
|
|
AggregateVersion int64
|
|
Payload []byte
|
|
}
|
|
|
|
func (q *Queries) InsertOutboxEvent(ctx context.Context, arg InsertOutboxEventParams) error {
|
|
_, err := q.db.Exec(ctx, insertOutboxEvent,
|
|
arg.EventID,
|
|
arg.EventType,
|
|
arg.SchemaVersion,
|
|
arg.AggregateType,
|
|
arg.AggregateID,
|
|
arg.AggregateVersion,
|
|
arg.Payload,
|
|
)
|
|
return err
|
|
}
|