package
0.2.7
Repository: https://github.com/blbgo/record.git
Documentation: pkg.go.dev

# Functions

New creates a Root.

# Variables

ErrAlreadyExists item with the specified key already exists.
ErrBadIndexLength bad value format, index length more than value length.
ErrBadRootKey root key not 2 bytes long.
ErrCannotHaveChildren cannot have children.
ErrCannotIndex cannot index.
ErrCannotIndexChildren cannot index children.
ErrChangeRoot root item may not be changed.
ErrChildrenHaveNoChildren indicates an attempt to specify canIndexChildren or childrenHaveChildren as true when there will be no children.
ErrDescriptionDoesNotMatch description does not match.
ErrEmptyIndex index is empty.
ErrIndexAlreadyExists index already exists for somthing else.
ErrIndexedItemNotFound failed to find a child by index.
ErrIndexTooLong a specified index is longer than 255 bytes.
ErrInvalidIndex index number is out of range.
ErrInvalidOnExpiring expiring item must be kept simple.
ErrInvalidRootItemCall RootItem called on non root item.
ErrItemNotFound item not found.
ErrKeyInvalid key invalid length must greater than 2 and less than 256 bytes.
ErrNoFlags Bad value format, no flags byte.
ErrNoIndexCount Bad value format, no index count.
ErrNoIndexLength bad value format, no index length.
ErrPrefixCountToLong prefixCount to more than start key length.
ErrRangeSameOrBackwards range same key or backwards.
ErrTooManyIndexes More than 255 indexes specified.

# Structs

IndexChange species an index to be changed in ItemUpdate.
ItemUpdate species what should be updated to the Item.Update method.

# Interfaces

Item represents an item in the database.
Root provides access to depth 0 items.