repo_wallets_hot

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Code generated by pgxgen. DO NOT EDIT. versions:

pgxgen v0.3.10

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnName

type ColumnName string
const (
	ColumnNameHotWalletsId               ColumnName = "id"
	ColumnNameHotWalletsBlockchain       ColumnName = "blockchain"
	ColumnNameHotWalletsAddress          ColumnName = "address"
	ColumnNameHotWalletsOwnerId          ColumnName = "owner_id"
	ColumnNameHotWalletsExternalWalletId ColumnName = "external_wallet_id"
	ColumnNameHotWalletsSequence         ColumnName = "sequence"
	ColumnNameHotWalletsIsActivated      ColumnName = "is_activated"
	ColumnNameHotWalletsIsActive         ColumnName = "is_active"
	ColumnNameHotWalletsIsDirty          ColumnName = "is_dirty"
	ColumnNameHotWalletsCreatedAt        ColumnName = "created_at"
	ColumnNameHotWalletsUpdatedAt        ColumnName = "updated_at"
)

func (ColumnName) String

func (s ColumnName) String() string

func (ColumnName) StructName

func (s ColumnName) StructName() string

type ColumnNames

type ColumnNames []ColumnName

func HotWalletsColumnNames

func HotWalletsColumnNames() ColumnNames

func (ColumnNames) Strings

func (s ColumnNames) Strings() []string

type CreateParams

type CreateParams struct {
	Blockchain       wconstants.BlockchainType `db:"blockchain" json:"blockchain" validate:"required"`
	Address          string                    `db:"address" json:"address" validate:"required"`
	OwnerID          uuid.UUID                 `db:"owner_id" json:"owner_id" validate:"required,uuid4"`
	ExternalWalletID string                    `db:"external_wallet_id" json:"external_wallet_id" validate:"required"`
	Sequence         int32                     `db:"sequence" json:"sequence"`
	IsActivated      bool                      `db:"is_activated" json:"is_activated"`
	IsActive         bool                      `db:"is_active" json:"is_active"`
}

type CustomQuerier

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

func NewCustom

func NewCustom(psql DBTX) *CustomQuerier

func (*CustomQuerier) Find

func (*CustomQuerier) WithTx

func (s *CustomQuerier) WithTx(tx pgx.Tx) *CustomQuerier

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 FindParams

type FindParams struct {
	OwnerID          *uuid.UUID
	Blockchain       *wconstants.BlockchainType
	Address          *string
	ExternalWalletID *string
	IsDirty          *bool
}

type ICustomQuerier

type ICustomQuerier interface {
	Querier
	Find(ctx context.Context, params FindParams) (*storecmn.FindResponse[*models.HotWallet], error)
}

type Querier

type Querier interface {
	ActivateWallet(ctx context.Context, blockchain wconstants.BlockchainType, address string, ownerID uuid.UUID) error
	Create(ctx context.Context, arg CreateParams) (*models.HotWallet, error)
	Exist(ctx context.Context, address string, blockchain wconstants.BlockchainType, ownerID uuid.UUID) (bool, error)
	FindEVMByExternalID(ctx context.Context, externalWalletID string, column2 []string, ownerID uuid.UUID) ([]*models.HotWallet, error)
	Get(ctx context.Context, ownerID uuid.UUID, blockchain wconstants.BlockchainType, address string) (*models.HotWallet, error)
	GetAll(ctx context.Context) ([]*models.HotWallet, error)
	GetAllByOwnerID(ctx context.Context, ownerID uuid.UUID) ([]*models.HotWallet, error)
	GetByBlockchainAndAddress(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.HotWallet, error)
	GetManyByOwnerAndWalletAddresses(ctx context.Context, column1 []string, ownerID uuid.UUID) ([]*models.HotWallet, error)
	GetManyByOwnerAndWalletIDs(ctx context.Context, column1 []uuid.UUID, ownerID uuid.UUID) ([]*models.HotWallet, error)
	MarkDirty(ctx context.Context, blockchain wconstants.BlockchainType, address string, ownerID uuid.UUID) error
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) ActivateWallet

func (q *Queries) ActivateWallet(ctx context.Context, blockchain wconstants.BlockchainType, address string, ownerID uuid.UUID) error

func (*Queries) Create

func (q *Queries) Create(ctx context.Context, arg CreateParams) (*models.HotWallet, error)

func (*Queries) Exist

func (q *Queries) Exist(ctx context.Context, address string, blockchain wconstants.BlockchainType, ownerID uuid.UUID) (bool, error)

func (*Queries) FindEVMByExternalID

func (q *Queries) FindEVMByExternalID(ctx context.Context, externalWalletID string, column2 []string, ownerID uuid.UUID) ([]*models.HotWallet, error)

func (*Queries) Get

func (q *Queries) Get(ctx context.Context, ownerID uuid.UUID, blockchain wconstants.BlockchainType, address string) (*models.HotWallet, error)

func (*Queries) GetAll

func (q *Queries) GetAll(ctx context.Context) ([]*models.HotWallet, error)

func (*Queries) GetAllByOwnerID

func (q *Queries) GetAllByOwnerID(ctx context.Context, ownerID uuid.UUID) ([]*models.HotWallet, error)

func (*Queries) GetByBlockchainAndAddress

func (q *Queries) GetByBlockchainAndAddress(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.HotWallet, error)

func (*Queries) GetManyByOwnerAndWalletAddresses

func (q *Queries) GetManyByOwnerAndWalletAddresses(ctx context.Context, column1 []string, ownerID uuid.UUID) ([]*models.HotWallet, error)

func (*Queries) GetManyByOwnerAndWalletIDs

func (q *Queries) GetManyByOwnerAndWalletIDs(ctx context.Context, column1 []uuid.UUID, ownerID uuid.UUID) ([]*models.HotWallet, error)

func (*Queries) MarkDirty

func (q *Queries) MarkDirty(ctx context.Context, blockchain wconstants.BlockchainType, address string, ownerID uuid.UUID) error

func (*Queries) WithTx

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

type TableName

type TableName string
const (
	TableNameHotWallets TableName = "hot_wallets"
)

func (TableName) String

func (s TableName) String() string

Jump to

Keyboard shortcuts

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