Help us shape the future of Go! Take the 2026 Go Developer Survey

migration

package
v1.16.17 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrationStats

type MigrationStats struct {
	SourceEntries int64
	SourceBytes   int64
	TargetEntries int64
	TargetBytes   int64
}

MigrationStats holds statistics about the migration

func (*MigrationStats) String

func (s *MigrationStats) String() string

String returns a string representation of the stats

type PebbleToBadgerMigrator

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

PebbleToBadgerMigrator handles migration from Pebble to Badger database

func NewPebbleToBadgerMigrator

func NewPebbleToBadgerMigrator(sourcePath, targetPath string, logger *log.Logger) *PebbleToBadgerMigrator

NewPebbleToBadgerMigrator creates a new migrator instance

func (*PebbleToBadgerMigrator) GetStats

func (m *PebbleToBadgerMigrator) GetStats() (*MigrationStats, error)

GetStats returns statistics about the databases

func (*PebbleToBadgerMigrator) Migrate

func (m *PebbleToBadgerMigrator) Migrate() error

Migrate performs the migration from Pebble to Badger

func (*PebbleToBadgerMigrator) MigrateGenesis

func (m *PebbleToBadgerMigrator) MigrateGenesis() error

MigrateGenesis migrates genesis data specifically

Jump to

Keyboard shortcuts

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