repository

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BDAIndexerRepository

type BDAIndexerRepository struct {
	IndexName string

	*bun.DB
	indexerrepo.IMetaRepository
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(indexerDB common.IndexerDB, indexName string, sqlTimeout time.Duration) BDAIndexerRepository

func (*BDAIndexerRepository) DeleteOldRecords

func (repo *BDAIndexerRepository) DeleteOldRecords(chainID, retentionPeriod string) (
	int64,
	error,
)

func (*BDAIndexerRepository) InsertBlockDataList

func (repo *BDAIndexerRepository) InsertBlockDataList(
	chainInfoID int64,
	indexPointerHeight int64,
	blockDataList []model.BlockDataAnalytics,
	blockMessageList []model.BlockMessageAnalytics,
) error

Jump to

Keyboard shortcuts

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