CreateBucket creates a new bucket. Returns an error if the bucket already exists, if the bucket name is blank, or if the bucket name is too long. The bucket instance is only valid for the lifetime of the transaction.
(name []byte)
| 116 | // Returns an error if the bucket already exists, if the bucket name is blank, or if the bucket name is too long. |
| 117 | // The bucket instance is only valid for the lifetime of the transaction. |
| 118 | func (tx *Tx) CreateBucket(name []byte) (*Bucket, error) { |
| 119 | return tx.root.CreateBucket(name) |
| 120 | } |
| 121 | |
| 122 | // CreateBucketIfNotExists creates a new bucket if it doesn't already exist. |
| 123 | // Returns an error if the bucket name is blank, or if the bucket name is too long. |
no outgoing calls