backup

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const ReadAheadThreads = 1024

Variables

This section is empty.

Functions

func ClearTable

func ClearTable(ctx context.Context, db kv.RoDB, tx kv.RwTx, table string) error

func ClearTables

func ClearTables(ctx context.Context, db kv.RoDB, tx kv.RwTx, tables ...string) error

func Kv2kv

func Kv2kv(ctx context.Context, src kv.RoDB, dst kv.RwDB, tables []string, readAheadThreads int, logger log.Logger) error

func OpenPair

func OpenPair(from, to string, label kv.Label, targetPageSize datasize.ByteSize, logger log.Logger) (kv.RoDB, kv.RwDB)

func WarmupTable

func WarmupTable(ctx context.Context, db kv.RoDB, bucket string, lvl log.Lvl, readAheadThreads int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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