sqlcgen

package
v1.67.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 CreateLoginChallengeParams

type CreateLoginChallengeParams struct {
	LoginChallengeID        string
	ClientID                string
	CodeChallenge           pgtype.Text
	CodeChallengeMethod     pgtype.Text
	ResponseType            string
	RequestedScopes         []string
	RedirectUri             string
	State                   pgtype.Text
	Nonce                   pgtype.Text
	LoginCsrfToken          string
	CreatedAt               pgtype.Timestamptz
	LoginChallengeExpiresAt 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 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 {
	CreateLoginChallenge(ctx context.Context, arg CreateLoginChallengeParams) (Flow, error)
	GetLoginChallengeByID(ctx context.Context, loginChallengeID string) (Flow, error)
	GetLoginChallengeByIDForUpdate(ctx context.Context, loginChallengeID string) (Flow, error)
	GetLoginChallengeByVerifierIDForUpdate(ctx context.Context, loginVerifierID pgtype.Text) (Flow, error)
	UpdateLoginChallengeVerifier(ctx context.Context, arg UpdateLoginChallengeVerifierParams) (Flow, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateLoginChallenge

func (q *Queries) CreateLoginChallenge(ctx context.Context, arg CreateLoginChallengeParams) (Flow, error)

func (*Queries) GetLoginChallengeByID

func (q *Queries) GetLoginChallengeByID(ctx context.Context, loginChallengeID string) (Flow, error)

func (*Queries) GetLoginChallengeByIDForUpdate

func (q *Queries) GetLoginChallengeByIDForUpdate(ctx context.Context, loginChallengeID string) (Flow, error)

func (*Queries) GetLoginChallengeByVerifierIDForUpdate

func (q *Queries) GetLoginChallengeByVerifierIDForUpdate(ctx context.Context, loginVerifierID pgtype.Text) (Flow, error)

func (*Queries) UpdateLoginChallengeVerifier

func (q *Queries) UpdateLoginChallengeVerifier(ctx context.Context, arg UpdateLoginChallengeVerifierParams) (Flow, error)

func (*Queries) WithTx

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

type UpdateLoginChallengeVerifierParams

type UpdateLoginChallengeVerifierParams struct {
	LoginChallengeID       string
	LoginVerifierID        pgtype.Text
	Subject                pgtype.Text
	Name                   pgtype.Text
	Email                  pgtype.Text
	LoginVerifierExpiresAt pgtype.Timestamptz
	LoginConsumed          bool
	CellID                 pgtype.Int8
}

Jump to

Keyboard shortcuts

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