db

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIamSessionParams

type CreateIamSessionParams struct {
	ID        any
	ProjectID any
	UserID    any
	Data      any
}

type CreateIamUserParams

type CreateIamUserParams struct {
	ID           any
	ProjectID    any
	PrimaryEmail any
	Data         any
}

type DBTX

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

type DeleteIamSessionParams

type DeleteIamSessionParams struct {
	ProjectID string
	ID        string
}

type DeleteIamSessionsByUserParams

type DeleteIamSessionsByUserParams struct {
	ProjectID string
	UserID    string
}

type DeleteIamUserParams

type DeleteIamUserParams struct {
	ProjectID string
	ID        string
}

type GetIamSessionParams

type GetIamSessionParams struct {
	ProjectID string
	ID        string
}

type GetIamSessionRow

type GetIamSessionRow struct {
	Data json.RawMessage
}

type GetIamUserByEmailParams

type GetIamUserByEmailParams struct {
	ProjectID    string
	PrimaryEmail *string
}

type GetIamUserByEmailRow

type GetIamUserByEmailRow struct {
	Data json.RawMessage
}

type GetIamUserParams

type GetIamUserParams struct {
	ProjectID string
	ID        string
}

type GetIamUserRow

type GetIamUserRow struct {
	Data json.RawMessage
}

type IamAPIKeys

type IamAPIKeys struct {
	ID        string
	ProjectID string
	Prefix    string
	Hash      string
	Disabled  bool
	ExpiresAt *time.Time
	CreatedAt time.Time
	Data      json.RawMessage
}

type IamAccessRequests

type IamAccessRequests struct {
	ID          string
	ProjectID   string
	Environment string
	Email       string
	Status      string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Data        json.RawMessage
}

type IamActivity

type IamActivity struct {
	ID          string
	ProjectID   string
	Environment string
	UserID      string
	Type        string
	At          time.Time
	Data        json.RawMessage
}

type IamAdminTokens

type IamAdminTokens struct {
	ID        string
	ProjectID string
	Hash      string
	ExpiresAt *time.Time
	CreatedAt time.Time
	Data      json.RawMessage
}

type IamAppClients

type IamAppClients struct {
	ID          string
	ProjectID   string
	Environment string
	Name        string
	Type        string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Data        json.RawMessage
}

type IamAppSecrets

type IamAppSecrets struct {
	ID        string
	ProjectID string
	AppID     string
	Hash      string
	CreatedAt time.Time
	Data      json.RawMessage
}

type IamAuditLogs

type IamAuditLogs struct {
	ID        string
	ProjectID string
	Type      string
	ActorID   *string
	TargetID  *string
	At        time.Time
	Data      json.RawMessage
}

type IamAuthCodes

type IamAuthCodes struct {
	ID          string
	ProjectID   string
	Environment string
	CodeHash    string
	ClientID    *string
	UserID      *string
	ExpiresAt   time.Time
	Consumed    bool
	CreatedAt   time.Time
	Data        json.RawMessage
}

type IamBlocks

type IamBlocks struct {
	ID          string
	ProjectID   string
	Environment string
	Subject     string
	CreatedAt   time.Time
	ExpiresAt   *time.Time
	Data        json.RawMessage
}

type IamChallenges

type IamChallenges struct {
	ID          string
	ProjectID   string
	Environment string
	Type        string
	Subject     *string
	CodeHash    *string
	ExpiresAt   time.Time
	Consumed    bool
	CreatedAt   time.Time
	Data        json.RawMessage
}

type IamConfig

type IamConfig struct {
	ProjectID   string
	Environment string
	Key         string
	UpdatedAt   time.Time
	Data        json.RawMessage
}

type IamConsents

type IamConsents struct {
	ID          string
	ProjectID   string
	Environment string
	UserID      string
	DocKey      string
	Version     string
	Locale      *string
	AcceptedAt  time.Time
}

type IamCredentials

type IamCredentials struct {
	ID          string
	ProjectID   string
	Environment string
	UserID      string
	Type        string
	Secret      string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Data        json.RawMessage
}

type IamDeviceCodes

type IamDeviceCodes struct {
	ID          string
	ProjectID   string
	Environment string
	DeviceCode  string
	UserCode    string
	Status      string
	UserID      *string
	ExpiresAt   time.Time
	CreatedAt   time.Time
	Data        json.RawMessage
}

type IamDomains

type IamDomains struct {
	ID           string
	ProjectID    string
	ConnectionID *string
	Domain       string
	Status       string
	VerifiedAt   *time.Time
	CreatedAt    time.Time
	Data         json.RawMessage
}

type IamEmailTemplates

type IamEmailTemplates struct {
	ID        string
	ProjectID string
	Key       string
	Locale    string
	UpdatedAt time.Time
	Data      json.RawMessage
}

type IamEnvironments

type IamEnvironments struct {
	ProjectID string
	Name      string
	Issuer    *string
	CreatedAt time.Time
	Data      json.RawMessage
}

type IamEvents

type IamEvents struct {
	ID          string
	ProjectID   string
	Environment string
	Type        string
	Published   bool
	CreatedAt   time.Time
	Data        json.RawMessage
}

type IamFactors

type IamFactors struct {
	ID          string
	ProjectID   string
	Environment string
	UserID      string
	Type        string
	Status      string
	Secret      string
	CreatedAt   time.Time
	Data        json.RawMessage
}

type IamFlows added in v1.1.0

type IamFlows struct {
	ID          string
	ProjectID   string
	Environment string
	TokenHash   string
	Kind        string
	Status      string
	Step        string
	UserID      *string
	ExpiresAt   time.Time
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Data        json.RawMessage
}

type IamHooks

type IamHooks struct {
	ID        string
	ProjectID string
	Type      string
	Enabled   bool
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type IamIdentities

type IamIdentities struct {
	ID                string
	ProjectID         string
	Environment       string
	UserID            string
	Type              string
	Provider          *string
	ProviderAccountID *string
	Email             *string
	CreatedAt         time.Time
	Data              json.RawMessage
}

type IamInteractions

type IamInteractions struct {
	ID          string
	ProjectID   string
	Environment string
	ClientID    *string
	SessionID   *string
	ExpiresAt   *time.Time
	CreatedAt   time.Time
	Data        json.RawMessage
}

type IamInvites added in v1.2.0

type IamInvites struct {
	ID          string
	ProjectID   string
	Environment string
	Email       *string
	TokenHash   string
	Status      string
	ExpiresAt   *time.Time
	AcceptedAt  *time.Time
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Data        json.RawMessage
}

type IamJobs

type IamJobs struct {
	ID        string
	ProjectID string
	Type      string
	Status    string
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type IamOauthGrants

type IamOauthGrants struct {
	ID          string
	ProjectID   string
	Environment string
	UserID      string
	ClientID    string
	GrantedAt   time.Time
	Data        json.RawMessage
}

type IamParRequests

type IamParRequests struct {
	ID         string
	ProjectID  string
	RequestUri string
	ClientID   *string
	ExpiresAt  time.Time
	CreatedAt  time.Time
	Data       json.RawMessage
}

type IamProjects

type IamProjects struct {
	ID        string
	Slug      string
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type IamProviders

type IamProviders struct {
	ID        string
	ProjectID string
	Kind      string
	Provider  string
	Enabled   bool
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type IamRecoveryCodes

type IamRecoveryCodes struct {
	ID          string
	ProjectID   string
	Environment string
	UserID      string
	Hash        string
	Used        bool
	CreatedAt   time.Time
}

type IamRefreshTokens

type IamRefreshTokens struct {
	ID          string
	ProjectID   string
	Environment string
	UserID      string
	SessionID   string
	Hash        string
	Revoked     bool
	ExpiresAt   *time.Time
	CreatedAt   time.Time
	Data        json.RawMessage
}

type IamRiskRules

type IamRiskRules struct {
	ID        string
	ProjectID string
	Enabled   bool
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type IamScimResources

type IamScimResources struct {
	ID           string
	ProjectID    string
	ConnectionID string
	ResourceType string
	ExternalID   *string
	UserID       *string
	CreatedAt    time.Time
	UpdatedAt    time.Time
	Data         json.RawMessage
}

type IamScimTokens

type IamScimTokens struct {
	ID           string
	ProjectID    string
	ConnectionID string
	Hash         string
	CreatedAt    time.Time
	Data         json.RawMessage
}

type IamServiceAccounts

type IamServiceAccounts struct {
	ID        string
	ProjectID string
	Name      string
	Disabled  bool
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type IamSessions

type IamSessions struct {
	ID           string
	ProjectID    string
	Environment  string
	UserID       string
	ClientID     *string
	Aal          int32
	Trusted      bool
	ExpiresAt    *time.Time
	CreatedAt    time.Time
	LastActiveAt time.Time
	Data         json.RawMessage
}

type IamSigningKeys

type IamSigningKeys struct {
	Kid         string
	ProjectID   string
	Environment string
	Alg         string
	Use         string
	Status      string
	PrivatePem  *string
	CreatedAt   time.Time
	Data        json.RawMessage
}

type IamSsoConnections

type IamSsoConnections struct {
	ID          string
	ProjectID   string
	Type        string
	Status      string
	Name        string
	ExternalRef *string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Data        json.RawMessage
}

type IamTokenProfiles

type IamTokenProfiles struct {
	ID        string
	ProjectID string
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type IamUsers

type IamUsers struct {
	ID           string
	ProjectID    string
	Environment  string
	Kind         string
	Status       string
	PrimaryEmail *string
	PrimaryPhone *string
	CreatedAt    time.Time
	UpdatedAt    time.Time
	Data         json.RawMessage
}

type IamWebauthnCredentials

type IamWebauthnCredentials struct {
	ID           string
	ProjectID    string
	Environment  string
	UserID       string
	CredentialID string
	PublicKey    []byte
	SignCount    int64
	CreatedAt    time.Time
	LastUsedAt   *time.Time
	Data         json.RawMessage
}

type IamWebhooks

type IamWebhooks struct {
	ID        string
	ProjectID string
	Enabled   bool
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type ListIamSessionsByUserParams

type ListIamSessionsByUserParams struct {
	ProjectID string
	UserID    string
}

type ListIamSessionsByUserRow

type ListIamSessionsByUserRow struct {
	Data json.RawMessage
}

type ListIamUsersRow

type ListIamUsersRow struct {
	Data json.RawMessage
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateIamSession

func (q *Queries) CreateIamSession(ctx context.Context, arg CreateIamSessionParams) error

func (*Queries) CreateIamUser

func (q *Queries) CreateIamUser(ctx context.Context, arg CreateIamUserParams) error

func (*Queries) DeleteIamSession

func (q *Queries) DeleteIamSession(ctx context.Context, arg DeleteIamSessionParams) (int64, error)

func (*Queries) DeleteIamSessionsByUser

func (q *Queries) DeleteIamSessionsByUser(ctx context.Context, arg DeleteIamSessionsByUserParams) (int64, error)

func (*Queries) DeleteIamUser

func (q *Queries) DeleteIamUser(ctx context.Context, arg DeleteIamUserParams) (int64, error)

func (*Queries) GetIamSession

func (q *Queries) GetIamSession(ctx context.Context, arg GetIamSessionParams) (GetIamSessionRow, error)

func (*Queries) GetIamUser

func (q *Queries) GetIamUser(ctx context.Context, arg GetIamUserParams) (GetIamUserRow, error)

func (*Queries) GetIamUserByEmail

func (q *Queries) GetIamUserByEmail(ctx context.Context, arg GetIamUserByEmailParams) (GetIamUserByEmailRow, error)

func (*Queries) ListIamSessionsByUser

func (q *Queries) ListIamSessionsByUser(ctx context.Context, arg ListIamSessionsByUserParams) ([]ListIamSessionsByUserRow, error)

func (*Queries) ListIamUsers

func (q *Queries) ListIamUsers(ctx context.Context, projectID string) ([]ListIamUsersRow, error)

func (*Queries) UpdateIamUser

func (q *Queries) UpdateIamUser(ctx context.Context, arg UpdateIamUserParams) (int64, error)

func (*Queries) WithTx

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

type UpdateIamUserParams

type UpdateIamUserParams struct {
	PrimaryEmail *string
	Data         json.RawMessage
	ProjectID    string
	ID           string
}

Jump to

Keyboard shortcuts

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