generated

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrderParams

type CreateOrderParams struct {
	ID      pgtype.UUID
	Details []byte
	Note    pgtype.Text
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) CreateOrder

func (q *Queries) CreateOrder(ctx context.Context, arg CreateOrderParams) (RecipeOrder, error)

func (*Queries) GetOrder

func (q *Queries) GetOrder(ctx context.Context, id pgtype.UUID) (RecipeOrder, error)

func (*Queries) TransactionIdentity

func (q *Queries) TransactionIdentity(ctx context.Context) (TransactionIdentityRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type RecipeOrder

type RecipeOrder struct {
	ID            pgtype.UUID
	Details       []byte
	Note          pgtype.Text
	BackendPid    int32
	TransactionID string
}

type TransactionIdentityRow

type TransactionIdentityRow struct {
	BackendPid    int32
	TransactionID string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL