guts_cli

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCorrupt is returned when a checking a data file finds errors.
	ErrCorrupt = errors.New("invalid value")
)

Functions

func GetRootPage

func GetRootPage(path string) (root common.Pgid, activeMeta common.Pgid, err error)

GetRootPage returns the root-page (according to the most recent transaction).

func ReadPage

func ReadPage(path string, pageID uint64) (*common.Page, []byte, error)

ReadPage reads Page info & full Page data from a path. This is not transactionally safe.

func ReadPageAndHWMSize

func ReadPageAndHWMSize(path string) (uint64, common.Pgid, error)

ReadPageAndHWMSize reads Page size and HWM (id of the last+1 Page). This is not transactionally safe.

func WritePage

func WritePage(path string, pageBuf []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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