zodbtools

package
v1.8.2-0...-f7776fc Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: GPL-2.0, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package zodbtools provides tools for managing ZODB databases.

Index

Constants

This section is empty.

Variables

View Source
var Prog = prog.MainProg{
	Name:       "zodb",
	Summary:    "Zodb is a tool for managing ZODB databases",
	Commands:   commands,
	HelpTopics: helpTopics,
}

main zodbtools driver

Functions

func Catobj

func Catobj(ctx context.Context, w io.Writer, stor zodb.IStorage, xid zodb.Xid) error

Catobj dumps content of one ZODB object.

The object is printed in raw form without any headers (see Dumpobj)

func Dump

func Dump(ctx context.Context, w io.Writer, stor zodb.IStorage, tidMin, tidMax zodb.Tid, hashOnly bool) error

Dump dumps contents of a storage in between tidMin..tidMax range to a writer.

see top-level documentation for the dump format.

func Dumpobj

func Dumpobj(ctx context.Context, w io.Writer, stor zodb.IStorage, xid zodb.Xid, hashOnly bool) error

Dumpobj dumps content of one ZODB object with zodbdump-like header.

func Info

func Info(ctx context.Context, w io.Writer, stor zodb.IStorage, parameterv []string) error

Info prints general information about a ZODB storage.

func Watch

func Watch(ctx context.Context, stor zodb.IStorage, w io.Writer, verbose bool) (err error)

Watch watches for database changes and prints them to w.

see top-level documentation for output format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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