View definition

(*bucket).CreateBucketIfNotExists

Defined in github.com/btcsuite/btcd/database/ffldb/db.go

Description

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
  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.

CreateBucketIfNotExists is referenced in 0 repositories