Get retrieves the value for a key in the bucket. The returned value is only valid for the life of the transaction.
(bucket string, key []byte)
| 85 | // Get retrieves the value for a key in the bucket. |
| 86 | // The returned value is only valid for the life of the transaction. |
| 87 | func (tx *Tx) Get(bucket string, key []byte) (value []byte, err error) { |
| 88 | return tx.get(bucket, key) |
| 89 | } |
| 90 | |
| 91 | func (tx *Tx) get(bucket string, key []byte) (value []byte, err error) { |
| 92 | if err := tx.checkTxIsClosed(); err != nil { |