add tx-copy-deprecated

master
Chyroc 2018-03-01 22:29:23 +08:00
parent 9da3174536
commit fa91bb2ff8
1 changed files with 3 additions and 1 deletions

4
tx.go
View File

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