func (t *transaction) Delete(key []byte) error {
	return t.t.Delete(key, nil)
}
Delete implements database.Writer interface.
package goleveldb
import (
	"bytes"
	"github.com/aptly-dev/aptly/database"
	"github.com/syndtr/goleveldb/leveldb"
)
type transaction struct {
	t *leveldb.Transaction
}
func (t *transaction) Get(key []byte) ([]byte, error) {
	value, err := t.t.Get(key, nil)
	if err != nil {
		if err == leveldb.ErrNotFound {
			return nil, database.ErrNotFound
		}
		return nil, err
	}
	return value, nil
}
func (t *transaction) Put(key, value []byte) error {
	old, err := t.t.Get(key, nil)
	if err != nil {
		if err != leveldb.ErrNotFound {
			return err
		}
	} else {
		if bytes.Equal(old, value) {
			return nil
		}
	}
	return t.t.Put(key, value, nil)
}