repo_processed_blocks

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 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 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 Querier

type Querier interface {
	Create(ctx context.Context, blockchain wconstants.BlockchainType, number int64) error
	LastBlockNumber(ctx context.Context, blockchain wconstants.BlockchainType) (int64, error)
	UpdateNumber(ctx context.Context, blockchain wconstants.BlockchainType, number int64) 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, blockchain wconstants.BlockchainType, number int64) error

func (*Queries) LastBlockNumber

func (q *Queries) LastBlockNumber(ctx context.Context, blockchain wconstants.BlockchainType) (int64, error)

func (*Queries) UpdateNumber

func (q *Queries) UpdateNumber(ctx context.Context, blockchain wconstants.BlockchainType, number int64) error

func (*Queries) WithTx

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

Jump to

Keyboard shortcuts

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