repo_wallets_cold

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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 (
	ColumnNameColdWalletsId         ColumnName = "id"
	ColumnNameColdWalletsBlockchain ColumnName = "blockchain"
	ColumnNameColdWalletsAddress    ColumnName = "address"
	ColumnNameColdWalletsOwnerId    ColumnName = "owner_id"
	ColumnNameColdWalletsIsActive   ColumnName = "is_active"
	ColumnNameColdWalletsIsDirty    ColumnName = "is_dirty"
	ColumnNameColdWalletsCreatedAt  ColumnName = "created_at"
	ColumnNameColdWalletsUpdatedAt  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 ColdWalletsColumnNames

func ColdWalletsColumnNames() 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"`
	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) Delete

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 DeleteAllByOwnerIDParams

type DeleteAllByOwnerIDParams struct {
	OwnerID    *uuid.UUID
	Blockchain *wconstants.BlockchainType
}

type FindParams

type FindParams struct {
	OwnerID    *uuid.UUID
	Address    *string
	Blockchain *wconstants.BlockchainType
	storecmn.CommonFindParams
}

type GetParams

type GetParams struct {
	OwnerID    uuid.UUID                 `db:"owner_id" json:"owner_id" validate:"required,uuid4"`
	Blockchain wconstants.BlockchainType `db:"blockchain" json:"blockchain" validate:"required"`
	Address    string                    `db:"address" json:"address" validate:"required"`
}

type ICustomQuerier

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

type Querier

type Querier interface {
	Create(ctx context.Context, arg CreateParams) (*models.ColdWallet, error)
	Get(ctx context.Context, arg GetParams) (*models.ColdWallet, error)
	GetAllByOwnerID(ctx context.Context, ownerID uuid.UUID) ([]*models.ColdWallet, error)
	GetByBlockchainAndAddress(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.ColdWallet, error)
	MaxSequence(ctx context.Context, blockchain wconstants.BlockchainType, ownerID uuid.UUID) (int32, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) Create

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

func (*Queries) Get

func (q *Queries) Get(ctx context.Context, arg GetParams) (*models.ColdWallet, error)

func (*Queries) GetAllByOwnerID

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

func (*Queries) GetByBlockchainAndAddress

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

func (*Queries) MaxSequence

func (q *Queries) MaxSequence(ctx context.Context, blockchain wconstants.BlockchainType, ownerID uuid.UUID) (int32, error)

func (*Queries) WithTx

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

type TableName

type TableName string
const (
	TableNameColdWallets TableName = "cold_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