View definition


Defined in


CreateBucketIfNotExists creates and returns a new nested bucket with the given key if it does not already exist.

Returns the following errors as required by the interface contract:

- ErrBucketNameRequired if the key is empty
- ErrIncompatibleValue if the key is otherwise invalid for the particular
- 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.

CreateBucketIfNotExists is referenced in 0 repositories