public_blocks

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultV2FDWTableName = "v2db_public_blocks"

Variables

This section is empty.

Functions

func GetMaxPage added in v1.1.0

func GetMaxPage(db *sqlx.DB, fdwTableName string) (uint64, error)

func GetPageSegments added in v1.1.0

func GetPageSegments(maxPage, segmentSize uint64) [][2]uint64

func TransferPages added in v1.1.0

func TransferPages(db *sqlx.DB, fdwTableName string, firstPage, lastPage uint64) (err error)

Types

type CSVWriter added in v1.1.0

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

CSVWriter struct for writing v3 DB public.blocks models to a csv file

func NewWriter added in v1.1.0

func NewWriter(dst io.WriteCloser) *CSVWriter

NewWriter satisfies interfaces.WriterConstructor for public.blocks

func (*CSVWriter) Close added in v1.1.0

func (cw *CSVWriter) Close() error

Close satisfies io.Closer

func (*CSVWriter) Write added in v1.1.0

func (cw *CSVWriter) Write(pgStr csv.WriteCSVStr, models interface{}) error

Write satisfies cshModel.Writer for v3 database for public.blocks

type IPLDModel

type IPLDModel struct {
	Key  string `db:"key"`
	Data []byte `db:"data"`
}

IPLDModel is the v2 and v3 model for public.blocks

Jump to

Keyboard shortcuts

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