sqlcgen

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 GetPKCERequestRow

type GetPKCERequestRow struct {
	Signature           string
	RequestID           string
	ClientID            string
	CodeChallenge       string
	CodeChallengeMethod string
}

type Querier

type Querier interface {
	DeletePKCERequest(ctx context.Context, signature string) (int64, error)
	GetPKCERequest(ctx context.Context, signature string) (GetPKCERequestRow, error)
	SetPKCERequest(ctx context.Context, arg SetPKCERequestParams) (int64, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) DeletePKCERequest

func (q *Queries) DeletePKCERequest(ctx context.Context, signature string) (int64, error)

func (*Queries) GetPKCERequest

func (q *Queries) GetPKCERequest(ctx context.Context, signature string) (GetPKCERequestRow, error)

func (*Queries) SetPKCERequest

func (q *Queries) SetPKCERequest(ctx context.Context, arg SetPKCERequestParams) (int64, error)

func (*Queries) WithTx

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

type SetPKCERequestParams

type SetPKCERequestParams struct {
	Signature           string
	CodeChallenge       string
	CodeChallengeMethod string
}

Jump to

Keyboard shortcuts

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