mirror of https://github.com/hak5/bolt.git
add tx-copy-deprecated
parent
9da3174536
commit
fa91bb2ff8
4
tx.go
4
tx.go
|
@ -291,7 +291,9 @@ func (tx *Tx) close() {
|
|||
}
|
||||
|
||||
// Copy writes the entire database to a writer.
|
||||
// This function exists for backwards compatibility. Use WriteTo() instead.
|
||||
// This function exists for backwards compatibility.
|
||||
//
|
||||
// Deprecated; Use WriteTo() instead.
|
||||
func (tx *Tx) Copy(w io.Writer) error {
|
||||
_, err := tx.WriteTo(w)
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue