 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Code generated by pgxgen. DO NOT EDIT. versions:
pgxgen v0.3.10
Index ¶
- type ColumnName
- type ColumnNames
- type CreateParams
- type CustomQuerier
- type DBTX
- type FindParams
- type GetAllNotCreatedWalletsRow
- type ICustomQuerier
- type Querier
- type Queries
- func (q *Queries) Create(ctx context.Context, arg CreateParams) (*models.ProcessingWallet, error)
- func (q *Queries) Get(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.ProcessingWallet, error)
- func (q *Queries) GetAllByOwnerID(ctx context.Context, ownerID uuid.UUID) ([]*models.ProcessingWallet, error)
- func (q *Queries) GetAllNotCreatedWallets(ctx context.Context, blockchains []string) ([]*GetAllNotCreatedWalletsRow, error)
- func (q *Queries) GetByBlockchain(ctx context.Context, ownerID uuid.UUID, blockchain wconstants.BlockchainType) (*models.ProcessingWallet, error)
- func (q *Queries) GetByBlockchainAndAddress(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.ProcessingWallet, error)
- func (q *Queries) GetByOwnerID(ctx context.Context, ownerID uuid.UUID, blockchain wconstants.BlockchainType, ...) (*models.ProcessingWallet, error)
- func (q *Queries) IsTakenByAnotherOwner(ctx context.Context, ownerID uuid.UUID, address string) (bool, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
 
- type TableName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnName ¶
type ColumnName string
const ( ColumnNameProcessingWalletsId ColumnName = "id" ColumnNameProcessingWalletsBlockchain ColumnName = "blockchain" ColumnNameProcessingWalletsAddress ColumnName = "address" ColumnNameProcessingWalletsOwnerId ColumnName = "owner_id" ColumnNameProcessingWalletsSequence ColumnName = "sequence" ColumnNameProcessingWalletsIsActive ColumnName = "is_active" ColumnNameProcessingWalletsIsDirty ColumnName = "is_dirty" ColumnNameProcessingWalletsCreatedAt ColumnName = "created_at" ColumnNameProcessingWalletsUpdatedAt 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 ProcessingWalletsColumnNames ¶
func ProcessingWalletsColumnNames() 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"`
	Sequence   int32                     `db:"sequence" json:"sequence"`
	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 (s *CustomQuerier) Find(ctx context.Context, params FindParams) (*storecmn.FindResponse[*models.ProcessingWallet], error)
func (*CustomQuerier) WithTx ¶
func (s *CustomQuerier) WithTx(tx pgx.Tx) *CustomQuerier
type FindParams ¶
type FindParams struct {
	OwnerID    *uuid.UUID
	Address    *string
	Blockchain *wconstants.BlockchainType
	storecmn.CommonFindParams
}
    type ICustomQuerier ¶
type ICustomQuerier interface {
	Querier
	Find(ctx context.Context, params FindParams) (*storecmn.FindResponse[*models.ProcessingWallet], error)
}
    type Querier ¶
type Querier interface {
	Create(ctx context.Context, arg CreateParams) (*models.ProcessingWallet, error)
	Get(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.ProcessingWallet, error)
	GetAllByOwnerID(ctx context.Context, ownerID uuid.UUID) ([]*models.ProcessingWallet, error)
	GetAllNotCreatedWallets(ctx context.Context, blockchains []string) ([]*GetAllNotCreatedWalletsRow, error)
	GetByBlockchain(ctx context.Context, ownerID uuid.UUID, blockchain wconstants.BlockchainType) (*models.ProcessingWallet, error)
	GetByBlockchainAndAddress(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.ProcessingWallet, error)
	GetByOwnerID(ctx context.Context, ownerID uuid.UUID, blockchain wconstants.BlockchainType, address string) (*models.ProcessingWallet, error)
	IsTakenByAnotherOwner(ctx context.Context, ownerID uuid.UUID, address string) (bool, error)
}
    type Queries ¶
type Queries struct {
	// contains filtered or unexported fields
}
    func (*Queries) Create ¶
func (q *Queries) Create(ctx context.Context, arg CreateParams) (*models.ProcessingWallet, error)
func (*Queries) Get ¶
func (q *Queries) Get(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.ProcessingWallet, error)
func (*Queries) GetAllByOwnerID ¶
func (*Queries) GetAllNotCreatedWallets ¶
func (*Queries) GetByBlockchain ¶
func (q *Queries) GetByBlockchain(ctx context.Context, ownerID uuid.UUID, blockchain wconstants.BlockchainType) (*models.ProcessingWallet, error)
func (*Queries) GetByBlockchainAndAddress ¶
func (q *Queries) GetByBlockchainAndAddress(ctx context.Context, blockchain wconstants.BlockchainType, address string) (*models.ProcessingWallet, error)
func (*Queries) GetByOwnerID ¶
func (q *Queries) GetByOwnerID(ctx context.Context, ownerID uuid.UUID, blockchain wconstants.BlockchainType, address string) (*models.ProcessingWallet, error)
func (*Queries) IsTakenByAnotherOwner ¶
 Click to show internal directories. 
   Click to hide internal directories.