package
0.0.0-20201027173521-df1ffc243217
Repository: https://github.com/tomarrell/lbadd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package page describes generic pages.

# Functions

Create creates a new database in the given file with the given options.
ErrNoSuchCell returns an error that indicates, that a cell with the given name could not be found.
NewPageManager creates a new page manager over the given file.
NewValidator creates a new validator over the given file.
Open opens and validates a given file and creates a (*DBFile) with the given options.
WithCacheSize specifies a cache size for the DBFile.
WithLogger specifies a logger for the DBFile.

# Constants

DefaultCacheSize is the default amount of pages, that the cache can hold at most.
Sentinel errors.
Sentinel errors.
HeaderConfig is the string key for the header page's cell "config".
HeaderPageCount is the string key for the header page's cell "pageCount".
HeaderPageID is the page ID of the header page of the database file.
HeaderTables is the string key for the header page's cell "tables".
Version is the storage version that is currently implemented.

# Structs

Config is an intermediate layer to interact with configuration keys and values of a database file.
DBFile is a database file that can be opened or created.
PageManager is a manager that is responsible for reading pages from and writing pages to secondary storage.
Validator can be used to validate a database file prior to opening it.

# Type aliases

Error is a sentinel error.
Option is an option that can is applied to a DBFile on creation.