Description

CreateBucket creates and returns a new nested bucket with the given key.

Returns the following errors as required by the interface contract:

- ErrBucketExists if the bucket already exists
- ErrBucketNameRequired if the key is empty
- ErrIncompatibleValue if the key is otherwise invalid for the particular
  implementation
- ErrTxNotWritable if attempted against a read-only transaction
- ErrTxClosed if the transaction has already been closed

This function is part of the database.Bucket interface implementation.

CreateBucket is referenced in 1 repository

github.com/btcsuite/btcd