sqlcgen

package
v1.68.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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 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 Flow added in v1.62.0

type Flow struct {
	ClientID                  string
	CodeChallenge             pgtype.Text
	CodeChallengeMethod       pgtype.Text
	ResponseType              string
	RequestedScopes           []string
	RedirectUri               string
	State                     pgtype.Text
	CreatedAt                 pgtype.Timestamptz
	LoginChallengeID          string
	LoginChallengeExpiresAt   pgtype.Timestamptz
	LoginVerifierID           pgtype.Text
	LoginVerifierExpiresAt    pgtype.Timestamptz
	LoginConsumed             bool
	LoginCsrfToken            string
	Subject                   pgtype.Text
	Name                      pgtype.Text
	Email                     pgtype.Text
	CellID                    pgtype.Int8
	ConsentChallengeID        pgtype.Text
	ConsentChallengeExpiresAt pgtype.Timestamptz
	ConsentCsrfToken          pgtype.Text
	ConsentVerifierID         pgtype.Text
	ConsentVerifierExpiresAt  pgtype.Timestamptz
	ConsentConsumed           bool
	GrantedScopes             []string
	Rejected                  bool
	Nonce                     pgtype.Text
}

type Querier

type Querier interface {
	GetConsentChallengeByID(ctx context.Context, consentChallengeID pgtype.Text) (Flow, error)
	GetConsentChallengeByIDForUpdate(ctx context.Context, consentChallengeID pgtype.Text) (Flow, error)
	GetConsentChallengeByVerifierIDForUpdate(ctx context.Context, consentVerifierID pgtype.Text) (Flow, error)
	StartConsentChallenge(ctx context.Context, arg StartConsentChallengeParams) (Flow, error)
	UpdateConsentChallengeVerifier(ctx context.Context, arg UpdateConsentChallengeVerifierParams) (Flow, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) GetConsentChallengeByID

func (q *Queries) GetConsentChallengeByID(ctx context.Context, consentChallengeID pgtype.Text) (Flow, error)

func (*Queries) GetConsentChallengeByIDForUpdate

func (q *Queries) GetConsentChallengeByIDForUpdate(ctx context.Context, consentChallengeID pgtype.Text) (Flow, error)

func (*Queries) GetConsentChallengeByVerifierIDForUpdate

func (q *Queries) GetConsentChallengeByVerifierIDForUpdate(ctx context.Context, consentVerifierID pgtype.Text) (Flow, error)

func (*Queries) StartConsentChallenge added in v1.62.0

func (q *Queries) StartConsentChallenge(ctx context.Context, arg StartConsentChallengeParams) (Flow, error)

func (*Queries) UpdateConsentChallengeVerifier

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

func (*Queries) WithTx

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

type StartConsentChallengeParams added in v1.62.0

type StartConsentChallengeParams struct {
	LoginChallengeID          string
	ConsentChallengeID        pgtype.Text
	ConsentChallengeExpiresAt pgtype.Timestamptz
	ConsentCsrfToken          pgtype.Text
}

type UpdateConsentChallengeVerifierParams

type UpdateConsentChallengeVerifierParams struct {
	ConsentChallengeID       pgtype.Text
	ConsentVerifierID        pgtype.Text
	GrantedScopes            []string
	Rejected                 bool
	ConsentVerifierExpiresAt pgtype.Timestamptz
	ConsentConsumed          bool
}

Jump to

Keyboard shortcuts

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