sqlcgen

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateConsentChallengeParams

type CreateConsentChallengeParams struct {
	ID               string
	LoginChallengeID string
	CreatedAt        pgtype.Timestamptz
	ExpiresAt        pgtype.Timestamptz
}

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 GetConsentChallengeByIDForUpdateRow

type GetConsentChallengeByIDForUpdateRow struct {
	ID                  string
	LoginChallengeID    string
	GrantedScopes       []string
	Rejected            bool
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	VerifierID          pgtype.Text
	VerifierExpiresAt   pgtype.Timestamptz
	Consumed            bool
	ClientID            string
	CodeChallenge       string
	CodeChallengeMethod string
	ResponseType        string
	RequestedScopes     []string
	RedirectUri         string
	State               string
	Subject             pgtype.Text
}

type GetConsentChallengeByIDRow

type GetConsentChallengeByIDRow struct {
	ID                  string
	LoginChallengeID    string
	GrantedScopes       []string
	Rejected            bool
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	VerifierID          pgtype.Text
	VerifierExpiresAt   pgtype.Timestamptz
	Consumed            bool
	ClientID            string
	CodeChallenge       string
	CodeChallengeMethod string
	ResponseType        string
	RequestedScopes     []string
	RedirectUri         string
	State               string
	Subject             pgtype.Text
}

type GetConsentChallengeByVerifierIDForUpdateRow

type GetConsentChallengeByVerifierIDForUpdateRow struct {
	ID                  string
	LoginChallengeID    string
	GrantedScopes       []string
	Rejected            bool
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	VerifierID          pgtype.Text
	VerifierExpiresAt   pgtype.Timestamptz
	Consumed            bool
	ClientID            string
	CodeChallenge       string
	CodeChallengeMethod string
	ResponseType        string
	RequestedScopes     []string
	RedirectUri         string
	State               string
	Subject             pgtype.Text
}

type Querier

type Querier interface {
	CreateConsentChallenge(ctx context.Context, arg CreateConsentChallengeParams) (string, error)
	GetConsentChallengeByID(ctx context.Context, id string) (GetConsentChallengeByIDRow, error)
	GetConsentChallengeByIDForUpdate(ctx context.Context, id string) (GetConsentChallengeByIDForUpdateRow, error)
	GetConsentChallengeByVerifierIDForUpdate(ctx context.Context, verifierID pgtype.Text) (GetConsentChallengeByVerifierIDForUpdateRow, error)
	UpdateConsentChallengeVerifier(ctx context.Context, arg UpdateConsentChallengeVerifierParams) error
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateConsentChallenge

func (q *Queries) CreateConsentChallenge(ctx context.Context, arg CreateConsentChallengeParams) (string, error)

func (*Queries) GetConsentChallengeByID

func (q *Queries) GetConsentChallengeByID(ctx context.Context, id string) (GetConsentChallengeByIDRow, error)

func (*Queries) GetConsentChallengeByIDForUpdate

func (q *Queries) GetConsentChallengeByIDForUpdate(ctx context.Context, id string) (GetConsentChallengeByIDForUpdateRow, error)

func (*Queries) GetConsentChallengeByVerifierIDForUpdate

func (q *Queries) GetConsentChallengeByVerifierIDForUpdate(ctx context.Context, verifierID pgtype.Text) (GetConsentChallengeByVerifierIDForUpdateRow, error)

func (*Queries) UpdateConsentChallengeVerifier

func (q *Queries) UpdateConsentChallengeVerifier(ctx context.Context, arg UpdateConsentChallengeVerifierParams) error

func (*Queries) WithTx

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

type UpdateConsentChallengeVerifierParams

type UpdateConsentChallengeVerifierParams struct {
	ID                string
	VerifierID        pgtype.Text
	GrantedScopes     []string
	Rejected          bool
	VerifierExpiresAt pgtype.Timestamptz
	Consumed          bool
}

Jump to

Keyboard shortcuts

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