# README
boltron
too flexible and rather low level secondary indexes for boltdb
- the actively maintained (by CoreOS) fork of boltdb is used.
- tests copied from boltdb - the only part that changed in tests is the import path.
Tests performed using:
$ go test -test.short
todo
- add more boltron specific tests
- add examples
# Constants
MaxKeySize is the maximum length of a key, in bytes.
MaxValueSize is the maximum length of a value, in bytes.
constants.
# Variables
ErrBucketExists is returned when creating a bucket that already exists.
ErrBucketNameRequired is returned when creating a bucket with a blank name.
ErrBucketNotFound is returned when trying to access a bucket that has not been created yet.
ErrChecksum is returned when either meta page checksum does not match.
ErrDatabaseNotOpen is returned when a DB instance is accessed before it is opened or after it is closed.
ErrDatabaseOpen is returned when opening a database that is already open.
ErrDatabaseReadOnly is returned when a mutating transaction is started on a read-only database.
ErrIncompatibleValue is returned when trying create or delete a bucket on an existing non-bucket key or when trying to create or delete a non-bucket key on an existing bucket key.
errors.
ErrInvalid is returned when both meta pages on a database are invalid.
ErrKeyRequired is returned when inserting a zero-length key.
ErrKeyTooLarge is returned when inserting a key that is larger than MaxKeySize.
errors.
ErrTimeout is returned when a database cannot obtain an exclusive lock on the data file after the timeout passed to Open().
ErrTxClosed is returned when committing or rolling back a transaction that has already been committed or rolled back.
ErrTxNotWritable is returned when performing a write operation on a read-only transaction.
ErrValueTooLarge is returned when inserting a value that is larger than MaxValueSize.
ErrVersionMismatch is returned when the data file was created with a different version of Bolt.
# Interfaces
Byter .